{"type": "func", "start": 6442540128, "end": 6442540288, "name": "sub_180015C60", "pseudocode": "// \n// sub_180015C60 from 0x180015c60 to 0x180015d00 (160 bytes)\n// \n// 2 xrefs:\n// > sub_1800158E0 @ 0x180015989\n// > <???> @ 0x1801b85a8\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 11:21:24 +0000\n// \n\nchar *__fastcall sub_180015C60(__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_180015A30(a1, a2, (unsigned int *)&v11, a4, v10);\n  }\n}", "assembly": "; \n; sub_180015C60 from 0x180015c60 to 0x180015d00 (160 bytes)\n; \n; 2 xrefs:\n; > sub_1800158E0 @ 0x180015989\n; > <???> @ 0x1801b85a8\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 11:21:24 +0000\n; \npush    rbp                                                            ; +0x0, 0x180015c60\nsub     rsp, 40h                                                       ; +0x2, 0x180015c62\nmov     rbp, r9                                                        ; +0x6, 0x180015c66\ncmp     edx, 0FFFFFFFFh                                                ; +0x9, 0x180015c69\njge     short loc_180015CB4                                            ; +0xc, 0x180015c6c\nmov     r10d, dword ptr [rsp+48h+Size]                                 ; +0xe, 0x180015c6e\ntest    r10d, r10d                                                     ; +0x13, 0x180015c73\njz      short loc_180015C85                                            ; +0x16, 0x180015c76\nlea     r8d, [r10-1]                                                   ; +0x18, 0x180015c78\ncmp     byte ptr [r8+r9], 30h ; '0'                                    ; +0x1c, 0x180015c7c\ncmovz   r10d, r8d                                                      ; +0x21, 0x180015c81\nlea     eax, [r10-1]                                                   ; +0x25, 0x180015c85\nmov     [rsp+48h+var_10], 4                                            ; +0x29, 0x180015c89\nmov     [rsp+48h+var_18], eax                                          ; +0x31, 0x180015c91\nlea     r8, [rsp+48h+var_18]; int                                      ; +0x35, 0x180015c95\nmov     eax, 30h ; '0'                                                 ; +0x3a, 0x180015c9a\nmov     dword ptr [rsp+48h+var_28], r10d; Size                         ; +0x3f, 0x180015c9f\nmov     [rsp+48h+var_14], ax                                           ; +0x44, 0x180015ca4\ncall    sub_180015A30                                                  ; +0x49, 0x180015ca9\nadd     rsp, 40h                                                       ; +0x4e, 0x180015cae\npop     rbp                                                            ; +0x52, 0x180015cb2\nretn                                                                   ; +0x53, 0x180015cb3\nmov     [rsp+48h+arg_0], rbx                                           ; +0x54, 0x180015cb4\nmov     [rsp+48h+arg_8], rsi                                           ; +0x59, 0x180015cb9\nmov     [rsp+48h+arg_10], rdi                                          ; +0x5e, 0x180015cbe\nmov     edi, dword ptr [rsp+48h+Size]                                  ; +0x63, 0x180015cc3\nlea     eax, [rdx+rdi]                                                 ; +0x67, 0x180015cc7\nmov     edx, eax                                                       ; +0x6a, 0x180015cca\nmov     esi, eax                                                       ; +0x6c, 0x180015ccc\ncall    ?GrowBuffer@?$BasicWriter@D@fmt@@AEAAPEAD_K@Z; fmt::BasicWriter<char>::GrowBuffer(unsigned __int64) ; +0x6e, 0x180015cce\nmov     r8d, edi; Size                                                 ; +0x73, 0x180015cd3\nmov     rdx, rbp; Src                                                  ; +0x76, 0x180015cd6\nmov     rcx, rax; void *                                               ; +0x79, 0x180015cd9\nmov     rbx, rax                                                       ; +0x7c, 0x180015cdc\ncall    memmove                                                        ; +0x7f, 0x180015cdf\nmov     rdi, [rsp+48h+arg_10]                                          ; +0x84, 0x180015ce4\nlea     rax, [rsi-1]                                                   ; +0x89, 0x180015ce9\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x8d, 0x180015ced\nadd     rax, rbx                                                       ; +0x92, 0x180015cf2\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x95, 0x180015cf5\nadd     rsp, 40h                                                       ; +0x9a, 0x180015cfa\npop     rbp                                                            ; +0x9e, 0x180015cfe\nretn                                                                   ; +0x9f, 0x180015cff", "xrefs": ["sub_1800158E0 @ 0x180015989", "<???> @ 0x1801b85a8"], "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"}