; ; cocos2d::CCLabelBMFont::setString from 0x18004e410 to 0x18004e4f8 (232 bytes) ; ; 6 xrefs: ; > @ 0x1800f2708 ; > @ 0x180140ce0 ; > @ 0x180140d14 ; > @ 0x18014cf68 ; > @ 0x1801bbda0 ; > @ 0x1801bbdac ; ; 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:21:44 +0000 ; push rdi ; +0x0, 0x18004e410 sub rsp, 20h ; +0x2, 0x18004e412 mov [rsp+28h+arg_0], rbx ; +0x6, 0x18004e416 mov rdi, rcx ; +0xb, 0x18004e41b mov [rsp+28h+arg_8], rbp ; +0xe, 0x18004e41e movzx ebp, r8b ; +0x13, 0x18004e423 test r8b, r8b ; +0x17, 0x18004e427 jnz short loc_18004E444 ; +0x1a, 0x18004e42a mov rbx, [rcx+178h] ; +0x1c, 0x18004e42c mov rcx, rdx; Src ; +0x23, 0x18004e433 call sub_180048F90 ; +0x26, 0x18004e436 mov [rdi+178h], rax ; +0x2b, 0x18004e43b jmp short loc_18004E45A ; +0x32, 0x18004e442 mov rbx, [rcx+1A0h] ; +0x34, 0x18004e444 mov rcx, rdx; Src ; +0x3b, 0x18004e44b call sub_180048F90 ; +0x3e, 0x18004e44e mov [rdi+1A0h], rax ; +0x43, 0x18004e453 test rbx, rbx ; +0x4a, 0x18004e45a jz short loc_18004E467 ; +0x4d, 0x18004e45d mov rcx, rbx; Block ; +0x4f, 0x18004e45f call j_j_free_0 ; +0x52, 0x18004e462 mov rcx, [rdi+0D0h]; this ; +0x57, 0x18004e467 test rcx, rcx ; +0x5e, 0x18004e46e jz short loc_18004E4C9 ; +0x61, 0x18004e471 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x63, 0x18004e473 test eax, eax ; +0x68, 0x18004e478 jz short loc_18004E4C9 ; +0x6a, 0x18004e47a mov rax, [rdi+0D0h] ; +0x6c, 0x18004e47c test rax, rax ; +0x73, 0x18004e483 jz short loc_18004E4C9 ; +0x76, 0x18004e486 mov rbx, [rax+38h] ; +0x78, 0x18004e488 mov eax, [rbx] ; +0x7c, 0x18004e48c test eax, eax ; +0x7e, 0x18004e48e jz short loc_18004E4C9 ; +0x80, 0x18004e490 mov rbx, [rbx+10h] ; +0x82, 0x18004e492 mov [rsp+28h+arg_10], rsi ; +0x86, 0x18004e496 lea rsi, [rax-1] ; +0x8b, 0x18004e49b lea rsi, [rbx+rsi*8] ; +0x8f, 0x18004e49f cmp rbx, rsi ; +0x93, 0x18004e4a3 ja short loc_18004E4C4 ; +0x96, 0x18004e4a6 mov rcx, [rbx] ; +0x98, 0x18004e4a8 test rcx, rcx ; +0x9b, 0x18004e4ab jz short loc_18004E4C4 ; +0x9e, 0x18004e4ae mov rax, [rcx] ; +0xa0, 0x18004e4b0 xor edx, edx ; +0xa3, 0x18004e4b3 call qword ptr [rax+150h] ; +0xa5, 0x18004e4b5 add rbx, 8 ; +0xab, 0x18004e4bb cmp rbx, rsi ; +0xaf, 0x18004e4bf jbe short loc_18004E4A8 ; +0xb2, 0x18004e4c2 mov rsi, [rsp+28h+arg_10] ; +0xb4, 0x18004e4c4 mov rcx, rdi; this ; +0xb9, 0x18004e4c9 call ?createFontChars@CCLabelBMFont@cocos2d@@QEAAXXZ; cocos2d::CCLabelBMFont::createFontChars(void) ; +0xbc, 0x18004e4cc mov rbx, [rsp+28h+arg_0] ; +0xc1, 0x18004e4d1 test bpl, bpl ; +0xc6, 0x18004e4d6 mov rbp, [rsp+28h+arg_8] ; +0xc9, 0x18004e4d9 jz short loc_18004E4F2 ; +0xce, 0x18004e4de mov rax, [rdi] ; +0xd0, 0x18004e4e0 mov rcx, rdi ; +0xd3, 0x18004e4e3 add rsp, 20h ; +0xd6, 0x18004e4e6 pop rdi ; +0xda, 0x18004e4ea jmp qword ptr [rax+390h] ; +0xdb, 0x18004e4eb add rsp, 20h ; +0xe2, 0x18004e4f2 pop rdi ; +0xe6, 0x18004e4f6 retn ; +0xe7, 0x18004e4f7