Function at 0x402390
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5767dd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5e0ce8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.00401720
cmp dword [ebp + 0x24], 0x10
lea edx, [ebp + 0x10]
mov ebx, dword [sym.imp.libcocos2d.dll_public:_static_class_cocos2d::__String____cdecl_cocos2d::__String::createWithFormat_char_const__]
cmovae edx, dword [ebp + 0x10]
push edx
push dword [esi]
mov dword [ebp - 0x14], eax
push str._s:_s
call ebx
mov esi, dword [esi + 0x14]
add esp, 0xc
mov edi, eax
mov ecx, edi
call dword [sym.imp.libcocos2d.dll_public:_char_const____thiscall_cocos2d::__String::getCString_void_const]
push esi
push eax
push str._s:_s
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 0xc
cmp dword [ecx + 0x30], 0
mov ecx, eax
setne bl
call dword [sym.imp.libcocos2d.dll_public:_char_const____thiscall_cocos2d::__String::getCString_void_const]
mov ecx, dword [ebp - 0x14]
push ebx
push eax
call fcn.00405100
mov ebx, dword [ebp - 0x10]
mov ecx, edi
mov esi, dword [ebp - 0x18]
movzx eax, al
mov dword [ebx], eax
mov esi, dword [esi + 4]
call dword [sym.imp.libcocos2d.dll_public:_char_const____thiscall_cocos2d::__String::getCString_void_const]
push esi
push eax
push str._s:_s
call dword [sym.imp.libcocos2d.dll_public:_static_class_cocos2d::__String____cdecl_cocos2d::__String::createWithFormat_char_const__]
add esp, 0xc
mov ecx, eax
cmp dword [ebx + 0x3c], 0
setne bl
call dword [sym.imp.libcocos2d.dll_public:_char_const____thiscall_cocos2d::__String::getCString_void_const]
mov ecx, dword [ebp - 0x14]
push ebx
push eax
call fcn.00405100
mov ebx, dword [ebp - 0x10]
mov ecx, edi
movzx eax, al
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0x18]
call dword [sym.imp.libcocos2d.dll_public:_char_const____thiscall_cocos2d::__String::getCString_void_const]
push esi
push eax
push str._s:_s
call dword [sym.imp.libcocos2d.dll_public:_static_class_cocos2d::__String____cdecl_cocos2d::__String::createWithFormat_char_const__]
add esp, 0xc
mov ecx, eax
cmp dword [ebx + 0x34], 0
setne bl
call dword [sym.imp.libcocos2d.dll_public:_char_const____thiscall_cocos2d::__String::getCString_void_const]
mov ecx, dword [ebp - 0x14]
push ebx
push eax
call fcn.00405100
mov ebx, dword [ebp - 0x10]
mov ecx, edi
movzx eax, al
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0x1c]
call dword [sym.imp.libcocos2d.dll_public:_char_const____thiscall_cocos2d::__String::getCString_void_const]
push esi
push eax
push str._s:_s
call dword [sym.imp.libcocos2d.dll_public:_static_class_cocos2d::__String____cdecl_cocos2d::__String::createWithFormat_char_const__]
add esp, 0xc
mov ecx, eax
cmp dword [ebx + 0x38], 0
setne bl
call dword [sym.imp.libcocos2d.dll_public:_char_const____thiscall_cocos2d::__String::getCString_void_const]
mov ecx, dword [ebp - 0x14]
push ebx
push eax
call fcn.00405100
mov ebx, dword [ebp - 0x10]
mov ecx, edi
movzx eax, al
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0xc]
call dword [sym.imp.libcocos2d.dll_public:_char_const____thiscall_cocos2d::__String::getCString_void_const]
push esi
push eax
push str._s:_s
call dword [sym.imp.libcocos2d.dll_public:_static_class_cocos2d::__String____cdecl_cocos2d::__String::createWithFormat_char_const__]
add esp, 0xc
mov ecx, eax
cmp dword [ebx + 0x40], 0
setne bl
call dword [sym.imp.libcocos2d.dll_public:_char_const____thiscall_cocos2d::__String::getCString_void_const]
mov ecx, dword [ebp - 0x14]
push ebx
push eax
call fcn.00405100
mov ebx, dword [ebp - 0x10]
mov ecx, edi
mov edi, dword [sym.imp.libcocos2d.dll_public:_char_const____thiscall_cocos2d::__String::getCString_void_const]
movzx eax, al
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0x20]
call edi
push esi
push eax
push str._s:_s
call dword [sym.imp.libcocos2d.dll_public:_static_class_cocos2d::__String____cdecl_cocos2d::__String::createWithFormat_char_const__]
add esp, 0xc
mov ecx, eax
cmp dword [ebx + 0x44], 0
setne bl
call edi
mov ecx, dword [ebp - 0x14]
push ebx
push eax
call fcn.00405100
mov ecx, dword [ebp - 0x10]
movzx eax, al
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp + 0x24]
cmp ecx, 0x10
jb 0x4025a1
mov edx, dword [ebp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402597
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402597
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00575660
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20