{"type": "func", "start": 14200020, "end": 14200264, "name": "DSO_set_filename", "pseudocode": "// \n// DSO_set_filename from 0xd8acd4 to 0xd8adc8 (244 bytes)\n// \n// 2 xrefs:\n// > DSO_load @ 0xd8ae3c\n// > <???> @ 0x8d7b0\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\n__int64 __fastcall DSO_set_filename(__int64 a1, __int64 a2)\n{\n  __int64 v4; // x19\n\n  if ( a1 && a2 )\n  {\n    if ( *(_QWORD *)(a1 + 56) )\n    {\n      ERR_put_error(37, 129, 110, \"crypto/dso/dso_lib.c\", 248);\n      return 0;\n    }\n    else\n    {\n      v4 = CRYPTO_strdup(a2, \"crypto/dso/dso_lib.c\", 252);\n      if ( v4 )\n      {\n        CRYPTO_free(*(_QWORD *)(a1 + 48), \"crypto/dso/dso_lib.c\", 257);\n        *(_QWORD *)(a1 + 48) = v4;\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  }\n  else\n  {\n    ERR_put_error(37, 129, 67, \"crypto/dso/dso_lib.c\", 244);\n    return 0;\n  }\n}", "assembly": "; \n; DSO_set_filename from 0xd8acd4 to 0xd8adc8 (244 bytes)\n; \n; 2 xrefs:\n; > DSO_load @ 0xd8ae3c\n; > <???> @ 0x8d7b0\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xd8acd4\nMOV             X29, SP                                                ; +0x4, 0xd8acd8\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xd8acdc\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0xd8ace0\nMOV             X20, X0                                                ; +0x10, 0xd8ace4\nCBZ             X0, loc_D8AD30                                         ; +0x14, 0xd8ace8\nCMP             X1, XZR                                                ; +0x18, 0xd8acec\nCSET            W19, EQ                                                ; +0x1c, 0xd8acf0\nCBNZ            W19, loc_D8AD30                                        ; +0x20, 0xd8acf4\nLDR             X0, [X0,#0x38]                                         ; +0x24, 0xd8acf8\nCBZ             X0, loc_D8AD60                                         ; +0x28, 0xd8acfc\nADRP            X3, #aCryptoDsoDsoLi@PAGE; \"crypto/dso/dso_lib.c\"      ; +0x2c, 0xd8ad00\nMOV             W0, #0x25 ; '%'                                        ; +0x30, 0xd8ad04\nMOV             W1, #0x81                                              ; +0x34, 0xd8ad08\nMOV             W2, #0x6E ; 'n'                                        ; +0x38, 0xd8ad0c\nADD             X3, X3, #aCryptoDsoDsoLi@PAGEOFF; \"crypto/dso/dso_lib.c\" ; +0x3c, 0xd8ad10\nMOV             W4, #0xF8                                              ; +0x40, 0xd8ad14\nBL              ERR_put_error                                          ; +0x44, 0xd8ad18\nMOV             W0, W19                                                ; +0x48, 0xd8ad1c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x4c, 0xd8ad20\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x50, 0xd8ad24\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x54, 0xd8ad28\nRET                                                                    ; +0x58, 0xd8ad2c\nADRP            X3, #aCryptoDsoDsoLi@PAGE; \"crypto/dso/dso_lib.c\"      ; +0x5c, 0xd8ad30\nMOV             W0, #0x25 ; '%'                                        ; +0x60, 0xd8ad34\nMOV             W1, #0x81                                              ; +0x64, 0xd8ad38\nMOV             W2, #0x43 ; 'C'                                        ; +0x68, 0xd8ad3c\nADD             X3, X3, #aCryptoDsoDsoLi@PAGEOFF; \"crypto/dso/dso_lib.c\" ; +0x6c, 0xd8ad40\nMOV             W4, #0xF4                                              ; +0x70, 0xd8ad44\nBL              ERR_put_error                                          ; +0x74, 0xd8ad48\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x78, 0xd8ad4c\nMOV             W0, #0                                                 ; +0x7c, 0xd8ad50\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x80, 0xd8ad54\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x84, 0xd8ad58\nRET                                                                    ; +0x88, 0xd8ad5c\nADRP            X21, #aCryptoDsoDsoLi@PAGE; \"crypto/dso/dso_lib.c\"     ; +0x8c, 0xd8ad60\nMOV             X0, X1                                                 ; +0x90, 0xd8ad64\nADD             X21, X21, #aCryptoDsoDsoLi@PAGEOFF; \"crypto/dso/dso_lib.c\" ; +0x94, 0xd8ad68\nMOV             W2, #0xFC                                              ; +0x98, 0xd8ad6c\nMOV             X1, X21                                                ; +0x9c, 0xd8ad70\nBL              CRYPTO_strdup                                          ; +0xa0, 0xd8ad74\nMOV             X19, X0                                                ; +0xa4, 0xd8ad78\nCBZ             X0, loc_D8ADA8                                         ; +0xa8, 0xd8ad7c\nLDR             X0, [X20,#0x30]                                        ; +0xac, 0xd8ad80\nMOV             X1, X21                                                ; +0xb0, 0xd8ad84\nMOV             W2, #0x101                                             ; +0xb4, 0xd8ad88\nBL              CRYPTO_free                                            ; +0xb8, 0xd8ad8c\nSTR             X19, [X20,#0x30]                                       ; +0xbc, 0xd8ad90\nMOV             W0, #1                                                 ; +0xc0, 0xd8ad94\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xc4, 0xd8ad98\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xc8, 0xd8ad9c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xcc, 0xd8ada0\nRET                                                                    ; +0xd0, 0xd8ada4\nMOV             W0, #0x25 ; '%'                                        ; +0xd4, 0xd8ada8\nMOV             W1, #0x81                                              ; +0xd8, 0xd8adac\nMOV             W2, #0x41 ; 'A'                                        ; +0xdc, 0xd8adb0\nMOV             X3, X21                                                ; +0xe0, 0xd8adb4\nMOV             W4, #0xFE                                              ; +0xe4, 0xd8adb8\nBL              ERR_put_error                                          ; +0xe8, 0xd8adbc\nMOV             W0, W19                                                ; +0xec, 0xd8adc0\nB               loc_D8AD20                                             ; +0xf0, 0xd8adc4", "xrefs": ["DSO_load @ 0xd8ae3c", "<???> @ 0x8d7b0"], "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"}