{"type": "func", "start": 5371295360, "end": 5371295644, "name": "GameManager::colorKey", "pseudocode": "// \n// GameManager::colorKey from 0x140277680 to 0x14027779c (284 bytes)\n// \n// 4 xrefs:\n// > GameManager::isColorUnlocked @ 0x1402777d6\n// > GameManager::completedAchievement @ 0x140278262\n// > GameManager::resetAchievement @ 0x140278448\n// > <???> @ 0x14091cdb4\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:28:56 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n_QWORD *__fastcall GameManager::colorKey(__int64 a1, _QWORD *a2, unsigned int a3, int a4)\n{\n  _BYTE *v7; // rax\n  size_t v8; // r8\n  const char *v10; // [rsp+20h] [rbp-258h] BYREF\n  __int64 v11; // [rsp+28h] [rbp-250h]\n  _BYTE v12[528]; // [rsp+40h] [rbp-238h] BYREF\n\n  fmt::BasicWriter<char>::BasicWriter<char>(v12);\n  v10 = \"c\";\n  v11 = 0;\n  fmt::BasicWriter<char>::operator<<(v12, &v10);\n  fmt::BasicWriter<char>::operator<<(v12, a4 == 2);\n  v10 = \"_\";\n  v11 = 0;\n  fmt::BasicWriter<char>::operator<<(v12, &v10);\n  fmt::BasicWriter<char>::operator<<(v12, a3);\n  v7 = (_BYTE *)fmt::BasicWriter<char>::c_str(v12);\n  *(_OWORD *)a2 = 0;\n  a2[2] = 0;\n  a2[3] = 0;\n  v8 = -1;\n  do\n    ++v8;\n  while ( v7[v8] );\n  sub_14003D230(a2, v7, v8);\n  fmt::BasicWriter<char>::~BasicWriter<char>(v12);\n  return a2;\n}", "assembly": "; \n; GameManager::colorKey from 0x140277680 to 0x14027779c (284 bytes)\n; \n; 4 xrefs:\n; > GameManager::isColorUnlocked @ 0x1402777d6\n; > GameManager::completedAchievement @ 0x140278262\n; > GameManager::resetAchievement @ 0x140278448\n; > <???> @ 0x14091cdb4\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:28:56 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140277680\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x140277685\npush    rsi                                                            ; +0xa, 0x14027768a\npush    rdi                                                            ; +0xb, 0x14027768b\npush    r14                                                            ; +0xc, 0x14027768c\nsub     rsp, 260h                                                      ; +0xe, 0x14027768e\nmov     rax, cs:__security_cookie                                      ; +0x15, 0x140277695\nxor     rax, rsp                                                       ; +0x1c, 0x14027769c\nmov     [rsp+278h+var_28], rax                                         ; +0x1f, 0x14027769f\nmov     ebx, r9d                                                       ; +0x27, 0x1402776a7\nmov     ebp, r8d                                                       ; +0x2a, 0x1402776aa\nmov     rdi, rdx                                                       ; +0x2d, 0x1402776ad\nmov     [rsp+278h+var_258], rdx                                        ; +0x30, 0x1402776b0\nxor     r14d, r14d                                                     ; +0x35, 0x1402776b5\nlea     rcx, [rsp+278h+var_238]                                        ; +0x38, 0x1402776b8\ncall    cs:??0?$BasicWriter@D@fmt@@QEAA@XZ; fmt::BasicWriter<char>::BasicWriter<char>(void) ; +0x3d, 0x1402776bd\nnop                                                                    ; +0x43, 0x1402776c3\nmov     esi, r14d                                                      ; +0x44, 0x1402776c4\nsub     ebx, 2                                                         ; +0x47, 0x1402776c7\njnz     short loc_1402776D1                                            ; +0x4a, 0x1402776ca\nmov     esi, 1                                                         ; +0x4c, 0x1402776cc\nlea     rax, aC_2; \"c\"                                                 ; +0x51, 0x1402776d1\nmov     [rsp+278h+var_258], rax                                        ; +0x58, 0x1402776d8\nmov     [rsp+278h+var_250], r14                                        ; +0x5d, 0x1402776dd\nlea     rdx, [rsp+278h+var_258]                                        ; +0x62, 0x1402776e2\nlea     rcx, [rsp+278h+var_238]                                        ; +0x67, 0x1402776e7\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@V?$BasicStringRef@D@1@@Z; fmt::BasicWriter<char>::operator<<(fmt::BasicStringRef<char>) ; +0x6c, 0x1402776ec\nmov     edx, esi                                                       ; +0x72, 0x1402776f2\nlea     rcx, [rsp+278h+var_238]                                        ; +0x74, 0x1402776f4\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@H@Z; fmt::BasicWriter<char>::operator<<(int) ; +0x79, 0x1402776f9\nlea     rax, asc_14071413C; \"_\"                                        ; +0x7f, 0x1402776ff\nmov     [rsp+278h+var_258], rax                                        ; +0x86, 0x140277706\nmov     [rsp+278h+var_250], r14                                        ; +0x8b, 0x14027770b\nlea     rdx, [rsp+278h+var_258]                                        ; +0x90, 0x140277710\nlea     rcx, [rsp+278h+var_238]                                        ; +0x95, 0x140277715\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@V?$BasicStringRef@D@1@@Z; fmt::BasicWriter<char>::operator<<(fmt::BasicStringRef<char>) ; +0x9a, 0x14027771a\nmov     edx, ebp                                                       ; +0xa0, 0x140277720\nlea     rcx, [rsp+278h+var_238]                                        ; +0xa2, 0x140277722\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@H@Z; fmt::BasicWriter<char>::operator<<(int) ; +0xa7, 0x140277727\nlea     rcx, [rsp+278h+var_238]                                        ; +0xad, 0x14027772d\ncall    cs:?c_str@?$BasicWriter@D@fmt@@QEBAPEBDXZ; fmt::BasicWriter<char>::c_str(void) ; +0xb2, 0x140277732\nxorps   xmm0, xmm0                                                     ; +0xb8, 0x140277738\nmovups  xmmword ptr [rdi], xmm0                                        ; +0xbb, 0x14027773b\nmov     [rdi+10h], r14                                                 ; +0xbe, 0x14027773e\nmov     [rdi+18h], r14                                                 ; +0xc2, 0x140277742\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xc6, 0x140277746\nnop     dword ptr [rax]                                                ; +0xcd, 0x14027774d\ninc     r8                                                             ; +0xd0, 0x140277750\ncmp     byte ptr [rax+r8], 0                                           ; +0xd3, 0x140277753\njnz     short loc_140277750                                            ; +0xd8, 0x140277758\nmov     rdx, rax                                                       ; +0xda, 0x14027775a\nmov     rcx, rdi                                                       ; +0xdd, 0x14027775d\ncall    sub_14003D230                                                  ; +0xe0, 0x140277760\nnop                                                                    ; +0xe5, 0x140277765\nlea     rcx, [rsp+278h+var_238]                                        ; +0xe6, 0x140277766\ncall    cs:__imp_??1?$BasicWriter@D@fmt@@QEAA@XZ; fmt::BasicWriter<char>::~BasicWriter<char>(void) ; +0xeb, 0x14027776b\nmov     rax, rdi                                                       ; +0xf1, 0x140277771\nmov     rcx, [rsp+278h+var_28]                                         ; +0xf4, 0x140277774\nxor     rcx, rsp; StackCookie                                          ; +0xfc, 0x14027777c\ncall    __security_check_cookie                                        ; +0xff, 0x14027777f\nlea     r11, [rsp+278h+var_18]                                         ; +0x104, 0x140277784\nmov     rbx, [r11+20h]                                                 ; +0x10c, 0x14027778c\nmov     rbp, [r11+38h]                                                 ; +0x110, 0x140277790\nmov     rsp, r11                                                       ; +0x114, 0x140277794\npop     r14                                                            ; +0x117, 0x140277797\npop     rdi                                                            ; +0x119, 0x140277799\npop     rsi                                                            ; +0x11a, 0x14027779a\nretn                                                                   ; +0x11b, 0x14027779b", "xrefs": ["GameManager::isColorUnlocked @ 0x1402777d6", "GameManager::completedAchievement @ 0x140278262", "GameManager::resetAchievement @ 0x140278448", "<???> @ 0x14091cdb4"], "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"}