{"type": "func", "start": 6443189024, "end": 6443189140, "name": "sub_1800B4320", "pseudocode": "// \n// sub_1800B4320 from 0x1800b4320 to 0x1800b4394 (116 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180167160\n// > <???> @ 0x1801fcf00\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\n__int64 __fastcall sub_1800B4320(__int64 a1, void *a2, unsigned int a3, unsigned int *a4)\n{\n  __int64 v4; // rax\n  unsigned int v5; // edi\n  unsigned int v6; // r8d\n  unsigned int v8; // ecx\n  bool v10; // cf\n  unsigned int v11; // ebx\n\n  v4 = *(unsigned int *)(a1 + 496);\n  v5 = a3;\n  v6 = v4 + a3;\n  v8 = *(_DWORD *)(a1 + 36);\n  v10 = v8 < v6;\n  if ( v8 < v6 )\n  {\n    v5 = v8 - v4;\n    v10 = v8 < v6;\n  }\n  v11 = v10 ? 0x10 : 0;\n  memmove(a2, (const void *)(*(_QWORD *)(a1 + 504) + v4), v5);\n  *a4 = v5;\n  *(_DWORD *)(a1 + 496) += v5;\n  return v11;\n}", "assembly": "; \n; sub_1800B4320 from 0x1800b4320 to 0x1800b4394 (116 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180167160\n; > <???> @ 0x1801fcf00\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b4320\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800b4325\nmov     [rsp+arg_10], rdi                                              ; +0xa, 0x1800b432a\npush    r14                                                            ; +0xf, 0x1800b432f\nsub     rsp, 20h                                                       ; +0x11, 0x1800b4331\nmov     eax, [rcx+1F0h]                                                ; +0x15, 0x1800b4335\nmov     edi, r8d                                                       ; +0x1b, 0x1800b433b\nadd     r8d, eax                                                       ; +0x1e, 0x1800b433e\nmov     rsi, rcx                                                       ; +0x21, 0x1800b4341\nmov     ecx, [rcx+24h]                                                 ; +0x24, 0x1800b4344\nmov     r14, r9                                                        ; +0x27, 0x1800b4347\nmov     r9, rdx                                                        ; +0x2a, 0x1800b434a\ncmp     ecx, r8d                                                       ; +0x2d, 0x1800b434d\njnb     short loc_1800B4359                                            ; +0x30, 0x1800b4350\nmov     edi, ecx                                                       ; +0x32, 0x1800b4352\nsub     edi, eax                                                       ; +0x34, 0x1800b4354\ncmp     ecx, r8d                                                       ; +0x36, 0x1800b4356\nsbb     ebx, ebx                                                       ; +0x39, 0x1800b4359\nmov     r8d, edi; Size                                                 ; +0x3b, 0x1800b435b\nmov     rdx, rax                                                       ; +0x3e, 0x1800b435e\nmov     rcx, r9; void *                                                ; +0x41, 0x1800b4361\nadd     rdx, [rsi+1F8h]; Src                                           ; +0x44, 0x1800b4364\nand     ebx, 10h                                                       ; +0x4b, 0x1800b436b\ncall    memmove                                                        ; +0x4e, 0x1800b436e\nmov     [r14], edi                                                     ; +0x53, 0x1800b4373\nmov     eax, ebx                                                       ; +0x56, 0x1800b4376\nadd     [rsi+1F0h], edi                                                ; +0x58, 0x1800b4378\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5e, 0x1800b437e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x63, 0x1800b4383\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x68, 0x1800b4388\nadd     rsp, 20h                                                       ; +0x6d, 0x1800b438d\npop     r14                                                            ; +0x71, 0x1800b4391\nretn                                                                   ; +0x73, 0x1800b4393", "xrefs": ["<???> @ 0x180167160", "<???> @ 0x1801fcf00"], "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"}