{"type": "func", "start": 6443690680, "end": 6443690814, "name": "unknown_libname_52", "pseudocode": "// \n// unknown_libname_52 from 0x18012eab8 to 0x18012eb3e (134 bytes)\n// \n// 2 xrefs:\n// > __multtenpow12 @ 0x18012d9fc\n// > <???> @ 0x180202d20\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 10:54:58 +0000\n// \n\n// Microsoft VisualC 64bit universal runtime\nchar __fastcall unknown_libname_52(__int64 a1)\n{\n  _QWORD *v2; // rdi\n  __int64 v4; // rax\n  __int64 v5; // rax\n  __int64 v6; // rax\n\n  *(_QWORD *)(a1 + 32) += 8LL;\n  v2 = *(_QWORD **)(*(_QWORD *)(a1 + 32) - 8LL);\n  if ( !get_printf_count_output() )\n    goto LABEL_2;\n  v4 = __crt_stdio_output::to_integer_size(*(_DWORD *)(a1 + 60)) - 1;\n  if ( v4 )\n  {\n    v5 = v4 - 1;\n    if ( v5 )\n    {\n      v6 = v5 - 2;\n      if ( v6 )\n      {\n        if ( v6 != 4 )\n        {\nLABEL_2:\n          *errno() = 22;\n          invalid_parameter_noinfo();\n          return 0;\n        }\n        *v2 = *(int *)(a1 + 40);\n      }\n      else\n      {\n        *(_DWORD *)v2 = *(_DWORD *)(a1 + 40);\n      }\n    }\n    else\n    {\n      *(_WORD *)v2 = *(_WORD *)(a1 + 40);\n    }\n  }\n  else\n  {\n    *(_BYTE *)v2 = *(_BYTE *)(a1 + 40);\n  }\n  *(_BYTE *)(a1 + 64) = 1;\n  return 1;\n}", "assembly": "; \n; unknown_libname_52 from 0x18012eab8 to 0x18012eb3e (134 bytes)\n; \n; 2 xrefs:\n; > __multtenpow12 @ 0x18012d9fc\n; > <???> @ 0x180202d20\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 10:54:58 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18012eab8\npush    rdi                                                            ; +0x5, 0x18012eabd\nsub     rsp, 20h                                                       ; +0x6, 0x18012eabe\nadd     qword ptr [rcx+20h], 8                                         ; +0xa, 0x18012eac2\nmov     rbx, rcx                                                       ; +0xf, 0x18012eac7\nmov     rax, [rcx+20h]                                                 ; +0x12, 0x18012eaca\nmov     rdi, [rax-8]                                                   ; +0x16, 0x18012eace\ncall    _get_printf_count_output                                       ; +0x1a, 0x18012ead2\ntest    eax, eax                                                       ; +0x1f, 0x18012ead7\njnz     short loc_18012EAEF                                            ; +0x21, 0x18012ead9\ncall    _errno                                                         ; +0x23, 0x18012eadb\nmov     dword ptr [rax], 16h                                           ; +0x28, 0x18012eae0\ncall    _invalid_parameter_noinfo                                      ; +0x2e, 0x18012eae6\nxor     al, al                                                         ; +0x33, 0x18012eaeb\njmp     short loc_18012EB33                                            ; +0x35, 0x18012eaed\nmov     ecx, [rbx+3Ch]                                                 ; +0x37, 0x18012eaef\ncall    ?to_integer_size@__crt_stdio_output@@YA_KW4length_modifier@1@@Z ; +0x3a, 0x18012eaf2\nsub     rax, 1                                                         ; +0x3f, 0x18012eaf7\njz      short loc_18012EB28                                            ; +0x43, 0x18012eafb\nsub     rax, 1                                                         ; +0x45, 0x18012eafd\njz      short loc_18012EB1F                                            ; +0x49, 0x18012eb01\nsub     rax, 2                                                         ; +0x4b, 0x18012eb03\njz      short loc_18012EB18                                            ; +0x4f, 0x18012eb07\ncmp     rax, 4                                                         ; +0x51, 0x18012eb09\njnz     short loc_18012EADB                                            ; +0x55, 0x18012eb0d\nmovsxd  rax, dword ptr [rbx+28h]                                       ; +0x57, 0x18012eb0f\nmov     [rdi], rax                                                     ; +0x5b, 0x18012eb13\njmp     short loc_18012EB2D                                            ; +0x5e, 0x18012eb16\nmov     eax, [rbx+28h]                                                 ; +0x60, 0x18012eb18\nmov     [rdi], eax                                                     ; +0x63, 0x18012eb1b\njmp     short loc_18012EB2D                                            ; +0x65, 0x18012eb1d\nmovzx   eax, word ptr [rbx+28h]                                        ; +0x67, 0x18012eb1f\nmov     [rdi], ax                                                      ; +0x6b, 0x18012eb23\njmp     short loc_18012EB2D                                            ; +0x6e, 0x18012eb26\nmov     al, [rbx+28h]                                                  ; +0x70, 0x18012eb28\nmov     [rdi], al                                                      ; +0x73, 0x18012eb2b\nmov     byte ptr [rbx+40h], 1                                          ; +0x75, 0x18012eb2d\nmov     al, 1                                                          ; +0x79, 0x18012eb31\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7b, 0x18012eb33\nadd     rsp, 20h                                                       ; +0x80, 0x18012eb38\npop     rdi                                                            ; +0x84, 0x18012eb3c\nretn                                                                   ; +0x85, 0x18012eb3d", "xrefs": ["__multtenpow12 @ 0x18012d9fc", "<???> @ 0x180202d20"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}