; ; EditorUI::toggleEnableRotate from 0x1401101e0 to 0x140110310 (304 bytes) ; ; 4 xrefs: ; > EditorUI::init @ 0x1400e185c ; > EditorUI::keyDown @ 0x140125be2 ; > EditorUI::init @ 0x1400dff9b ; > @ 0x1406c8ea4 ; ; 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_8], rbx ; +0x0, 0x1401101e0 push rdi ; +0x5, 0x1401101e5 sub rsp, 20h ; +0x6, 0x1401101e6 mov rbx, rcx ; +0xa, 0x1401101ea mov rcx, cs:qword_1406C2ED8 ; +0xd, 0x1401101ed test rcx, rcx ; +0x14, 0x1401101f4 jnz short loc_140110228 ; +0x17, 0x1401101f7 mov ecx, 668h; Size ; +0x19, 0x1401101f9 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1e, 0x1401101fe mov [rsp+28h+arg_0], rax ; +0x23, 0x140110203 mov rcx, rax ; +0x28, 0x140110208 call sub_14017AB00 ; +0x2b, 0x14011020b nop ; +0x30, 0x140110210 mov cs:qword_1406C2ED8, rax ; +0x31, 0x140110211 mov rdx, [rax] ; +0x38, 0x140110218 mov rcx, rax ; +0x3b, 0x14011021b call qword ptr [rdx+48h] ; +0x3e, 0x14011021e mov rcx, cs:qword_1406C2ED8 ; +0x41, 0x140110221 lea rdx, a0007; "0007" ; +0x48, 0x140110228 call GameManager__getGameVariable ; +0x4f, 0x14011022f movzx edi, al ; +0x54, 0x140110234 xor dil, 1 ; +0x57, 0x140110237 mov rcx, cs:qword_1406C2ED8 ; +0x5b, 0x14011023b test rcx, rcx ; +0x62, 0x140110242 jnz short loc_140110277 ; +0x65, 0x140110245 mov ecx, 668h; Size ; +0x67, 0x140110247 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x6c, 0x14011024c mov [rsp+28h+arg_0], rax ; +0x71, 0x140110251 mov rcx, rax ; +0x76, 0x140110256 call sub_14017AB00 ; +0x79, 0x140110259 nop ; +0x7e, 0x14011025e mov cs:qword_1406C2ED8, rax ; +0x7f, 0x14011025f mov r8, [rax] ; +0x86, 0x140110266 mov rcx, rax ; +0x89, 0x140110269 call qword ptr [r8+48h] ; +0x8c, 0x14011026c mov rcx, cs:qword_1406C2ED8 ; +0x90, 0x140110270 movzx r8d, dil ; +0x97, 0x140110277 lea rdx, a0007; "0007" ; +0x9b, 0x14011027b call GameManager__setGameVariable ; +0xa2, 0x140110282 mov rcx, [rbx+390h] ; +0xa7, 0x140110287 mov rax, [rcx] ; +0xae, 0x14011028e call qword ptr [rax+3A8h] ; +0xb1, 0x140110291 mov rcx, rax ; +0xb7, 0x140110297 test dil, dil ; +0xba, 0x14011029a jnz short loc_1401102F1 ; +0xbd, 0x14011029d lea rdx, aGjButton01Png; "GJ_button_01.png" ; +0xbf, 0x14011029f call ButtonSprite__updateBGImage ; +0xc6, 0x1401102a6 mov dword ptr [rbx+2A0h], 0FFFFFFFFh ; +0xcb, 0x1401102ab mov rcx, [rbx+2B8h] ; +0xd5, 0x1401102b5 mov rax, [rcx] ; +0xdc, 0x1401102bc call qword ptr [rax+148h] ; +0xdf, 0x1401102bf test al, al ; +0xe5, 0x1401102c5 jz short loc_140110305 ; +0xe7, 0x1401102c7 mov rcx, [rbx+2B8h] ; +0xe9, 0x1401102c9 mov rax, [rcx] ; +0xf0, 0x1401102d0 xor edx, edx ; +0xf3, 0x1401102d3 call qword ptr [rax+140h] ; +0xf5, 0x1401102d5 mov rcx, [rbx+2B8h] ; +0xfb, 0x1401102db mov rbx, [rsp+28h+arg_8] ; +0x102, 0x1401102e2 add rsp, 20h ; +0x107, 0x1401102e7 pop rdi ; +0x10b, 0x1401102eb jmp GJRotationControl__finishTouch ; +0x10c, 0x1401102ec lea rdx, aGjButton02Png; "GJ_button_02.png" ; +0x111, 0x1401102f1 call ButtonSprite__updateBGImage ; +0x118, 0x1401102f8 mov rcx, rbx ; +0x11d, 0x1401102fd call EditorUI__toggleSpecialEditButtons ; +0x120, 0x140110300 mov rbx, [rsp+28h+arg_8] ; +0x125, 0x140110305 add rsp, 20h ; +0x12a, 0x14011030a pop rdi ; +0x12e, 0x14011030e retn ; +0x12f, 0x14011030f