; ; FLAlertLayer::addCloseButton from 0x14005b3a0 to 0x14005b4bd (285 bytes) ; ; 3 xrefs: ; > EditLevelLayer::onPlay @ 0x14017b277 ; > LevelInfoLayer::onPlay @ 0x140421a59 ; > @ 0x1409106f4 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:25:42 +0000 ; mov [rsp+arg_18], rbx ; +0x0, 0x14005b3a0 push rsi ; +0x5, 0x14005b3a5 push rdi ; +0x6, 0x14005b3a6 push r14 ; +0x7, 0x14005b3a7 sub rsp, 20h ; +0x9, 0x14005b3a9 mov rsi, rcx ; +0xd, 0x14005b3ad call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x10, 0x14005b3b0 mov rcx, rax ; +0x16, 0x14005b3b6 lea rdx, [rsp+38h+arg_0] ; +0x19, 0x14005b3b9 call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x1e, 0x14005b3be lea rcx, aGjClosebtn001P; "GJ_closeBtn_001.png" ; +0x24, 0x14005b3c4 call cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x2b, 0x14005b3cb movss xmm1, cs:dword_140834FAC ; +0x31, 0x14005b3d1 mov rcx, rax ; +0x39, 0x14005b3d9 mov rbx, rax ; +0x3c, 0x14005b3dc mov rdx, [rax] ; +0x3f, 0x14005b3df call qword ptr [rdx+0A0h] ; +0x42, 0x14005b3e2 lea r9, FLAlertLayer__onButton ; +0x48, 0x14005b3e8 mov r8, rsi ; +0x4f, 0x14005b3ef xor edx, edx ; +0x52, 0x14005b3f2 mov rcx, rbx ; +0x54, 0x14005b3f4 call CCMenuItemSpriteExtra__create ; +0x57, 0x14005b3f7 mov r14, rax ; +0x5c, 0x14005b3fc mov dword ptr [rax+174h], 3F99999Ah ; +0x5f, 0x14005b3ff mov rcx, [rsi+228h] ; +0x69, 0x14005b409 mov rdx, [rcx] ; +0x70, 0x14005b410 mov r8, [rdx+1D0h] ; +0x73, 0x14005b413 mov rdx, rax ; +0x7a, 0x14005b41a call r8 ; +0x7d, 0x14005b41d movss xmm4, cs:dword_140834F20 ; +0x80, 0x14005b420 lea rcx, [rsp+38h+arg_8] ; +0x88, 0x14005b428 movss xmm0, [rsp+38h+arg_4] ; +0x8d, 0x14005b42d movss xmm2, dword ptr [rsi+28Ch] ; +0x93, 0x14005b433 movss xmm1, [rsp+38h+arg_0] ; +0x9b, 0x14005b43b mov rdi, [r14] ; +0xa1, 0x14005b441 mov rbx, [rsi+228h] ; +0xa4, 0x14005b444 mulss xmm0, xmm4 ; +0xab, 0x14005b44b mulss xmm2, xmm4 ; +0xaf, 0x14005b44f mulss xmm1, xmm4 ; +0xb3, 0x14005b453 addss xmm2, xmm0 ; +0xb7, 0x14005b457 movss xmm0, dword ptr [rsi+288h] ; +0xbb, 0x14005b45b mulss xmm0, xmm4 ; +0xc3, 0x14005b463 subss xmm2, cs:flt_140835470 ; +0xc7, 0x14005b467 subss xmm1, xmm0 ; +0xcf, 0x14005b46f addss xmm1, cs:flt_140835470 ; +0xd3, 0x14005b473 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xdb, 0x14005b47b lea rdx, [rsp+38h+arg_10] ; +0xe1, 0x14005b481 mov rcx, rbx ; +0xe6, 0x14005b486 mov r8, rax ; +0xe9, 0x14005b489 call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0xec, 0x14005b48c mov rdx, rax ; +0xf2, 0x14005b492 mov rcx, r14 ; +0xf5, 0x14005b495 call qword ptr [rdi+0B8h] ; +0xf8, 0x14005b498 mov rax, [r14] ; +0xfe, 0x14005b49e mov edx, 2 ; +0x101, 0x14005b4a1 mov rcx, r14 ; +0x106, 0x14005b4a6 call qword ptr [rax+40h] ; +0x109, 0x14005b4a9 mov rbx, [rsp+38h+arg_18] ; +0x10c, 0x14005b4ac mov rax, r14 ; +0x111, 0x14005b4b1 add rsp, 20h ; +0x114, 0x14005b4b4 pop r14 ; +0x118, 0x14005b4b8 pop rdi ; +0x11a, 0x14005b4ba pop rsi ; +0x11b, 0x14005b4bb retn ; +0x11c, 0x14005b4bc