{"type": "func", "start": 10419740, "end": 10420120, "name": "CTLOG_STORE_load_file", "pseudocode": "// \n// CTLOG_STORE_load_file from 0x9efe1c to 0x9eff98 (380 bytes)\n// \n// 4 xrefs:\n// > SSL_CTX_set_ctlog_list_file @ 0x9b0118\n// > CTLOG_STORE_load_default_file @ 0x9effd8\n// > CTLOG_STORE_load_default_file @ 0x9effec\n// > <???> @ 0x761fc\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:29 +0000\n// \n\nint __fastcall CTLOG_STORE_load_file(int a1)\n{\n  _DWORD *v2; // r4\n  int v3; // r0\n  int v4; // r3\n  int v5; // r5\n  const char *string; // r0\n\n  v2 = (_DWORD *)CRYPTO_zalloc(12, \"crypto/ct/ct_log.c\", 59);\n  if ( !v2 )\n    ERR_put_error(50, 122, 65, \"crypto/ct/ct_log.c\", 62);\n  *v2 = a1;\n  v3 = NCONF_new(0);\n  v4 = v3;\n  v2[1] = v3;\n  if ( v3 )\n  {\n    if ( NCONF_load(v3) <= 0 )\n    {\n      ERR_put_error(50, 123, 109, \"crypto/ct/ct_log.c\", 207);\n      v5 = 0;\n      v4 = v2[1];\n    }\n    else\n    {\n      string = (const char *)NCONF_get_string(v2[1], 0, \"enabled_logs\");\n      v5 = (int)string;\n      if ( string )\n      {\n        if ( CONF_parse_list(string, 44, 1, (int (__fastcall *)(const char *, int, int))sub_9EFBE0, (int)v2) && !v2[2] )\n        {\n          v4 = v2[1];\n          v5 = 1;\n        }\n        else\n        {\n          ERR_put_error(50, 123, 109, \"crypto/ct/ct_log.c\", 219);\n          v4 = v2[1];\n          v5 = 0;\n        }\n      }\n      else\n      {\n        ERR_put_error(50, 123, 109, \"crypto/ct/ct_log.c\", 213);\n        v4 = v2[1];\n      }\n    }\n  }\n  else\n  {\n    v5 = 0;\n  }\n  NCONF_free(v4);\n  CRYPTO_free(v2, \"crypto/ct/ct_log.c\", 69);\n  return v5;\n}", "assembly": "; \n; CTLOG_STORE_load_file from 0x9efe1c to 0x9eff98 (380 bytes)\n; \n; 4 xrefs:\n; > SSL_CTX_set_ctlog_list_file @ 0x9b0118\n; > CTLOG_STORE_load_default_file @ 0x9effd8\n; > CTLOG_STORE_load_default_file @ 0x9effec\n; > <???> @ 0x761fc\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:29 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x9efe1c\nLDR             R5, =(aCryptoCtCtLogC - 0x9EFE30); \"crypto/ct/ct_log.c\" ; +0x4, 0x9efe20\nSUB             SP, SP, #0xC                                           ; +0x8, 0x9efe24\nADD             R5, PC, R5; \"crypto/ct/ct_log.c\"                       ; +0xc, 0x9efe28\nMOV             R6, R0                                                 ; +0x10, 0x9efe2c\nMOV             R7, R1                                                 ; +0x14, 0x9efe30\nMOV             R0, #0xC                                               ; +0x18, 0x9efe34\nMOV             R1, R5                                                 ; +0x1c, 0x9efe38\nMOV             R2, #0x3B ; ';'                                        ; +0x20, 0x9efe3c\nBL              CRYPTO_zalloc                                          ; +0x24, 0x9efe40\nSUBS            R4, R0, #0                                             ; +0x28, 0x9efe44\nBEQ             loc_9EFF50                                             ; +0x2c, 0x9efe48\nSTR             R6, [R4]                                               ; +0x30, 0x9efe4c\nMOV             R0, #0                                                 ; +0x34, 0x9efe50\nBL              NCONF_new                                              ; +0x38, 0x9efe54\nCMP             R0, #0                                                 ; +0x3c, 0x9efe58\nMOV             R3, R0                                                 ; +0x40, 0x9efe5c\nSTR             R0, [R4,#4]                                            ; +0x44, 0x9efe60\nMOVEQ           R5, R0                                                 ; +0x48, 0x9efe64\nBEQ             loc_9EFEF0                                             ; +0x4c, 0x9efe68\nMOV             R1, R7                                                 ; +0x50, 0x9efe6c\nMOV             R2, #0                                                 ; +0x54, 0x9efe70\nBL              NCONF_load                                             ; +0x58, 0x9efe74\nCMP             R0, #0                                                 ; +0x5c, 0x9efe78\nBLE             loc_9EFF24                                             ; +0x60, 0x9efe7c\nLDR             R2, =(aEnabledLogs - 0x9EFE94); \"enabled_logs\"         ; +0x64, 0x9efe80\nLDR             R0, [R4,#4]                                            ; +0x68, 0x9efe84\nMOV             R1, #0                                                 ; +0x6c, 0x9efe88\nADD             R2, PC, R2; \"enabled_logs\"                             ; +0x70, 0x9efe8c\nBL              NCONF_get_string                                       ; +0x74, 0x9efe90\nSUBS            R5, R0, #0                                             ; +0x78, 0x9efe94\nBEQ             loc_9EFF70                                             ; +0x7c, 0x9efe98\nLDR             R3, =(sub_9EFBE0 - 0x9EFEB4)                           ; +0x80, 0x9efe9c\nSTR             R4, [SP,#0xC+var_C]; int                               ; +0x84, 0x9efea0\nMOV             R1, #0x2C ; ','; int                                   ; +0x88, 0x9efea4\nMOV             R2, #1; int                                            ; +0x8c, 0x9efea8\nADD             R3, PC, R3; sub_9EFBE0 ; int                           ; +0x90, 0x9efeac\nBL              CONF_parse_list                                        ; +0x94, 0x9efeb0\nCMP             R0, #0                                                 ; +0x98, 0x9efeb4\nBEQ             loc_9EFEC8                                             ; +0x9c, 0x9efeb8\nLDR             R3, [R4,#8]                                            ; +0xa0, 0x9efebc\nCMP             R3, #0                                                 ; +0xa4, 0x9efec0\nBEQ             loc_9EFF18                                             ; +0xa8, 0x9efec4\nMOV             R3, #0xDB                                              ; +0xac, 0x9efec8\nSTR             R3, [SP,#0xC+var_C]                                    ; +0xb0, 0x9efecc\nLDR             R3, =(aCryptoCtCtLogC - 0x9EFEE0); \"crypto/ct/ct_log.c\" ; +0xb4, 0x9efed0\nMOV             R0, #0x32 ; '2'                                        ; +0xb8, 0x9efed4\nADD             R3, PC, R3; \"crypto/ct/ct_log.c\"                       ; +0xbc, 0x9efed8\nMOV             R1, #0x7B ; '{'                                        ; +0xc0, 0x9efedc\nMOV             R2, #0x6D ; 'm'                                        ; +0xc4, 0x9efee0\nBL              ERR_put_error                                          ; +0xc8, 0x9efee4\nLDR             R3, [R4,#4]                                            ; +0xcc, 0x9efee8\nMOV             R5, #0                                                 ; +0xd0, 0x9efeec\nMOV             R0, R3                                                 ; +0xd4, 0x9efef0\nBL              NCONF_free                                             ; +0xd8, 0x9efef4\nLDR             R1, =(aCryptoCtCtLogC - 0x9EFF08); \"crypto/ct/ct_log.c\" ; +0xdc, 0x9efef8\nMOV             R0, R4                                                 ; +0xe0, 0x9efefc\nADD             R1, PC, R1; \"crypto/ct/ct_log.c\"                       ; +0xe4, 0x9eff00\nMOV             R2, #0x45 ; 'E'                                        ; +0xe8, 0x9eff04\nBL              CRYPTO_free                                            ; +0xec, 0x9eff08\nMOV             R0, R5                                                 ; +0xf0, 0x9eff0c\nADD             SP, SP, #0xC                                           ; +0xf4, 0x9eff10\nPOP             {R4-R7,PC}                                             ; +0xf8, 0x9eff14\nLDR             R3, [R4,#4]                                            ; +0xfc, 0x9eff18\nMOV             R5, #1                                                 ; +0x100, 0x9eff1c\nB               loc_9EFEF0                                             ; +0x104, 0x9eff20\nMOV             R3, #0xCF                                              ; +0x108, 0x9eff24\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x10c, 0x9eff28\nLDR             R3, =(aCryptoCtCtLogC - 0x9EFF3C); \"crypto/ct/ct_log.c\" ; +0x110, 0x9eff2c\nMOV             R0, #0x32 ; '2'                                        ; +0x114, 0x9eff30\nADD             R3, PC, R3; \"crypto/ct/ct_log.c\"                       ; +0x118, 0x9eff34\nMOV             R1, #0x7B ; '{'                                        ; +0x11c, 0x9eff38\nMOV             R2, #0x6D ; 'm'                                        ; +0x120, 0x9eff3c\nBL              ERR_put_error                                          ; +0x124, 0x9eff40\nMOV             R5, #0                                                 ; +0x128, 0x9eff44\nLDR             R3, [R4,#4]                                            ; +0x12c, 0x9eff48\nB               loc_9EFEF0                                             ; +0x130, 0x9eff4c\nMOV             R2, #0x3E ; '>'                                        ; +0x134, 0x9eff50\nSTR             R2, [SP,#0xC+var_C]                                    ; +0x138, 0x9eff54\nMOV             R3, R5                                                 ; +0x13c, 0x9eff58\nMOV             R0, #0x32 ; '2'                                        ; +0x140, 0x9eff5c\nMOV             R1, #0x7A ; 'z'                                        ; +0x144, 0x9eff60\nMOV             R2, #0x41 ; 'A'                                        ; +0x148, 0x9eff64\nBL              ERR_put_error                                          ; +0x14c, 0x9eff68\nB               loc_9EFE4C                                             ; +0x150, 0x9eff6c\nMOV             R3, #0xD5                                              ; +0x154, 0x9eff70\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x158, 0x9eff74\nLDR             R3, =(aCryptoCtCtLogC - 0x9EFF88); \"crypto/ct/ct_log.c\" ; +0x15c, 0x9eff78\nMOV             R0, #0x32 ; '2'                                        ; +0x160, 0x9eff7c\nADD             R3, PC, R3; \"crypto/ct/ct_log.c\"                       ; +0x164, 0x9eff80\nMOV             R1, #0x7B ; '{'                                        ; +0x168, 0x9eff84\nMOV             R2, #0x6D ; 'm'                                        ; +0x16c, 0x9eff88\nBL              ERR_put_error                                          ; +0x170, 0x9eff8c\nLDR             R3, [R4,#4]                                            ; +0x174, 0x9eff90\nB               loc_9EFEF0                                             ; +0x178, 0x9eff94", "xrefs": ["SSL_CTX_set_ctlog_list_file @ 0x9b0118", "CTLOG_STORE_load_default_file @ 0x9effd8", "CTLOG_STORE_load_default_file @ 0x9effec", "<???> @ 0x761fc"], "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"}