; ; GameManager::loadMiddleground from 0x140182a00 to 0x140182b07 (263 bytes) ; ; 5 xrefs: ; > GJMGLayer::init @ 0x14027f0ee ; > LevelSettingsLayer::selectArtClosed @ 0x1403220f7 ; > @ 0x140677ae4 ; > @ 0x140677af4 ; > @ 0x1406cb4b4 ; ; 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], rsi ; +0x0, 0x140182a00 push rdi ; +0x5, 0x140182a05 sub rsp, 20h ; +0x6, 0x140182a06 mov eax, 3 ; +0xa, 0x140182a0a mov rsi, rcx ; +0xf, 0x140182a0f cmp edx, eax ; +0x12, 0x140182a12 cmovl eax, edx ; +0x14, 0x140182a14 mov edx, [rcx+3C8h] ; +0x17, 0x140182a17 xor edi, edi ; +0x1d, 0x140182a1d test eax, eax ; +0x1f, 0x140182a1f cmovg edi, eax ; +0x21, 0x140182a21 cmp edi, edx ; +0x24, 0x140182a24 jz loc_140182AFC ; +0x26, 0x140182a26 lea rcx, aFg02d001Png; "fg_%02d_001.png" ; +0x2c, 0x140182a2c mov [rsp+28h+arg_0], rbx ; +0x33, 0x140182a33 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x38, 0x140182a38 mov rcx, rax ; +0x3e, 0x140182a3e call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x41, 0x140182a41 mov rbx, rax ; +0x47, 0x140182a47 call cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x4a, 0x140182a4a mov rcx, rax ; +0x50, 0x140182a50 mov rdx, rbx ; +0x53, 0x140182a53 call cs:?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x56, 0x140182a56 mov edx, [rsi+3C8h] ; +0x5c, 0x140182a5c lea rcx, aFg02d2001Png; "fg_%02d_2_001.png" ; +0x62, 0x140182a62 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x69, 0x140182a69 mov rcx, rax ; +0x6f, 0x140182a6f call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x72, 0x140182a72 mov rbx, rax ; +0x78, 0x140182a78 call cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x7b, 0x140182a7b mov rcx, rax ; +0x81, 0x140182a81 mov rdx, rbx ; +0x84, 0x140182a84 call cs:?removeTextureForKey@CCTextureCache@cocos2d@@QEAAXPEBD@Z; cocos2d::CCTextureCache::removeTextureForKey(char const *) ; +0x87, 0x140182a87 test edi, edi ; +0x8d, 0x140182a8d jle short loc_140182AF1 ; +0x8f, 0x140182a8f mov edx, edi ; +0x91, 0x140182a91 lea rcx, aFg02d001Png; "fg_%02d_001.png" ; +0x93, 0x140182a93 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x9a, 0x140182a9a mov rcx, rax ; +0xa0, 0x140182aa0 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xa3, 0x140182aa3 mov rbx, rax ; +0xa9, 0x140182aa9 call cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0xac, 0x140182aac xor r8d, r8d ; +0xb2, 0x140182ab2 mov rdx, rbx ; +0xb5, 0x140182ab5 mov rcx, rax ; +0xb8, 0x140182ab8 call cs:?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0xbb, 0x140182abb mov edx, edi ; +0xc1, 0x140182ac1 lea rcx, aFg02d2001Png; "fg_%02d_2_001.png" ; +0xc3, 0x140182ac3 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xca, 0x140182aca mov rcx, rax ; +0xd0, 0x140182ad0 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xd3, 0x140182ad3 mov rbx, rax ; +0xd9, 0x140182ad9 call cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0xdc, 0x140182adc xor r8d, r8d ; +0xe2, 0x140182ae2 mov rdx, rbx ; +0xe5, 0x140182ae5 mov rcx, rax ; +0xe8, 0x140182ae8 call cs:?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0xeb, 0x140182aeb mov rbx, [rsp+28h+arg_0] ; +0xf1, 0x140182af1 mov [rsi+3C8h], edi ; +0xf6, 0x140182af6 mov rsi, [rsp+28h+arg_8] ; +0xfc, 0x140182afc add rsp, 20h ; +0x101, 0x140182b01 pop rdi ; +0x105, 0x140182b05 retn ; +0x106, 0x140182b06