{"type": "func", "start": 788088, "end": 788124, "name": "sub_C0678", "pseudocode": "// \n// sub_C0678 from 0xc0678 to 0xc069c (36 bytes)\n// \n// 5 xrefs:\n// > sub_50F6C @ 0x51032\n// > sub_50F6C @ 0x5103c\n// > sub_BF6E8 @ 0xbf74a\n// > sub_C0894 @ 0xc08d2\n// > sub_C21A0 @ 0xc21b8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall sub_C0678(char *file, _DWORD *a2)\n{\n  int result; // r0\n  void *v5; // r1\n\n  result = 31;\n  if ( file && a2 )\n  {\n    v5 = dlopen(file, 1);\n    *a2 = v5;\n    result = 0;\n    if ( !v5 )\n      return 18;\n  }\n  return result;\n}", "assembly": "; \n; sub_C0678 from 0xc0678 to 0xc069c (36 bytes)\n; \n; 5 xrefs:\n; > sub_50F6C @ 0x51032\n; > sub_50F6C @ 0x5103c\n; > sub_BF6E8 @ 0xbf74a\n; > sub_C0894 @ 0xc08d2\n; > sub_C21A0 @ 0xc21b8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4,R6,R7,LR}                                          ; +0x0, 0xc0678\nADD             R7, SP, #8                                             ; +0x2, 0xc067a\nMOV             R4, R1                                                 ; +0x4, 0xc067c\nMOV             R1, R0                                                 ; +0x6, 0xc067e\nMOVS            R0, #0x1F                                              ; +0x8, 0xc0680\nCBZ             R1, locret_C069A                                       ; +0xa, 0xc0682\nCBZ             R4, locret_C069A                                       ; +0xc, 0xc0684\nMOV             R0, R1; file                                           ; +0xe, 0xc0686\nMOVS            R1, #1; mode                                           ; +0x10, 0xc0688\nBLX             dlopen                                                 ; +0x12, 0xc068a\nMOV             R1, R0                                                 ; +0x16, 0xc068e\nSTR             R0, [R4]                                               ; +0x18, 0xc0690\nMOVS            R0, #0                                                 ; +0x1a, 0xc0692\nCMP             R1, #0                                                 ; +0x1c, 0xc0694\nIT EQ                                                                  ; +0x1e, 0xc0696\nMOVEQ           R0, #0x12                                              ; +0x20, 0xc0698\nPOP             {R4,R6,R7,PC}                                          ; +0x22, 0xc069a", "xrefs": ["sub_50F6C @ 0x51032", "sub_50F6C @ 0x5103c", "sub_BF6E8 @ 0xbf74a", "sub_C0894 @ 0xc08d2", "sub_C21A0 @ 0xc21b8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}