{"type": "func", "start": 4300582608, "end": 4300582889, "name": "GameLevelManager::appendModReason", "pseudocode": "// \n// GameLevelManager::appendModReason from 0x10055aed0 to 0x10055afe9 (281 bytes)\n// \n// 5 xrefs:\n// > GameLevelManager::deleteServerLevelList @ 0x10055ab88\n// > sub_10055C7F0 @ 0x10055ca2d\n// > GameLevelManager::deleteServerLevel @ 0x100562535\n// > sub_10056E450 @ 0x10056e6c1\n// > GameLevelManager::sendAdminAction @ 0x10056ebea\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 12:32:07 +0000\n// \n\nvoid __fastcall GameLevelManager::appendModReason(__int64 a1, std::string *a2, std::string *a3, _QWORD *a4)\n{\n  unsigned int v7; // eax\n  const std::string::value_type *data; // rsi\n  std::string::size_type size; // rdx\n  const std::string::value_type *v10; // rsi\n  std::string::size_type v11; // rdx\n  std::string v12; // [rsp+0h] [rbp-50h] BYREF\n  std::string v13; // [rsp+20h] [rbp-30h] BYREF\n\n  v7 = (unsigned int)a3->__r_.__value_.__l.0;\n  if ( (v7 & 1) != 0 )\n  {\n    if ( !a3->__r_.__value_.__l.__size_ )\n      goto LABEL_15;\n  }\n  else if ( !(v7 >> 1) )\n  {\n    goto LABEL_15;\n  }\n  std::string::append(a2, \"&reason=\");\n  if ( (*(_BYTE *)&a3->__r_.__value_.__s.0 & 1) != 0 )\n    sub_10001AD30(&v12, a3->__r_.__value_.__l.__data_, a3->__r_.__value_.__l.__size_);\n  else\n    v12 = *a3;\n  LevelTools::base64EncodeString(&v13, &v12);\n  if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )\n  {\n    data = v13.__r_.__value_.__l.__data_;\n    size = v13.__r_.__value_.__l.__size_;\n  }\n  else\n  {\n    size = *(_BYTE *)&v13.__r_.__value_.__l.0 >> 1;\n    data = v13.__r_.__value_.__s.__data_;\n  }\n  std::string::append(a2, data, size);\n  if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v13.__r_.__value_.__l.__data_);\n  if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v12.__r_.__value_.__l.__data_);\nLABEL_15:\n  if ( *a4 != a4[1] )\n  {\n    std::string::append(a2, \"&categories=\");\n    sub_10056F010(&v13);\n    if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )\n    {\n      v10 = v13.__r_.__value_.__l.__data_;\n      v11 = v13.__r_.__value_.__l.__size_;\n    }\n    else\n    {\n      v11 = *(_BYTE *)&v13.__r_.__value_.__l.0 >> 1;\n      v10 = v13.__r_.__value_.__s.__data_;\n    }\n    std::string::append(a2, v10, v11);\n    if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(v13.__r_.__value_.__l.__data_);\n  }\n}", "assembly": "; \n; GameLevelManager::appendModReason from 0x10055aed0 to 0x10055afe9 (281 bytes)\n; \n; 5 xrefs:\n; > GameLevelManager::deleteServerLevelList @ 0x10055ab88\n; > sub_10055C7F0 @ 0x10055ca2d\n; > GameLevelManager::deleteServerLevel @ 0x100562535\n; > sub_10056E450 @ 0x10056e6c1\n; > GameLevelManager::sendAdminAction @ 0x10056ebea\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 12:32:07 +0000\n; \npush    rbp                                                            ; +0x0, 0x10055aed0\nmov     rbp, rsp                                                       ; +0x1, 0x10055aed1\npush    r15                                                            ; +0x4, 0x10055aed4\npush    r14                                                            ; +0x6, 0x10055aed6\npush    rbx                                                            ; +0x8, 0x10055aed8\nsub     rsp, 38h                                                       ; +0x9, 0x10055aed9\nmov     r14, rcx                                                       ; +0xd, 0x10055aedd\nmov     r15, rdx                                                       ; +0x10, 0x10055aee0\nmov     rbx, rsi                                                       ; +0x13, 0x10055aee3\nmovzx   eax, byte ptr [rdx]                                            ; +0x16, 0x10055aee6\ntest    al, 1                                                          ; +0x19, 0x10055aee9\njz      short loc_10055AEFB                                            ; +0x1b, 0x10055aeeb\nmov     rax, [r15+8]                                                   ; +0x1d, 0x10055aeed\ntest    rax, rax                                                       ; +0x21, 0x10055aef1\njnz     short loc_10055AF06                                            ; +0x24, 0x10055aef4\njmp     loc_10055AF8A                                                  ; +0x26, 0x10055aef6\nshr     eax, 1                                                         ; +0x2b, 0x10055aefb\ntest    rax, rax                                                       ; +0x2d, 0x10055aefd\njz      loc_10055AF8A                                                  ; +0x30, 0x10055af00\nlea     rsi, aReason; \"&reason=\"                                       ; +0x36, 0x10055af06\nmov     rdi, rbx; this                                                 ; +0x3d, 0x10055af0d\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x40, 0x10055af10\ntest    byte ptr [r15], 1                                              ; +0x45, 0x10055af15\njnz     short loc_10055AF2D                                            ; +0x49, 0x10055af19\nmov     rax, [r15+10h]                                                 ; +0x4b, 0x10055af1b\nmov     [rbp+var_40], rax                                              ; +0x4f, 0x10055af1f\nmovups  xmm0, xmmword ptr [r15]                                        ; +0x53, 0x10055af23\nmovaps  [rbp+var_50], xmm0                                             ; +0x57, 0x10055af27\njmp     short loc_10055AF3E                                            ; +0x5b, 0x10055af2b\nmov     rdx, [r15+8]                                                   ; +0x5d, 0x10055af2d\nmov     rsi, [r15+10h]                                                 ; +0x61, 0x10055af31\nlea     rdi, [rbp+var_50]                                              ; +0x65, 0x10055af35\ncall    sub_10001AD30                                                  ; +0x69, 0x10055af39\nlea     rdi, [rbp+var_30]                                              ; +0x6e, 0x10055af3e\nlea     rsi, [rbp+var_50]                                              ; +0x72, 0x10055af42\ncall    LevelTools__base64EncodeString                                 ; +0x76, 0x10055af46\nmovzx   edx, byte ptr [rbp+var_30.__r_.__value_]                       ; +0x7b, 0x10055af4b\ntest    dl, 1                                                          ; +0x7f, 0x10055af4f\njz      short loc_10055AF5E                                            ; +0x82, 0x10055af52\nmov     rsi, qword ptr [rbp+var_30.__r_.__value_+10h]                  ; +0x84, 0x10055af54\nmov     rdx, qword ptr [rbp+var_30.__r_.__value_+8]                    ; +0x88, 0x10055af58\njmp     short loc_10055AF64                                            ; +0x8c, 0x10055af5c\nshr     edx, 1; __n                                                    ; +0x8e, 0x10055af5e\nlea     rsi, [rbp+var_30.__r_.__value_+1]; __s                         ; +0x90, 0x10055af60\nmov     rdi, rbx; this                                                 ; +0x94, 0x10055af64\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm; std::string::append(char const*,ulong) ; +0x97, 0x10055af67\ntest    byte ptr [rbp+var_30.__r_.__value_], 1                         ; +0x9c, 0x10055af6c\njz      short loc_10055AF7B                                            ; +0xa0, 0x10055af70\nmov     rdi, qword ptr [rbp+var_30.__r_.__value_+10h]; __p             ; +0xa2, 0x10055af72\ncall    __ZdlPv; operator delete(void *)                               ; +0xa6, 0x10055af76\ntest    byte ptr [rbp+var_50], 1                                       ; +0xab, 0x10055af7b\njz      short loc_10055AF8A                                            ; +0xaf, 0x10055af7f\nmov     rdi, [rbp+var_40]; __p                                         ; +0xb1, 0x10055af81\ncall    __ZdlPv; operator delete(void *)                               ; +0xb5, 0x10055af85\nmov     rax, [r14]                                                     ; +0xba, 0x10055af8a\ncmp     rax, [r14+8]                                                   ; +0xbd, 0x10055af8d\njz      short loc_10055AFDE                                            ; +0xc1, 0x10055af91\nlea     rsi, aCategories; \"&categories=\"                               ; +0xc3, 0x10055af93\nmov     rdi, rbx; this                                                 ; +0xca, 0x10055af9a\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0xcd, 0x10055af9d\nlea     rdi, [rbp+var_30]; this                                        ; +0xd2, 0x10055afa2\nmov     rsi, r14                                                       ; +0xd6, 0x10055afa6\ncall    sub_10056F010                                                  ; +0xd9, 0x10055afa9\nmovzx   edx, byte ptr [rbp+var_30.__r_.__value_]                       ; +0xde, 0x10055afae\ntest    dl, 1                                                          ; +0xe2, 0x10055afb2\njz      short loc_10055AFC1                                            ; +0xe5, 0x10055afb5\nmov     rsi, qword ptr [rbp+var_30.__r_.__value_+10h]                  ; +0xe7, 0x10055afb7\nmov     rdx, qword ptr [rbp+var_30.__r_.__value_+8]                    ; +0xeb, 0x10055afbb\njmp     short loc_10055AFC7                                            ; +0xef, 0x10055afbf\nshr     edx, 1; __n                                                    ; +0xf1, 0x10055afc1\nlea     rsi, [rbp+var_30.__r_.__value_+1]; __s                         ; +0xf3, 0x10055afc3\nmov     rdi, rbx; this                                                 ; +0xf7, 0x10055afc7\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm; std::string::append(char const*,ulong) ; +0xfa, 0x10055afca\ntest    byte ptr [rbp+var_30.__r_.__value_], 1                         ; +0xff, 0x10055afcf\njz      short loc_10055AFDE                                            ; +0x103, 0x10055afd3\nmov     rdi, qword ptr [rbp+var_30.__r_.__value_+10h]; __p             ; +0x105, 0x10055afd5\ncall    __ZdlPv; operator delete(void *)                               ; +0x109, 0x10055afd9\nadd     rsp, 38h                                                       ; +0x10e, 0x10055afde\npop     rbx                                                            ; +0x112, 0x10055afe2\npop     r14                                                            ; +0x113, 0x10055afe3\npop     r15                                                            ; +0x115, 0x10055afe5\npop     rbp                                                            ; +0x117, 0x10055afe7\nretn                                                                   ; +0x118, 0x10055afe8", "xrefs": ["GameLevelManager::deleteServerLevelList @ 0x10055ab88", "sub_10055C7F0 @ 0x10055ca2d", "GameLevelManager::deleteServerLevel @ 0x100562535", "sub_10056E450 @ 0x10056e6c1", "GameLevelManager::sendAdminAction @ 0x10056ebea"], "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"}