{"type": "func", "start": 6442540256, "end": 6442540416, "name": "sub_180015CE0", "pseudocode": "// \n// sub_180015CE0 from 0x180015ce0 to 0x180015d80 (160 bytes)\n// \n// 2 xrefs:\n// > sub_180015970 @ 0x180015a15\n// > <???> @ 0x1801ae4f4\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_180015CE0(__int64 a1, int a2, __int64 a3, const void *a4, unsigned int Size)\n{\n  unsigned int v6; // r10d\n  __int64 v8; // rsi\n  char *v9; // rbx\n  size_t v10; // [rsp+20h] [rbp-28h]\n  int v11; // [rsp+30h] [rbp-18h] BYREF\n  __int16 v12; // [rsp+34h] [rbp-14h]\n  int v13; // [rsp+38h] [rbp-10h]\n\n  if ( a2 >= -1 )\n  {\n    v8 = a2 + Size;\n    v9 = (char *)fmt::BasicWriter<char>::GrowBuffer(a1, v8);\n    memmove(v9, a4, Size);\n    return &v9[v8 - 1];\n  }\n  else\n  {\n    v6 = Size;\n    if ( Size )\n    {\n      if ( *((_BYTE *)a4 + Size - 1) == 48 )\n        v6 = Size - 1;\n    }\n    v13 = 4;\n    v11 = v6 - 1;\n    LODWORD(v10) = v6;\n    v12 = 48;\n    return sub_180015AC0(a1, a2, (unsigned int *)&v11, a4, v10);\n  }\n}", "assembly": "; \n; sub_180015CE0 from 0x180015ce0 to 0x180015d80 (160 bytes)\n; \n; 2 xrefs:\n; > sub_180015970 @ 0x180015a15\n; > <???> @ 0x1801ae4f4\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    rbp                                                            ; +0x0, 0x180015ce0\nsub     rsp, 40h                                                       ; +0x2, 0x180015ce2\nmov     rbp, r9                                                        ; +0x6, 0x180015ce6\ncmp     edx, 0FFFFFFFFh                                                ; +0x9, 0x180015ce9\njge     short loc_180015D34                                            ; +0xc, 0x180015cec\nmov     r10d, dword ptr [rsp+48h+Size]                                 ; +0xe, 0x180015cee\ntest    r10d, r10d                                                     ; +0x13, 0x180015cf3\njz      short loc_180015D05                                            ; +0x16, 0x180015cf6\nlea     r8d, [r10-1]                                                   ; +0x18, 0x180015cf8\ncmp     byte ptr [r8+r9], 30h ; '0'                                    ; +0x1c, 0x180015cfc\ncmovz   r10d, r8d                                                      ; +0x21, 0x180015d01\nlea     eax, [r10-1]                                                   ; +0x25, 0x180015d05\nmov     [rsp+48h+var_10], 4                                            ; +0x29, 0x180015d09\nmov     [rsp+48h+var_18], eax                                          ; +0x31, 0x180015d11\nlea     r8, [rsp+48h+var_18]; int                                      ; +0x35, 0x180015d15\nmov     eax, 30h ; '0'                                                 ; +0x3a, 0x180015d1a\nmov     dword ptr [rsp+48h+var_28], r10d; Size                         ; +0x3f, 0x180015d1f\nmov     [rsp+48h+var_14], ax                                           ; +0x44, 0x180015d24\ncall    sub_180015AC0                                                  ; +0x49, 0x180015d29\nadd     rsp, 40h                                                       ; +0x4e, 0x180015d2e\npop     rbp                                                            ; +0x52, 0x180015d32\nretn                                                                   ; +0x53, 0x180015d33\nmov     [rsp+48h+arg_0], rbx                                           ; +0x54, 0x180015d34\nmov     [rsp+48h+arg_8], rsi                                           ; +0x59, 0x180015d39\nmov     [rsp+48h+arg_10], rdi                                          ; +0x5e, 0x180015d3e\nmov     edi, dword ptr [rsp+48h+Size]                                  ; +0x63, 0x180015d43\nlea     eax, [rdx+rdi]                                                 ; +0x67, 0x180015d47\nmov     edx, eax                                                       ; +0x6a, 0x180015d4a\nmov     esi, eax                                                       ; +0x6c, 0x180015d4c\ncall    ?GrowBuffer@?$BasicWriter@D@fmt@@AEAAPEAD_K@Z; fmt::BasicWriter<char>::GrowBuffer(unsigned __int64) ; +0x6e, 0x180015d4e\nmov     r8d, edi; Size                                                 ; +0x73, 0x180015d53\nmov     rdx, rbp; Src                                                  ; +0x76, 0x180015d56\nmov     rcx, rax; void *                                               ; +0x79, 0x180015d59\nmov     rbx, rax                                                       ; +0x7c, 0x180015d5c\ncall    memmove                                                        ; +0x7f, 0x180015d5f\nmov     rdi, [rsp+48h+arg_10]                                          ; +0x84, 0x180015d64\nlea     rax, [rsi-1]                                                   ; +0x89, 0x180015d69\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x8d, 0x180015d6d\nadd     rax, rbx                                                       ; +0x92, 0x180015d72\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x95, 0x180015d75\nadd     rsp, 40h                                                       ; +0x9a, 0x180015d7a\npop     rbp                                                            ; +0x9e, 0x180015d7e\nretn                                                                   ; +0x9f, 0x180015d7f", "xrefs": ["sub_180015970 @ 0x180015a15", "<???> @ 0x1801ae4f4"], "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"}