{"type": "func", "start": 10452760, "end": 10452940, "name": "DSO_bind_func", "pseudocode": "// \n// DSO_bind_func from 0x9f7f18 to 0x9f7fcc (180 bytes)\n// \n// 5 xrefs:\n// > CONF_modules_load @ 0x9ef060\n// > CONF_modules_load @ 0x9ef07c\n// > sub_AC8090 @ 0xac8500\n// > sub_AC8090 @ 0xac8528\n// > <???> @ 0x79d7c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:07:33 +0000\n// \n\nint __fastcall DSO_bind_func(int a1, int a2)\n{\n  bool v2; // zf\n  int (*v3)(void); // r4\n  int result; // r0\n\n  v2 = a2 == 0;\n  if ( a2 )\n    v2 = a1 == 0;\n  if ( v2 )\n  {\n    ERR_put_error(37, 108, 67, \"crypto/dso/dso_lib.c\", 177);\n    return 0;\n  }\n  else\n  {\n    v3 = *(int (**)(void))(*(_DWORD *)a1 + 12);\n    if ( v3 )\n    {\n      result = v3();\n      if ( !result )\n      {\n        ERR_put_error(37, 108, 106, \"crypto/dso/dso_lib.c\", 185);\n        return 0;\n      }\n    }\n    else\n    {\n      ERR_put_error(37, 108, 108, \"crypto/dso/dso_lib.c\", 181);\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; DSO_bind_func from 0x9f7f18 to 0x9f7fcc (180 bytes)\n; \n; 5 xrefs:\n; > CONF_modules_load @ 0x9ef060\n; > CONF_modules_load @ 0x9ef07c\n; > sub_AC8090 @ 0xac8500\n; > sub_AC8090 @ 0xac8528\n; > <???> @ 0x79d7c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:07:33 +0000\n; \nCMP             R1, #0                                                 ; +0x0, 0x9f7f18\nCMPNE           R0, #0                                                 ; +0x4, 0x9f7f1c\nPUSH            {R4,LR}                                                ; +0x8, 0x9f7f20\nSUB             SP, SP, #8                                             ; +0xc, 0x9f7f24\nBEQ             loc_9F7F54                                             ; +0x10, 0x9f7f28\nLDR             R3, [R0]                                               ; +0x14, 0x9f7f2c\nLDR             R4, [R3,#0xC]                                          ; +0x18, 0x9f7f30\nCMP             R4, #0                                                 ; +0x1c, 0x9f7f34\nBEQ             loc_9F7F7C                                             ; +0x20, 0x9f7f38\nBLX             R4                                                     ; +0x24, 0x9f7f3c\nSUBS            R4, R0, #0                                             ; +0x28, 0x9f7f40\nMOVNE           R0, R4                                                 ; +0x2c, 0x9f7f44\nBEQ             loc_9F7FA4                                             ; +0x30, 0x9f7f48\nADD             SP, SP, #8                                             ; +0x34, 0x9f7f4c\nPOP             {R4,PC}                                                ; +0x38, 0x9f7f50\nMOV             R3, #0xB1                                              ; +0x3c, 0x9f7f54\nSTR             R3, [SP,#8+var_8]                                      ; +0x40, 0x9f7f58\nLDR             R3, =(aCryptoDsoDsoLi - 0x9F7F74); \"crypto/dso/dso_lib.c\" ; +0x44, 0x9f7f5c\nMOV             R0, #0x25 ; '%'                                        ; +0x48, 0x9f7f60\nMOV             R1, #0x6C ; 'l'                                        ; +0x4c, 0x9f7f64\nMOV             R2, #0x43 ; 'C'                                        ; +0x50, 0x9f7f68\nADD             R3, PC, R3; \"crypto/dso/dso_lib.c\"                     ; +0x54, 0x9f7f6c\nBL              ERR_put_error                                          ; +0x58, 0x9f7f70\nMOV             R0, #0                                                 ; +0x5c, 0x9f7f74\nB               loc_9F7F4C                                             ; +0x60, 0x9f7f78\nMOV             R3, #0xB5                                              ; +0x64, 0x9f7f7c\nSTR             R3, [SP,#8+var_8]                                      ; +0x68, 0x9f7f80\nLDR             R3, =(aCryptoDsoDsoLi - 0x9F7F9C); \"crypto/dso/dso_lib.c\" ; +0x6c, 0x9f7f84\nMOV             R1, #0x6C ; 'l'                                        ; +0x70, 0x9f7f88\nMOV             R0, #0x25 ; '%'                                        ; +0x74, 0x9f7f8c\nMOV             R2, R1                                                 ; +0x78, 0x9f7f90\nADD             R3, PC, R3; \"crypto/dso/dso_lib.c\"                     ; +0x7c, 0x9f7f94\nBL              ERR_put_error                                          ; +0x80, 0x9f7f98\nMOV             R0, R4                                                 ; +0x84, 0x9f7f9c\nB               loc_9F7F4C                                             ; +0x88, 0x9f7fa0\nMOV             R3, #0xB9                                              ; +0x8c, 0x9f7fa4\nSTR             R3, [SP,#8+var_8]                                      ; +0x90, 0x9f7fa8\nLDR             R3, =(aCryptoDsoDsoLi - 0x9F7FC4); \"crypto/dso/dso_lib.c\" ; +0x94, 0x9f7fac\nMOV             R0, #0x25 ; '%'                                        ; +0x98, 0x9f7fb0\nMOV             R1, #0x6C ; 'l'                                        ; +0x9c, 0x9f7fb4\nMOV             R2, #0x6A ; 'j'                                        ; +0xa0, 0x9f7fb8\nADD             R3, PC, R3; \"crypto/dso/dso_lib.c\"                     ; +0xa4, 0x9f7fbc\nBL              ERR_put_error                                          ; +0xa8, 0x9f7fc0\nMOV             R0, R4                                                 ; +0xac, 0x9f7fc4\nB               loc_9F7F4C                                             ; +0xb0, 0x9f7fc8", "xrefs": ["CONF_modules_load @ 0x9ef060", "CONF_modules_load @ 0x9ef07c", "sub_AC8090 @ 0xac8500", "sub_AC8090 @ 0xac8528", "<???> @ 0x79d7c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}