; ; GJOptionsLayer::addGVToggle from 0x14028fda0 to 0x14028fede (318 bytes) ; ; 24 xrefs: ; > EditorOptionsLayer::setupOptions @ 0x1402910b6 ; > EditorOptionsLayer::setupOptions @ 0x1402910d3 ; > EditorOptionsLayer::setupOptions @ 0x1402910f0 ; > EditorOptionsLayer::setupOptions @ 0x14029110d ; > EditorOptionsLayer::setupOptions @ 0x14029112a ; > EditorOptionsLayer::setupOptions @ 0x140291147 ; > EditorOptionsLayer::setupOptions @ 0x140291164 ; > EditorOptionsLayer::setupOptions @ 0x140291181 ; > EditorOptionsLayer::setupOptions @ 0x14029119e ; > EditorOptionsLayer::setupOptions @ 0x1402911bb ; > EditorOptionsLayer::setupOptions @ 0x1402911f8 ; > EditorOptionsLayer::setupOptions @ 0x140291215 ; > EditorOptionsLayer::setupOptions @ 0x140291232 ; > EditorOptionsLayer::setupOptions @ 0x14029124f ; > EditorOptionsLayer::setupOptions @ 0x14029126c ; > EditorOptionsLayer::setupOptions @ 0x140291289 ; > EditorOptionsLayer::setupOptions @ 0x1402912a6 ; > EditorOptionsLayer::setupOptions @ 0x1402912c3 ; > EditorOptionsLayer::setupOptions @ 0x1402912e0 ; > EditorOptionsLayer::setupOptions @ 0x1402912fd ; > EditorOptionsLayer::setupOptions @ 0x14029131a ; > EditorOptionsLayer::setupOptions @ 0x140291337 ; > EditorOptionsLayer::setupOptions @ 0x140291354 ; > @ 0x1406d1928 ; ; 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 ; push rbx ; +0x0, 0x14028fda0 push rbp ; +0x2, 0x14028fda2 push rsi ; +0x3, 0x14028fda3 push rdi ; +0x4, 0x14028fda4 push r14 ; +0x5, 0x14028fda5 sub rsp, 60h ; +0x7, 0x14028fda7 mov rax, cs:__security_cookie ; +0xb, 0x14028fdab xor rax, rsp ; +0x12, 0x14028fdb2 mov [rsp+88h+var_30], rax ; +0x15, 0x14028fdb5 mov r14, r9 ; +0x1a, 0x14028fdba mov rbx, r8 ; +0x1d, 0x14028fdbd mov rbp, rdx ; +0x20, 0x14028fdc0 mov rdi, rcx ; +0x23, 0x14028fdc3 mov rcx, r8; String ; +0x26, 0x14028fdc6 call cs:atoi ; +0x29, 0x14028fdc9 movsxd rsi, eax ; +0x2f, 0x14028fdcf mov rcx, cs:qword_1406C2ED8 ; +0x32, 0x14028fdd2 test rcx, rcx ; +0x39, 0x14028fdd9 jnz short loc_14028FE0E ; +0x3c, 0x14028fddc mov ecx, 668h; Size ; +0x3e, 0x14028fdde call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x43, 0x14028fde3 mov [rsp+88h+var_58], rax ; +0x48, 0x14028fde8 mov rcx, rax ; +0x4d, 0x14028fded call sub_14017AB00 ; +0x50, 0x14028fdf0 nop ; +0x55, 0x14028fdf5 mov cs:qword_1406C2ED8, rax ; +0x56, 0x14028fdf6 mov r8, [rax] ; +0x5d, 0x14028fdfd mov rcx, rax ; +0x60, 0x14028fe00 call qword ptr [r8+48h] ; +0x63, 0x14028fe03 mov rcx, cs:qword_1406C2ED8 ; +0x67, 0x14028fe07 mov rdx, rbx ; +0x6e, 0x14028fe0e call GameManager__getGameVariable ; +0x71, 0x14028fe11 mov [rsp+88h+var_68], r14 ; +0x76, 0x14028fe16 movzx r9d, al ; +0x7b, 0x14028fe1b mov r8d, esi ; +0x7f, 0x14028fe1f mov rdx, rbp ; +0x82, 0x14028fe22 mov rcx, rdi ; +0x85, 0x14028fe25 call GJOptionsLayer__addToggleInternal ; +0x88, 0x14028fe28 xorps xmm0, xmm0 ; +0x8d, 0x14028fe2d movups xmmword ptr [rsp+88h+Block], xmm0 ; +0x90, 0x14028fe30 xor eax, eax ; +0x95, 0x14028fe35 mov [rsp+88h+var_40], rax ; +0x97, 0x14028fe37 mov [rsp+88h+var_38], rax ; +0x9c, 0x14028fe3c mov r8, 0FFFFFFFFFFFFFFFFh ; +0xa1, 0x14028fe41 nop dword ptr [rax+rax+00000000h] ; +0xa8, 0x14028fe48 inc r8 ; +0xb0, 0x14028fe50 cmp [rbx+r8], al ; +0xb3, 0x14028fe53 jnz short loc_14028FE50 ; +0xb7, 0x14028fe57 mov rdx, rbx ; +0xb9, 0x14028fe59 lea rcx, [rsp+88h+Block] ; +0xbc, 0x14028fe5c call sub_14003A930 ; +0xc1, 0x14028fe61 nop ; +0xc6, 0x14028fe66 lea rcx, [rsp+88h+Block] ; +0xc7, 0x14028fe67 call cs:?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0xcc, 0x14028fe6c mov rdx, rax ; +0xd2, 0x14028fe72 mov r8, rsi ; +0xd5, 0x14028fe75 mov rcx, [rdi+3D0h] ; +0xd8, 0x14028fe78 call cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0xdf, 0x14028fe7f nop ; +0xe5, 0x14028fe85 mov rdx, [rsp+88h+var_38] ; +0xe6, 0x14028fe86 cmp rdx, 0Fh ; +0xeb, 0x14028fe8b jbe short loc_14028FEC6 ; +0xef, 0x14028fe8f inc rdx ; +0xf1, 0x14028fe91 mov rcx, [rsp+88h+Block]; Block ; +0xf4, 0x14028fe94 mov rax, rcx ; +0xf9, 0x14028fe99 cmp rdx, 1000h ; +0xfc, 0x14028fe9c jb short loc_14028FEC1 ; +0x103, 0x14028fea3 add rdx, 27h ; ''' ; +0x105, 0x14028fea5 mov rcx, [rcx-8] ; +0x109, 0x14028fea9 sub rax, rcx ; +0x10d, 0x14028fead add rax, 0FFFFFFFFFFFFFFF8h ; +0x110, 0x14028feb0 cmp rax, 1Fh ; +0x114, 0x14028feb4 jbe short loc_14028FEC1 ; +0x118, 0x14028feb8 call cs:_invalid_parameter_noinfo_noreturn ; +0x11a, 0x14028feba db 0CCh ; +0x120, 0x14028fec0 call j_j_free ; +0x121, 0x14028fec1 mov rcx, [rsp+88h+var_30] ; +0x126, 0x14028fec6 xor rcx, rsp; StackCookie ; +0x12b, 0x14028fecb call __security_check_cookie ; +0x12e, 0x14028fece add rsp, 60h ; +0x133, 0x14028fed3 pop r14 ; +0x137, 0x14028fed7 pop rdi ; +0x139, 0x14028fed9 pop rsi ; +0x13a, 0x14028feda pop rbp ; +0x13b, 0x14028fedb pop rbx ; +0x13c, 0x14028fedc retn ; +0x13d, 0x14028fedd