{"type": "func", "start": 8237596, "end": 8237976, "name": "CTLOG_STORE_load_file", "pseudocode": "// \n// CTLOG_STORE_load_file from 0x7db21c to 0x7db398 (380 bytes)\n// \n// 4 xrefs:\n// > SSL_CTX_set_ctlog_list_file @ 0x79b514\n// > CTLOG_STORE_load_default_file @ 0x7db3d8\n// > CTLOG_STORE_load_default_file @ 0x7db3ec\n// > <???> @ 0x5c77c\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 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_7DAFE0, (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 0x7db21c to 0x7db398 (380 bytes)\n; \n; 4 xrefs:\n; > SSL_CTX_set_ctlog_list_file @ 0x79b514\n; > CTLOG_STORE_load_default_file @ 0x7db3d8\n; > CTLOG_STORE_load_default_file @ 0x7db3ec\n; > <???> @ 0x5c77c\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-R7,LR}                                             ; +0x0, 0x7db21c\nLDR             R5, =(aCryptoCtCtLogC - 0x7DB230); \"crypto/ct/ct_log.c\" ; +0x4, 0x7db220\nSUB             SP, SP, #0xC                                           ; +0x8, 0x7db224\nADD             R5, PC, R5; \"crypto/ct/ct_log.c\"                       ; +0xc, 0x7db228\nMOV             R6, R0                                                 ; +0x10, 0x7db22c\nMOV             R7, R1                                                 ; +0x14, 0x7db230\nMOV             R0, #0xC                                               ; +0x18, 0x7db234\nMOV             R1, R5                                                 ; +0x1c, 0x7db238\nMOV             R2, #0x3B ; ';'                                        ; +0x20, 0x7db23c\nBL              CRYPTO_zalloc                                          ; +0x24, 0x7db240\nSUBS            R4, R0, #0                                             ; +0x28, 0x7db244\nBEQ             loc_7DB350                                             ; +0x2c, 0x7db248\nSTR             R6, [R4]                                               ; +0x30, 0x7db24c\nMOV             R0, #0                                                 ; +0x34, 0x7db250\nBL              NCONF_new                                              ; +0x38, 0x7db254\nCMP             R0, #0                                                 ; +0x3c, 0x7db258\nMOV             R3, R0                                                 ; +0x40, 0x7db25c\nSTR             R0, [R4,#4]                                            ; +0x44, 0x7db260\nMOVEQ           R5, R0                                                 ; +0x48, 0x7db264\nBEQ             loc_7DB2F0                                             ; +0x4c, 0x7db268\nMOV             R1, R7                                                 ; +0x50, 0x7db26c\nMOV             R2, #0                                                 ; +0x54, 0x7db270\nBL              NCONF_load                                             ; +0x58, 0x7db274\nCMP             R0, #0                                                 ; +0x5c, 0x7db278\nBLE             loc_7DB324                                             ; +0x60, 0x7db27c\nLDR             R2, =(aEnabledLogs - 0x7DB294); \"enabled_logs\"         ; +0x64, 0x7db280\nLDR             R0, [R4,#4]                                            ; +0x68, 0x7db284\nMOV             R1, #0                                                 ; +0x6c, 0x7db288\nADD             R2, PC, R2; \"enabled_logs\"                             ; +0x70, 0x7db28c\nBL              NCONF_get_string                                       ; +0x74, 0x7db290\nSUBS            R5, R0, #0                                             ; +0x78, 0x7db294\nBEQ             loc_7DB370                                             ; +0x7c, 0x7db298\nLDR             R3, =(sub_7DAFE0 - 0x7DB2B4)                           ; +0x80, 0x7db29c\nSTR             R4, [SP,#0xC+var_C]; int                               ; +0x84, 0x7db2a0\nMOV             R1, #0x2C ; ','; int                                   ; +0x88, 0x7db2a4\nMOV             R2, #1; int                                            ; +0x8c, 0x7db2a8\nADD             R3, PC, R3; sub_7DAFE0 ; int                           ; +0x90, 0x7db2ac\nBL              CONF_parse_list                                        ; +0x94, 0x7db2b0\nCMP             R0, #0                                                 ; +0x98, 0x7db2b4\nBEQ             loc_7DB2C8                                             ; +0x9c, 0x7db2b8\nLDR             R3, [R4,#8]                                            ; +0xa0, 0x7db2bc\nCMP             R3, #0                                                 ; +0xa4, 0x7db2c0\nBEQ             loc_7DB318                                             ; +0xa8, 0x7db2c4\nMOV             R3, #0xDB                                              ; +0xac, 0x7db2c8\nSTR             R3, [SP,#0xC+var_C]                                    ; +0xb0, 0x7db2cc\nLDR             R3, =(aCryptoCtCtLogC - 0x7DB2E0); \"crypto/ct/ct_log.c\" ; +0xb4, 0x7db2d0\nMOV             R0, #0x32 ; '2'                                        ; +0xb8, 0x7db2d4\nADD             R3, PC, R3; \"crypto/ct/ct_log.c\"                       ; +0xbc, 0x7db2d8\nMOV             R1, #0x7B ; '{'                                        ; +0xc0, 0x7db2dc\nMOV             R2, #0x6D ; 'm'                                        ; +0xc4, 0x7db2e0\nBL              ERR_put_error                                          ; +0xc8, 0x7db2e4\nLDR             R3, [R4,#4]                                            ; +0xcc, 0x7db2e8\nMOV             R5, #0                                                 ; +0xd0, 0x7db2ec\nMOV             R0, R3                                                 ; +0xd4, 0x7db2f0\nBL              NCONF_free                                             ; +0xd8, 0x7db2f4\nLDR             R1, =(aCryptoCtCtLogC - 0x7DB308); \"crypto/ct/ct_log.c\" ; +0xdc, 0x7db2f8\nMOV             R0, R4                                                 ; +0xe0, 0x7db2fc\nADD             R1, PC, R1; \"crypto/ct/ct_log.c\"                       ; +0xe4, 0x7db300\nMOV             R2, #0x45 ; 'E'                                        ; +0xe8, 0x7db304\nBL              CRYPTO_free                                            ; +0xec, 0x7db308\nMOV             R0, R5                                                 ; +0xf0, 0x7db30c\nADD             SP, SP, #0xC                                           ; +0xf4, 0x7db310\nPOP             {R4-R7,PC}                                             ; +0xf8, 0x7db314\nLDR             R3, [R4,#4]                                            ; +0xfc, 0x7db318\nMOV             R5, #1                                                 ; +0x100, 0x7db31c\nB               loc_7DB2F0                                             ; +0x104, 0x7db320\nMOV             R3, #0xCF                                              ; +0x108, 0x7db324\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x10c, 0x7db328\nLDR             R3, =(aCryptoCtCtLogC - 0x7DB33C); \"crypto/ct/ct_log.c\" ; +0x110, 0x7db32c\nMOV             R0, #0x32 ; '2'                                        ; +0x114, 0x7db330\nADD             R3, PC, R3; \"crypto/ct/ct_log.c\"                       ; +0x118, 0x7db334\nMOV             R1, #0x7B ; '{'                                        ; +0x11c, 0x7db338\nMOV             R2, #0x6D ; 'm'                                        ; +0x120, 0x7db33c\nBL              ERR_put_error                                          ; +0x124, 0x7db340\nMOV             R5, #0                                                 ; +0x128, 0x7db344\nLDR             R3, [R4,#4]                                            ; +0x12c, 0x7db348\nB               loc_7DB2F0                                             ; +0x130, 0x7db34c\nMOV             R2, #0x3E ; '>'                                        ; +0x134, 0x7db350\nSTR             R2, [SP,#0xC+var_C]                                    ; +0x138, 0x7db354\nMOV             R3, R5                                                 ; +0x13c, 0x7db358\nMOV             R0, #0x32 ; '2'                                        ; +0x140, 0x7db35c\nMOV             R1, #0x7A ; 'z'                                        ; +0x144, 0x7db360\nMOV             R2, #0x41 ; 'A'                                        ; +0x148, 0x7db364\nBL              ERR_put_error                                          ; +0x14c, 0x7db368\nB               loc_7DB24C                                             ; +0x150, 0x7db36c\nMOV             R3, #0xD5                                              ; +0x154, 0x7db370\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x158, 0x7db374\nLDR             R3, =(aCryptoCtCtLogC - 0x7DB388); \"crypto/ct/ct_log.c\" ; +0x15c, 0x7db378\nMOV             R0, #0x32 ; '2'                                        ; +0x160, 0x7db37c\nADD             R3, PC, R3; \"crypto/ct/ct_log.c\"                       ; +0x164, 0x7db380\nMOV             R1, #0x7B ; '{'                                        ; +0x168, 0x7db384\nMOV             R2, #0x6D ; 'm'                                        ; +0x16c, 0x7db388\nBL              ERR_put_error                                          ; +0x170, 0x7db38c\nLDR             R3, [R4,#4]                                            ; +0x174, 0x7db390\nB               loc_7DB2F0                                             ; +0x178, 0x7db394", "xrefs": ["SSL_CTX_set_ctlog_list_file @ 0x79b514", "CTLOG_STORE_load_default_file @ 0x7db3d8", "CTLOG_STORE_load_default_file @ 0x7db3ec", "<???> @ 0x5c77c"], "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"}