{"type": "func", "start": 6443683296, "end": 6443683412, "name": "sub_18012CDE0", "pseudocode": "// \n// sub_18012CDE0 from 0x18012cde0 to 0x18012ce54 (116 bytes)\n// \n// 3 xrefs:\n// > __crt_stdio_output::output_processor<char,__crt_stdio_output::string_output_adapter<char>,__crt_stdio_output::standard_base<char,__crt_stdio_output::string_output_adapter<char>>>::process @ 0x18012c8a2\n// > <???> @ 0x180202c18\n// > <???> @ 0x180202c24\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\nchar __fastcall sub_18012CDE0(__int64 a1)\n{\n  __int64 v2; // rcx\n  char v3; // r8\n\n  if ( (unsigned __int8)unknown_libname_40(a1, 0) )\n  {\n    v2 = *(_QWORD *)(a1 + 1128);\n    v3 = *(_BYTE *)(a1 + 65);\n    if ( *(_QWORD *)(v2 + 16) == *(_QWORD *)(v2 + 8) )\n    {\n      if ( *(_BYTE *)(v2 + 24) )\n        ++*(_DWORD *)(a1 + 40);\n      else\n        *(_DWORD *)(a1 + 40) = -1;\n    }\n    else\n    {\n      ++*(_DWORD *)(a1 + 40);\n      ++*(_QWORD *)(v2 + 16);\n      *(_BYTE *)(**(_QWORD **)(a1 + 1128))++ = v3;\n    }\n    return 1;\n  }\n  else\n  {\n    *errno() = 22;\n    invalid_parameter_noinfo();\n    return 0;\n  }\n}", "assembly": "; \n; sub_18012CDE0 from 0x18012cde0 to 0x18012ce54 (116 bytes)\n; \n; 3 xrefs:\n; > __crt_stdio_output::output_processor<char,__crt_stdio_output::string_output_adapter<char>,__crt_stdio_output::standard_base<char,__crt_stdio_output::string_output_adapter<char>>>::process @ 0x18012c8a2\n; > <???> @ 0x180202c18\n; > <???> @ 0x180202c24\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    rbx                                                            ; +0x0, 0x18012cde0\nsub     rsp, 20h                                                       ; +0x2, 0x18012cde2\nxor     edx, edx                                                       ; +0x6, 0x18012cde6\nmov     rbx, rcx                                                       ; +0x8, 0x18012cde8\ncall    unknown_libname_40; Microsoft VisualC 64bit universal runtime  ; +0xb, 0x18012cdeb\ntest    al, al                                                         ; +0x10, 0x18012cdf0\njz      short loc_18012CE3C                                            ; +0x12, 0x18012cdf2\nmov     rcx, [rbx+468h]                                                ; +0x14, 0x18012cdf4\nmov     r8b, [rbx+41h]                                                 ; +0x1b, 0x18012cdfb\nmov     rax, [rcx+8]                                                   ; +0x1f, 0x18012cdff\ncmp     [rcx+10h], rax                                                 ; +0x23, 0x18012ce03\njnz     short loc_18012CE1A                                            ; +0x27, 0x18012ce07\ncmp     byte ptr [rcx+18h], 0                                          ; +0x29, 0x18012ce09\njz      short loc_18012CE14                                            ; +0x2d, 0x18012ce0d\ninc     dword ptr [rbx+28h]                                            ; +0x2f, 0x18012ce0f\njmp     short loc_18012CE38                                            ; +0x32, 0x18012ce12\nor      dword ptr [rbx+28h], 0FFFFFFFFh                                ; +0x34, 0x18012ce14\njmp     short loc_18012CE38                                            ; +0x38, 0x18012ce18\ninc     dword ptr [rbx+28h]                                            ; +0x3a, 0x18012ce1a\ninc     qword ptr [rcx+10h]                                            ; +0x3d, 0x18012ce1d\nmov     rcx, [rbx+468h]                                                ; +0x41, 0x18012ce21\nmov     rdx, [rcx]                                                     ; +0x48, 0x18012ce28\nmov     [rdx], r8b                                                     ; +0x4b, 0x18012ce2b\nmov     rcx, [rbx+468h]                                                ; +0x4e, 0x18012ce2e\ninc     qword ptr [rcx]                                                ; +0x55, 0x18012ce35\nmov     al, 1                                                          ; +0x58, 0x18012ce38\njmp     short loc_18012CE4E                                            ; +0x5a, 0x18012ce3a\ncall    _errno                                                         ; +0x5c, 0x18012ce3c\nmov     dword ptr [rax], 16h                                           ; +0x61, 0x18012ce41\ncall    _invalid_parameter_noinfo                                      ; +0x67, 0x18012ce47\nxor     al, al                                                         ; +0x6c, 0x18012ce4c\nadd     rsp, 20h                                                       ; +0x6e, 0x18012ce4e\npop     rbx                                                            ; +0x72, 0x18012ce52\nretn                                                                   ; +0x73, 0x18012ce53", "xrefs": ["__crt_stdio_output::output_processor<char,__crt_stdio_output::string_output_adapter<char>,__crt_stdio_output::standard_base<char,__crt_stdio_output::string_output_adapter<char>>>::process @ 0x18012c8a2", "<???> @ 0x180202c18", "<???> @ 0x180202c24"], "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"}