; ; GJGarageLayer::updatePlayerColors from 0x140277a80 to 0x140277bf3 (371 bytes) ; ; 3 xrefs: ; > GJGarageLayer::init @ 0x140273b1f ; > GJGarageLayer::playerColorChanged @ 0x140277a79 ; > @ 0x1406d0fd4 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_18], rbx ; +0x0, 0x140277a80 push rbp ; +0x5, 0x140277a85 push rsi ; +0x6, 0x140277a86 push rdi ; +0x7, 0x140277a87 sub rsp, 20h ; +0x8, 0x140277a88 mov rsi, rcx ; +0xc, 0x140277a8c mov rbp, cs:qword_1406C2ED8 ; +0xf, 0x140277a8f test rbp, rbp ; +0x16, 0x140277a96 jnz short loc_140277ACA ; +0x19, 0x140277a99 mov ecx, 668h; Size ; +0x1b, 0x140277a9b call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x20, 0x140277aa0 mov [rsp+38h+arg_0], rax ; +0x25, 0x140277aa5 mov rcx, rax ; +0x2a, 0x140277aaa call sub_14017AB00 ; +0x2d, 0x140277aad nop ; +0x32, 0x140277ab2 mov cs:qword_1406C2ED8, rax ; +0x33, 0x140277ab3 mov rdx, [rax] ; +0x3a, 0x140277aba mov rcx, rax ; +0x3d, 0x140277abd call qword ptr [rdx+48h] ; +0x40, 0x140277ac0 mov rbp, cs:qword_1406C2ED8 ; +0x43, 0x140277ac3 mov rcx, [rsi+1D8h] ; +0x4a, 0x140277aca movzx eax, byte ptr [rbp+388h] ; +0x51, 0x140277ad1 mov [rcx+294h], al ; +0x58, 0x140277ad8 mov r8d, [rbp+330h] ; +0x5e, 0x140277ade sub r8d, [rbp+334h] ; +0x65, 0x140277ae5 mov ebx, [rbp+324h] ; +0x6c, 0x140277aec sub ebx, [rbp+328h] ; +0x72, 0x140277af2 lea rdx, [rsp+38h+arg_0] ; +0x78, 0x140277af8 mov rcx, rbp ; +0x7d, 0x140277afd call GameManager__colorForIdx ; +0x80, 0x140277b00 mov rdi, rax ; +0x85, 0x140277b05 mov r8d, ebx ; +0x88, 0x140277b08 lea rdx, [rsp+38h+arg_8] ; +0x8b, 0x140277b0b mov rcx, rbp ; +0x90, 0x140277b10 call GameManager__colorForIdx ; +0x93, 0x140277b13 mov rbx, [rsi+1D8h] ; +0x98, 0x140277b18 mov rcx, [rbx+258h] ; +0x9f, 0x140277b1f add rcx, 140h ; +0xa6, 0x140277b26 mov r8, [rcx] ; +0xad, 0x140277b2d mov rdx, rax ; +0xb0, 0x140277b30 call qword ptr [r8] ; +0xb3, 0x140277b33 mov rcx, [rbx+260h] ; +0xb6, 0x140277b36 add rcx, 140h ; +0xbd, 0x140277b3d mov rax, [rcx] ; +0xc4, 0x140277b44 mov rdx, rdi ; +0xc7, 0x140277b47 call qword ptr [rax] ; +0xca, 0x140277b4a mov rcx, rbx ; +0xcc, 0x140277b4c call SimplePlayer__updateColors ; +0xcf, 0x140277b4f mov rcx, cs:qword_1406C2ED8 ; +0xd4, 0x140277b54 test rcx, rcx ; +0xdb, 0x140277b5b jnz short loc_140277B8F ; +0xde, 0x140277b5e mov ecx, 668h; Size ; +0xe0, 0x140277b60 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xe5, 0x140277b65 mov [rsp+38h+arg_10], rax ; +0xea, 0x140277b6a mov rcx, rax ; +0xef, 0x140277b6f call sub_14017AB00 ; +0xf2, 0x140277b72 nop ; +0xf7, 0x140277b77 mov cs:qword_1406C2ED8, rax ; +0xf8, 0x140277b78 mov rdx, [rax] ; +0xff, 0x140277b7f mov rcx, rax ; +0x102, 0x140277b82 call qword ptr [rdx+48h] ; +0x105, 0x140277b85 mov rcx, cs:qword_1406C2ED8 ; +0x108, 0x140277b88 mov r8d, [rcx+33Ch] ; +0x10f, 0x140277b8f sub r8d, [rcx+340h] ; +0x116, 0x140277b96 js short loc_140277BCD ; +0x11d, 0x140277b9d lea rdx, [rsp+38h+arg_10] ; +0x11f, 0x140277b9f call GameManager__colorForIdx ; +0x124, 0x140277ba4 mov rdx, [rsi+1D8h] ; +0x129, 0x140277ba9 mov byte ptr [rdx+29Ch], 1 ; +0x130, 0x140277bb0 movzx ecx, word ptr [rax] ; +0x137, 0x140277bb7 mov [rdx+29Dh], cx ; +0x13a, 0x140277bba movzx eax, byte ptr [rax+2] ; +0x141, 0x140277bc1 mov [rdx+29Fh], al ; +0x145, 0x140277bc5 jmp short loc_140277BDB ; +0x14b, 0x140277bcb mov rax, [rsi+1D8h] ; +0x14d, 0x140277bcd mov byte ptr [rax+29Ch], 0 ; +0x154, 0x140277bd4 mov rcx, [rsi+1D8h] ; +0x15b, 0x140277bdb mov rbx, [rsp+38h+arg_18] ; +0x162, 0x140277be2 add rsp, 20h ; +0x167, 0x140277be7 pop rdi ; +0x16b, 0x140277beb pop rsi ; +0x16c, 0x140277bec pop rbp ; +0x16d, 0x140277bed jmp SimplePlayer__updateColors ; +0x16e, 0x140277bee