{"type": "func", "start": 10453236, "end": 10453468, "name": "DSO_set_filename", "pseudocode": "// \n// DSO_set_filename from 0x9f80f4 to 0x9f81dc (232 bytes)\n// \n// 2 xrefs:\n// > DSO_load @ 0x9f8254\n// > <???> @ 0x7aa9c\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_set_filename(int a1, int a2)\n{\n  bool v2; // zf\n  int v5; // r6\n\n  v2 = a2 == 0;\n  if ( a2 )\n    v2 = a1 == 0;\n  if ( v2 )\n  {\n    ERR_put_error(37, 129, 67, \"crypto/dso/dso_lib.c\", 244);\n    return 0;\n  }\n  else if ( *(_DWORD *)(a1 + 32) )\n  {\n    ERR_put_error(37, 129, 110, \"crypto/dso/dso_lib.c\", 248);\n    return 0;\n  }\n  else\n  {\n    v5 = CRYPTO_strdup(a2, \"crypto/dso/dso_lib.c\", 252);\n    if ( v5 )\n    {\n      CRYPTO_free(*(_DWORD *)(a1 + 28), \"crypto/dso/dso_lib.c\", 257);\n      *(_DWORD *)(a1 + 28) = v5;\n      return 1;\n    }\n    else\n    {\n      ERR_put_error(37, 129, 65, \"crypto/dso/dso_lib.c\", 254);\n      return 0;\n    }\n  }\n}", "assembly": "; \n; DSO_set_filename from 0x9f80f4 to 0x9f81dc (232 bytes)\n; \n; 2 xrefs:\n; > DSO_load @ 0x9f8254\n; > <???> @ 0x7aa9c\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, 0x9f80f4\nCMPNE           R0, #0                                                 ; +0x4, 0x9f80f8\nPUSH            {R4-R6,LR}                                             ; +0x8, 0x9f80fc\nMOVEQ           R4, #1                                                 ; +0xc, 0x9f8100\nSUB             SP, SP, #8                                             ; +0x10, 0x9f8104\nMOVNE           R4, #0                                                 ; +0x14, 0x9f8108\nBEQ             loc_9F814C                                             ; +0x18, 0x9f810c\nLDR             R3, [R0,#0x20]                                         ; +0x1c, 0x9f8110\nMOV             R5, R0                                                 ; +0x20, 0x9f8114\nCMP             R3, #0                                                 ; +0x24, 0x9f8118\nBEQ             loc_9F8178                                             ; +0x28, 0x9f811c\nMOV             R3, #0xF8                                              ; +0x2c, 0x9f8120\nSTR             R3, [SP,#8+var_8]                                      ; +0x30, 0x9f8124\nLDR             R3, =(aCryptoDsoDsoLi - 0x9F8140); \"crypto/dso/dso_lib.c\" ; +0x34, 0x9f8128\nMOV             R0, #0x25 ; '%'                                        ; +0x38, 0x9f812c\nMOV             R1, #0x81                                              ; +0x3c, 0x9f8130\nMOV             R2, #0x6E ; 'n'                                        ; +0x40, 0x9f8134\nADD             R3, PC, R3; \"crypto/dso/dso_lib.c\"                     ; +0x44, 0x9f8138\nBL              ERR_put_error                                          ; +0x48, 0x9f813c\nMOV             R0, R4                                                 ; +0x4c, 0x9f8140\nADD             SP, SP, #8                                             ; +0x50, 0x9f8144\nPOP             {R4-R6,PC}                                             ; +0x54, 0x9f8148\nMOV             R3, #0xF4                                              ; +0x58, 0x9f814c\nSTR             R3, [SP,#8+var_8]                                      ; +0x5c, 0x9f8150\nLDR             R3, =(aCryptoDsoDsoLi - 0x9F816C); \"crypto/dso/dso_lib.c\" ; +0x60, 0x9f8154\nMOV             R0, #0x25 ; '%'                                        ; +0x64, 0x9f8158\nMOV             R1, #0x81                                              ; +0x68, 0x9f815c\nMOV             R2, #0x43 ; 'C'                                        ; +0x6c, 0x9f8160\nADD             R3, PC, R3; \"crypto/dso/dso_lib.c\"                     ; +0x70, 0x9f8164\nBL              ERR_put_error                                          ; +0x74, 0x9f8168\nMOV             R0, #0                                                 ; +0x78, 0x9f816c\nADD             SP, SP, #8                                             ; +0x7c, 0x9f8170\nPOP             {R4-R6,PC}                                             ; +0x80, 0x9f8174\nLDR             R4, =(aCryptoDsoDsoLi - 0x9F8188); \"crypto/dso/dso_lib.c\" ; +0x84, 0x9f8178\nMOV             R0, R1                                                 ; +0x88, 0x9f817c\nADD             R4, PC, R4; \"crypto/dso/dso_lib.c\"                     ; +0x8c, 0x9f8180\nMOV             R1, R4                                                 ; +0x90, 0x9f8184\nMOV             R2, #0xFC                                              ; +0x94, 0x9f8188\nBL              CRYPTO_strdup                                          ; +0x98, 0x9f818c\nSUBS            R6, R0, #0                                             ; +0x9c, 0x9f8190\nBEQ             loc_9F81B8                                             ; +0xa0, 0x9f8194\nLDR             R0, [R5,#0x1C]                                         ; +0xa4, 0x9f8198\nMOV             R1, R4                                                 ; +0xa8, 0x9f819c\nLDR             R2, =0x101                                             ; +0xac, 0x9f81a0\nBL              CRYPTO_free                                            ; +0xb0, 0x9f81a4\nMOV             R0, #1                                                 ; +0xb4, 0x9f81a8\nSTR             R6, [R5,#0x1C]                                         ; +0xb8, 0x9f81ac\nADD             SP, SP, #8                                             ; +0xbc, 0x9f81b0\nPOP             {R4-R6,PC}                                             ; +0xc0, 0x9f81b4\nMOV             R2, #0xFE                                              ; +0xc4, 0x9f81b8\nSTR             R2, [SP,#8+var_8]                                      ; +0xc8, 0x9f81bc\nMOV             R0, #0x25 ; '%'                                        ; +0xcc, 0x9f81c0\nMOV             R3, R4                                                 ; +0xd0, 0x9f81c4\nMOV             R1, #0x81                                              ; +0xd4, 0x9f81c8\nMOV             R2, #0x41 ; 'A'                                        ; +0xd8, 0x9f81cc\nBL              ERR_put_error                                          ; +0xdc, 0x9f81d0\nMOV             R0, R6                                                 ; +0xe0, 0x9f81d4\nB               loc_9F8144                                             ; +0xe4, 0x9f81d8", "xrefs": ["DSO_load @ 0x9f8254", "<???> @ 0x7aa9c"], "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"}