{"type": "func", "start": 6442978912, "end": 6442979030, "name": "sub_180080E60", "pseudocode": "// \n// sub_180080E60 from 0x180080e60 to 0x180080ed6 (118 bytes)\n// \n// 3 xrefs:\n// > sub_18007FBB0 @ 0x18007fbf0\n// > sub_18007FBB0 @ 0x18007fc71\n// > <???> @ 0x1801b5214\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_180080E60(_QWORD *a1, size_t *a2, const void *a3, size_t a4, char a5)\n{\n  size_t v5; // rbx\n  _BYTE *v9; // rax\n  _BYTE *v10; // rdi\n\n  v5 = a4;\n  if ( a5 )\n    goto LABEL_4;\n  v9 = off_1801A2FA0(a4 + 1);\n  v10 = v9;\n  if ( v9 )\n  {\n    memcpy(v9, a3, v5);\n    v10[v5] = 0;\n    a3 = v10;\n    ++v5;\nLABEL_4:\n    *a1 = a3;\n    *a2 = v5;\n    LOBYTE(v9) = 1;\n  }\n  return (char)v9;\n}", "assembly": "; \n; sub_180080E60 from 0x180080e60 to 0x180080ed6 (118 bytes)\n; \n; 3 xrefs:\n; > sub_18007FBB0 @ 0x18007fbf0\n; > sub_18007FBB0 @ 0x18007fc71\n; > <???> @ 0x1801b5214\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, 0x180080e60\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180080e65\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x180080e6a\npush    rdi                                                            ; +0xf, 0x180080e6f\npush    r14                                                            ; +0x10, 0x180080e70\npush    r15                                                            ; +0x12, 0x180080e72\nsub     rsp, 20h                                                       ; +0x14, 0x180080e74\ncmp     [rsp+38h+arg_20], 0                                            ; +0x18, 0x180080e78\nmov     rbx, r9                                                        ; +0x1d, 0x180080e7d\nmov     rsi, r8                                                        ; +0x20, 0x180080e80\nmov     r14, rdx                                                       ; +0x23, 0x180080e83\nmov     r15, rcx                                                       ; +0x26, 0x180080e86\njnz     short loc_180080EB5                                            ; +0x29, 0x180080e89\nlea     rcx, [r9+1]; Size                                              ; +0x2b, 0x180080e8b\ncall    cs:off_1801A2FA0                                               ; +0x2f, 0x180080e8f\nmov     rdi, rax                                                       ; +0x35, 0x180080e95\ntest    rax, rax                                                       ; +0x38, 0x180080e98\njz      short loc_180080EBD                                            ; +0x3b, 0x180080e9b\nmov     r8, rbx; Size                                                  ; +0x3d, 0x180080e9d\nmov     rdx, rsi; Src                                                  ; +0x40, 0x180080ea0\nmov     rcx, rdi; void *                                               ; +0x43, 0x180080ea3\ncall    memcpy                                                         ; +0x46, 0x180080ea6\nmov     byte ptr [rdi+rbx], 0                                          ; +0x4b, 0x180080eab\nmov     rsi, rdi                                                       ; +0x4f, 0x180080eaf\ninc     rbx                                                            ; +0x52, 0x180080eb2\nmov     [r15], rsi                                                     ; +0x55, 0x180080eb5\nmov     al, 1                                                          ; +0x58, 0x180080eb8\nmov     [r14], rbx                                                     ; +0x5a, 0x180080eba\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x5d, 0x180080ebd\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x62, 0x180080ec2\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x67, 0x180080ec7\nadd     rsp, 20h                                                       ; +0x6c, 0x180080ecc\npop     r15                                                            ; +0x70, 0x180080ed0\npop     r14                                                            ; +0x72, 0x180080ed2\npop     rdi                                                            ; +0x74, 0x180080ed4\nretn                                                                   ; +0x75, 0x180080ed5", "xrefs": ["sub_18007FBB0 @ 0x18007fbf0", "sub_18007FBB0 @ 0x18007fc71", "<???> @ 0x1801b5214"], "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"}