Function at 0x41e100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57835c
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5e0ce8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x58], eax
mov eax, dword [edi + 0xb8]
mov esi, dword [edi + 0xb4]
cmp esi, eax
mov dword [ebp - 0x90], eax
mov eax, dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::Ref::release_void_]
je 0x41e17b
mov edi, dword [ebp - 0x90]
mov ecx, dword [esi]
call eax
mov eax, dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::Ref::release_void_]
add esi, 4
cmp esi, edi
jne 0x41e165
mov edi, dword [ebp - 0x98]
mov ecx, dword [edi + 0xb4]
cmp ecx, dword [edi + 0xb8]
je 0x41e18f
mov dword [edi + 0xb8], ecx
mov ecx, dword [edi + 0xc4]
mov esi, dword [edi + 0xc0]
mov dword [ebp - 0x9c], ecx
cmp esi, ecx
je 0x41e1bd
mov edi, ecx
mov ecx, dword [esi]
call eax
mov eax, dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::Ref::release_void_]
add esi, 4
cmp esi, edi
jne 0x41e1a7
mov edi, dword [ebp - 0x98]
mov eax, dword [edi + 0xc0]
cmp eax, dword [edi + 0xc4]
je 0x41e1d1
mov dword [edi + 0xc4], eax
lea ecx, [ebp - 0x90]
call dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::SAXParser::constructor_void_]
push str.UTF_8
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0
call dword [sym.imp.libcocos2d.dll_public:_bool___thiscall_cocos2d::SAXParser::init_char_const__]
test al, al
jne 0x41e204
mov byte [ebp - 0x89], al
jmp 0x41e672
lea eax, [edi + 0xb0]
neg edi
lea ecx, [ebp - 0x90]
sbb edi, edi
and edi, eax
push edi
call dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::SAXParser::setDelegator_class_cocos2d::SAXDelegator__]
mov eax, dword [0x5aa440]
xorps xmm0, xmm0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x70], eax
mov al, byte [0x5aa444]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x60], 5
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x6c], al
mov byte [ebp - 0x6b], 0
mov byte [ebp - 4], 1
mov eax, dword [sym.imp.libcocos2d.dll_public:_static_class_cocos2d::FileUtils____cdecl_cocos2d::FileUtils::getInstance_void_]
mov dword [ebp - 0x98], eax
call eax
lea ecx, [ebp - 0x88]
push ecx
mov ecx, eax
call dword [sym.imp.libcocos2d.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_cocos2d::FileUtils::getDefaultResourceRootPath_void_const]
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x41e27f
mov eax, dword [eax]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x70]
call fcn.00409310
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov byte [ebp - 4], 4
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x74]
cmp ecx, 0x10
jb 0x41e2f8
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e2ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e337
push ecx
push edx
call fcn.00575660
add esp, 8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0x10
jb 0x41e347
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e33d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e33d
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 esi, dword [ebp - 0xa0]
mov ecx, esi
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e364
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.00404960
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push 0x5af150
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x41e5ab
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
mov byte [ebp - 4], 7
call dword [ebp - 0x98]
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x18]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
sub esp, 0x18
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.004046f0
mov ecx, edi
call esi
mov edi, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmp edi, 0x10
cmovae edx, dword [ebp - 0x28]
test esi, esi
jne 0x41e464
mov ecx, 0x5aa8a4
sub esi, 4
jb 0x41e421
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x41e426
add edx, 4
add ecx, 4
sub esi, 4
jae 0x41e410
cmp esi, 0xfffffffc
je 0x41e45a
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x41e453
cmp esi, 0xfffffffd
je 0x41e45a
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x41e453
cmp esi, 0xfffffffe
je 0x41e45a
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x41e453
cmp esi, 0xffffffff
je 0x41e45a
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x41e45a
sbb eax, eax
or eax, 1
jmp 0x41e45c
xor eax, eax
test eax, eax
je 0x41e528
call dword [ebp - 0x98]
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call edx
mov esi, eax
test esi, esi
je 0x41e525
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x41e4c4
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e4ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e592
push ecx
push edx
call fcn.00575660
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0x10
jb 0x41e50e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e504
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e592
push ecx
push edx
call fcn.00575660
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x41e606
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x41e55b
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e54e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e592
push ecx
push edx
call fcn.00575660
mov edi, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edi, 0x10
jb 0x41e5e3
mov edx, dword [ebp - 0x28]
lea ecx, [edi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x41e598
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e598
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 byte [ebp - 0x89], 0
jmp 0x41e62a
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push edi
mov dword [ebp - 0x94], eax
call esi
push 1
push dword [ebp - 0x94]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x41e5ec
mov byte [ebp - 0x89], 0
jmp 0x41e62a
push edi
push dword [ebp - 0x94]
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
push dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
push esi
call dword [sym.imp.libcocos2d.dll_public:_bool___thiscall_cocos2d::SAXParser::parse_char_const___unsigned_int_]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov byte [ebp - 0x89], 1
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x41e660
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e656
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e656
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 dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
lea ecx, [ebp - 0x90]
call dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::SAXParser::destructor_void_]
mov al, byte [ebp - 0x89]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057516e
mov esp, ebp
pop ebp
ret 8