{"type": "func", "start": 9128304, "end": 9128520, "name": "ERR_print_errors_cb", "pseudocode": "// \n// ERR_print_errors_cb from 0x8b4970 to 0x8b4a48 (216 bytes)\n// \n// 4 xrefs:\n// > UI_process @ 0x83b1b0\n// > ERR_print_errors @ 0x8b4a5c\n// > ERR_print_errors_fp @ 0x8b4a84\n// > <???> @ 0x6695c\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\nsigned int __fastcall ERR_print_errors_cb(int (__fastcall *a1)(char *, size_t, int), int a2)\n{\n  char *v4; // r3\n  size_t v5; // r0\n  signed int result; // r0\n  pthread_t current_id; // [sp+14h] [bp-1120h]\n  int v8; // [sp+20h] [bp-1114h] BYREF\n  char *v9; // [sp+24h] [bp-1110h] BYREF\n  int v10; // [sp+28h] [bp-110Ch] BYREF\n  int v11; // [sp+2Ch] [bp-1108h] BYREF\n  char v12[256]; // [sp+30h] [bp-1104h] BYREF\n  char v13[4100]; // [sp+130h] [bp-1004h] BYREF\n\n  current_id = CRYPTO_THREAD_get_current_id();\n  do\n  {\n    result = ERR_get_error_line_data(&v8, &v10, &v9, &v11);\n    if ( !result )\n      break;\n    ERR_error_string_n(result, v12, 0x100u);\n    v4 = &byte_9B1912;\n    if ( (v11 & 2) != 0 )\n      v4 = v9;\n    BIO_snprintf(v13, 0x1000u, \"%lu:%s:%s:%d:%s\\n\", current_id, v12, v8, v10, v4);\n    v5 = strlen(v13);\n    result = a1(v13, v5, a2);\n  }\n  while ( result > 0 );\n  return result;\n}", "assembly": "; \n; ERR_print_errors_cb from 0x8b4970 to 0x8b4a48 (216 bytes)\n; \n; 4 xrefs:\n; > UI_process @ 0x83b1b0\n; > ERR_print_errors @ 0x8b4a5c\n; > ERR_print_errors_fp @ 0x8b4a84\n; > <???> @ 0x6695c\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-R11,LR}                                            ; +0x0, 0x8b4970\nSUB             SP, SP, #0x1100                                        ; +0x4, 0x8b4974\nSUB             SP, SP, #0x34                                          ; +0x8, 0x8b4978\nMOV             R11, R0                                                ; +0xc, 0x8b497c\nMOV             R10, R1                                                ; +0x10, 0x8b4980\nBL              CRYPTO_THREAD_get_current_id                           ; +0x14, 0x8b4984\nLDR             R3, =(byte_9B1912 - 0x8B4998)                          ; +0x18, 0x8b4988\nADD             R5, SP, #0x1134+var_1104                               ; +0x1c, 0x8b498c\nADD             R3, PC, R3; byte_9B1912                                ; +0x20, 0x8b4990\nSTR             R3, [SP,#0x1134+var_111C]                              ; +0x24, 0x8b4994\nLDR             R3, =(aLuSSDS - 0x8B49A8); \"%lu:%s:%s:%d:%s\\n\"         ; +0x28, 0x8b4998\nADD             R9, SP, #0x1134+var_1114                               ; +0x2c, 0x8b499c\nADD             R3, PC, R3; \"%lu:%s:%s:%d:%s\\n\"                        ; +0x30, 0x8b49a0\nADD             R8, SP, #0x1134+var_110C                               ; +0x34, 0x8b49a4\nADD             R7, SP, #0x1134+var_1110                               ; +0x38, 0x8b49a8\nADD             R6, SP, #0x1134+var_1108                               ; +0x3c, 0x8b49ac\nADD             R4, SP, #0x1134+var_1004                               ; +0x40, 0x8b49b0\nSTR             R3, [SP,#0x1134+var_1118]                              ; +0x44, 0x8b49b4\nSTR             R0, [SP,#0x1134+var_1120]                              ; +0x48, 0x8b49b8\nB               loc_8B4A18                                             ; +0x4c, 0x8b49bc\nBL              ERR_error_string_n                                     ; +0x50, 0x8b49c0\nLDR             R2, [R4,#-0x104]                                       ; +0x54, 0x8b49c4\nLDR             R3, [SP,#0x1134+var_111C]                              ; +0x58, 0x8b49c8\nTST             R2, #2                                                 ; +0x5c, 0x8b49cc\nLDRNE           R3, [R4,#-0x10C]                                       ; +0x60, 0x8b49d0\nLDR             R1, [R4,#-0x110]                                       ; +0x64, 0x8b49d4\nLDR             R2, [R4,#-0x108]                                       ; +0x68, 0x8b49d8\nMOV             R0, R4                                                 ; +0x6c, 0x8b49dc\nSTMFA           SP, {R1-R3}                                            ; +0x70, 0x8b49e0\nSTR             R5, [SP,#0x1134+var_1134]                              ; +0x74, 0x8b49e4\nMOV             R1, #0x1000                                            ; +0x78, 0x8b49e8\nLDR             R2, [SP,#0x1134+var_1118]                              ; +0x7c, 0x8b49ec\nLDR             R3, [SP,#0x1134+var_1120]                              ; +0x80, 0x8b49f0\nBL              BIO_snprintf                                           ; +0x84, 0x8b49f4\nMOV             R0, R4; char *                                         ; +0x88, 0x8b49f8\nBL              strlen                                                 ; +0x8c, 0x8b49fc\nMOV             R2, R10                                                ; +0x90, 0x8b4a00\nMOV             R1, R0                                                 ; +0x94, 0x8b4a04\nMOV             R0, R4                                                 ; +0x98, 0x8b4a08\nBLX             R11                                                    ; +0x9c, 0x8b4a0c\nCMP             R0, #0                                                 ; +0xa0, 0x8b4a10\nBLE             loc_8B4A3C                                             ; +0xa4, 0x8b4a14\nMOV             R1, R8                                                 ; +0xa8, 0x8b4a18\nMOV             R2, R7                                                 ; +0xac, 0x8b4a1c\nMOV             R0, R9                                                 ; +0xb0, 0x8b4a20\nMOV             R3, R6                                                 ; +0xb4, 0x8b4a24\nBL              ERR_get_error_line_data                                ; +0xb8, 0x8b4a28\nMOV             R1, R5                                                 ; +0xbc, 0x8b4a2c\nMOV             R2, #0x100                                             ; +0xc0, 0x8b4a30\nCMP             R0, #0                                                 ; +0xc4, 0x8b4a34\nBNE             loc_8B49C0                                             ; +0xc8, 0x8b4a38\nADD             SP, SP, #0x1100                                        ; +0xcc, 0x8b4a3c\nADD             SP, SP, #0x34 ; '4'                                    ; +0xd0, 0x8b4a40\nPOP             {R4-R11,PC}                                            ; +0xd4, 0x8b4a44", "xrefs": ["UI_process @ 0x83b1b0", "ERR_print_errors @ 0x8b4a5c", "ERR_print_errors_fp @ 0x8b4a84", "<???> @ 0x6695c"], "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"}