{"type": "func", "start": 10454376, "end": 10454644, "name": "DSO_convert_filename", "pseudocode": "// \n// DSO_convert_filename from 0x9f8568 to 0x9f8674 (268 bytes)\n// \n// 3 xrefs:\n// > sub_A96D9C @ 0xa96dac\n// > sub_AC8090 @ 0xac867c\n// > <???> @ 0x7aabc\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_convert_filename(_DWORD *a1, int a2)\n{\n  int v2; // r5\n  int v3; // r4\n  int result; // r0\n  int (__fastcall *v5)(_DWORD *, int); // r3\n\n  if ( a1 )\n  {\n    v2 = a2;\n    if ( a2 || (v2 = a1[7]) != 0 )\n    {\n      if ( (a1[3] & 1) != 0\n        || (v5 = (int (__fastcall *)(_DWORD *, int))a1[5]) == nullptr\n        && (v5 = *(int (__fastcall **)(_DWORD *, int))(*a1 + 20)) == nullptr\n        || (result = v5(a1, v2)) == 0 )\n      {\n        v3 = CRYPTO_strdup(v2, \"crypto/dso/dso_lib.c\", 300);\n        if ( !v3 )\n          ERR_put_error(37, 126, 65, \"crypto/dso/dso_lib.c\", 302);\n        return v3;\n      }\n    }\n    else\n    {\n      ERR_put_error(37, 126, 111, \"crypto/dso/dso_lib.c\", 290);\n      return 0;\n    }\n  }\n  else\n  {\n    ERR_put_error(37, 126, 67, \"crypto/dso/dso_lib.c\", 284);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; DSO_convert_filename from 0x9f8568 to 0x9f8674 (268 bytes)\n; \n; 3 xrefs:\n; > sub_A96D9C @ 0xa96dac\n; > sub_AC8090 @ 0xac867c\n; > <???> @ 0x7aabc\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; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x9f8568\nSUBS            R4, R0, #0                                             ; +0x4, 0x9f856c\nSUB             SP, SP, #8                                             ; +0x8, 0x9f8570\nBEQ             loc_9F862C                                             ; +0xc, 0x9f8574\nCMP             R1, #0                                                 ; +0x10, 0x9f8578\nMOV             R5, R1                                                 ; +0x14, 0x9f857c\nBEQ             loc_9F85E4                                             ; +0x18, 0x9f8580\nLDR             R3, [R4,#0xC]                                          ; +0x1c, 0x9f8584\nTST             R3, #1                                                 ; +0x20, 0x9f8588\nBEQ             loc_9F85BC                                             ; +0x24, 0x9f858c\nLDR             R6, =(aCryptoDsoDsoLi - 0x9F85A0); \"crypto/dso/dso_lib.c\" ; +0x28, 0x9f8590\nMOV             R0, R5                                                 ; +0x2c, 0x9f8594\nADD             R6, PC, R6; \"crypto/dso/dso_lib.c\"                     ; +0x30, 0x9f8598\nMOV             R1, R6                                                 ; +0x34, 0x9f859c\nMOV             R2, #0x12C                                             ; +0x38, 0x9f85a0\nBL              CRYPTO_strdup                                          ; +0x3c, 0x9f85a4\nSUBS            R4, R0, #0                                             ; +0x40, 0x9f85a8\nBEQ             loc_9F8654                                             ; +0x44, 0x9f85ac\nMOV             R0, R4                                                 ; +0x48, 0x9f85b0\nADD             SP, SP, #8                                             ; +0x4c, 0x9f85b4\nPOP             {R4-R6,PC}                                             ; +0x50, 0x9f85b8\nLDR             R3, [R4,#0x14]                                         ; +0x54, 0x9f85bc\nCMP             R3, #0                                                 ; +0x58, 0x9f85c0\nBEQ             loc_9F8618                                             ; +0x5c, 0x9f85c4\nMOV             R0, R4                                                 ; +0x60, 0x9f85c8\nMOV             R1, R5                                                 ; +0x64, 0x9f85cc\nBLX             R3                                                     ; +0x68, 0x9f85d0\nCMP             R0, #0                                                 ; +0x6c, 0x9f85d4\nBEQ             loc_9F8590                                             ; +0x70, 0x9f85d8\nADD             SP, SP, #8                                             ; +0x74, 0x9f85dc\nPOP             {R4-R6,PC}                                             ; +0x78, 0x9f85e0\nLDR             R5, [R4,#0x1C]                                         ; +0x7c, 0x9f85e4\nCMP             R5, #0                                                 ; +0x80, 0x9f85e8\nBNE             loc_9F8584                                             ; +0x84, 0x9f85ec\nLDR             R3, =0x122                                             ; +0x88, 0x9f85f0\nSTR             R3, [SP,#8+var_8]                                      ; +0x8c, 0x9f85f4\nLDR             R3, =(aCryptoDsoDsoLi - 0x9F8610); \"crypto/dso/dso_lib.c\" ; +0x90, 0x9f85f8\nMOV             R0, #0x25 ; '%'                                        ; +0x94, 0x9f85fc\nMOV             R1, #0x7E ; '~'                                        ; +0x98, 0x9f8600\nMOV             R2, #0x6F ; 'o'                                        ; +0x9c, 0x9f8604\nADD             R3, PC, R3; \"crypto/dso/dso_lib.c\"                     ; +0xa0, 0x9f8608\nBL              ERR_put_error                                          ; +0xa4, 0x9f860c\nMOV             R0, R5                                                 ; +0xa8, 0x9f8610\nB               loc_9F85B4                                             ; +0xac, 0x9f8614\nLDR             R3, [R4]                                               ; +0xb0, 0x9f8618\nLDR             R3, [R3,#0x14]                                         ; +0xb4, 0x9f861c\nCMP             R3, #0                                                 ; +0xb8, 0x9f8620\nBNE             loc_9F85C8                                             ; +0xbc, 0x9f8624\nB               loc_9F8590                                             ; +0xc0, 0x9f8628\nMOV             R3, #0x11C                                             ; +0xc4, 0x9f862c\nSTR             R3, [SP,#8+var_8]                                      ; +0xc8, 0x9f8630\nLDR             R3, =(aCryptoDsoDsoLi - 0x9F864C); \"crypto/dso/dso_lib.c\" ; +0xcc, 0x9f8634\nMOV             R0, #0x25 ; '%'                                        ; +0xd0, 0x9f8638\nMOV             R1, #0x7E ; '~'                                        ; +0xd4, 0x9f863c\nMOV             R2, #0x43 ; 'C'                                        ; +0xd8, 0x9f8640\nADD             R3, PC, R3; \"crypto/dso/dso_lib.c\"                     ; +0xdc, 0x9f8644\nBL              ERR_put_error                                          ; +0xe0, 0x9f8648\nMOV             R0, R4                                                 ; +0xe4, 0x9f864c\nB               loc_9F85B4                                             ; +0xe8, 0x9f8650\nLDR             R2, =0x12E                                             ; +0xec, 0x9f8654\nSTR             R2, [SP,#8+var_8]                                      ; +0xf0, 0x9f8658\nMOV             R3, R6                                                 ; +0xf4, 0x9f865c\nMOV             R0, #0x25 ; '%'                                        ; +0xf8, 0x9f8660\nMOV             R1, #0x7E ; '~'                                        ; +0xfc, 0x9f8664\nMOV             R2, #0x41 ; 'A'                                        ; +0x100, 0x9f8668\nBL              ERR_put_error                                          ; +0x104, 0x9f866c\nB               loc_9F85B0                                             ; +0x108, 0x9f8670", "xrefs": ["sub_A96D9C @ 0xa96dac", "sub_AC8090 @ 0xac867c", "<???> @ 0x7aabc"], "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"}