{"type": "func", "start": 6443679724, "end": 6443679888, "name": "unknown_libname_33", "pseudocode": "// \n// unknown_libname_33 from 0x18012bfec to 0x18012c090 (164 bytes)\n// \n// 2 xrefs:\n// > sub_18012E698 @ 0x18012e7c5\n// > <???> @ 0x180202b94\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:57 +0000\n// \n\n// Microsoft VisualC 64bit universal runtime\n__int64 __fastcall unknown_libname_33(__int64 a1, unsigned __int64 a2, unsigned int a3, char a4)\n{\n  __int64 v4; // rax\n  __int64 v6; // rcx\n  unsigned __int64 v7; // rbx\n  __int64 v9; // rax\n  __int64 v10; // r8\n  __int64 result; // rax\n  int v12; // ecx\n  unsigned __int16 v13; // dx\n\n  v4 = *(_QWORD *)(a1 + 1120);\n  v6 = a1 + 88;\n  v7 = a3;\n  if ( v4 )\n  {\n    v6 = v4;\n    v9 = *(_QWORD *)(a1 + 1112) >> 2;\n  }\n  else\n  {\n    v9 = 256;\n  }\n  v10 = v6 + 2 * (v9 - 1);\n  *(_QWORD *)(a1 + 72) = v10;\n  for ( result = v10; ; result = *(_QWORD *)(a1 + 72) )\n  {\n    v12 = *(_DWORD *)(a1 + 56);\n    if ( v12 <= 0 && !a2 )\n      break;\n    *(_DWORD *)(a1 + 56) = v12 - 1;\n    v13 = a2 % v7 + 48;\n    a2 /= v7;\n    if ( v13 > 0x39u )\n      LOBYTE(v13) = v13 + 32 * (a4 ^ 1) + 7;\n    **(_WORD **)(a1 + 72) = (char)v13;\n    *(_QWORD *)(a1 + 72) -= 2LL;\n  }\n  *(_DWORD *)(a1 + 80) = (v10 - result) >> 1;\n  *(_QWORD *)(a1 + 72) += 2LL;\n  return result;\n}", "assembly": "; \n; unknown_libname_33 from 0x18012bfec to 0x18012c090 (164 bytes)\n; \n; 2 xrefs:\n; > sub_18012E698 @ 0x18012e7c5\n; > <???> @ 0x180202b94\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:57 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18012bfec\nmov     rax, [rcx+460h]                                                ; +0x5, 0x18012bff1\nmov     r10, rcx                                                       ; +0xc, 0x18012bff8\nadd     rcx, 58h ; 'X'                                                 ; +0xf, 0x18012bffb\nmov     ebx, r8d                                                       ; +0x13, 0x18012bfff\nmov     r11, rdx                                                       ; +0x16, 0x18012c002\ntest    rax, rax                                                       ; +0x19, 0x18012c005\njnz     short loc_18012C011                                            ; +0x1c, 0x18012c008\nmov     eax, 100h                                                      ; +0x1e, 0x18012c00a\njmp     short loc_18012C01F                                            ; +0x23, 0x18012c00f\nmov     rcx, rax                                                       ; +0x25, 0x18012c011\nmov     rax, [r10+458h]                                                ; +0x28, 0x18012c014\nshr     rax, 2                                                         ; +0x2f, 0x18012c01b\nlea     rax, [rax-1]                                                   ; +0x33, 0x18012c01f\nlea     r8, [rcx+rax*2]                                                ; +0x37, 0x18012c023\nmov     [r10+48h], r8                                                  ; +0x3b, 0x18012c027\nmov     rax, r8                                                        ; +0x3f, 0x18012c02b\nmov     ecx, [r10+38h]                                                 ; +0x42, 0x18012c02e\ntest    ecx, ecx                                                       ; +0x46, 0x18012c032\njg      short loc_18012C03B                                            ; +0x48, 0x18012c034\ntest    r11, r11                                                       ; +0x4a, 0x18012c036\njz      short loc_18012C07B                                            ; +0x4d, 0x18012c039\nxor     edx, edx                                                       ; +0x4f, 0x18012c03b\nlea     eax, [rcx-1]                                                   ; +0x51, 0x18012c03d\nmov     [r10+38h], eax                                                 ; +0x54, 0x18012c040\nmov     rax, r11                                                       ; +0x58, 0x18012c044\ndiv     rbx                                                            ; +0x5b, 0x18012c047\nadd     dx, 30h ; '0'                                                  ; +0x5e, 0x18012c04a\nmov     r11, rax                                                       ; +0x62, 0x18012c04e\ncmp     dx, 39h ; '9'                                                  ; +0x65, 0x18012c051\njbe     short loc_18012C066                                            ; +0x69, 0x18012c055\nmov     al, r9b                                                        ; +0x6b, 0x18012c057\nxor     al, 1                                                          ; +0x6e, 0x18012c05a\nshl     al, 5                                                          ; +0x70, 0x18012c05c\nadd     al, 7                                                          ; +0x73, 0x18012c05f\nadd     al, dl                                                         ; +0x75, 0x18012c061\nmovsx   edx, al                                                        ; +0x77, 0x18012c063\nmov     rax, [r10+48h]                                                 ; +0x7a, 0x18012c066\nmovsx   ecx, dl                                                        ; +0x7e, 0x18012c06a\nmov     [rax], cx                                                      ; +0x81, 0x18012c06d\nadd     qword ptr [r10+48h], 0FFFFFFFFFFFFFFFEh                        ; +0x84, 0x18012c070\nmov     rax, [r10+48h]                                                 ; +0x89, 0x18012c075\njmp     short loc_18012C02E                                            ; +0x8d, 0x18012c079\nmov     rbx, [rsp+arg_0]                                               ; +0x8f, 0x18012c07b\nsub     r8, rax                                                        ; +0x94, 0x18012c080\nsar     r8, 1                                                          ; +0x97, 0x18012c083\nmov     [r10+50h], r8d                                                 ; +0x9a, 0x18012c086\nadd     qword ptr [r10+48h], 2                                         ; +0x9e, 0x18012c08a\nretn                                                                   ; +0xa3, 0x18012c08f", "xrefs": ["sub_18012E698 @ 0x18012e7c5", "<???> @ 0x180202b94"], "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"}