Function at 0x408720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ca10
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x44f008]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x44f008]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, ecx
cmp dword [ebx + 0x88], 0
mov dword [esp + 0x24], eax
je 0x408818
lea edi, [ebx + 0x68]
push 0x4439a3
push edi
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
je 0x408818
cmp dword [ebx + 0x8c], 0
jne 0x408818
mov ebx, dword [ebx + 0x88]
push 0x443a9c
lea ecx, [esp + 0x6c]
push edi
push ecx
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
mov edx, dword [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x13c], 0
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
mov byte [esp + 0x130], 1
mov edx, dword [ebx]
push esi
push eax
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x130], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x68]
mov dword [esp + 0x130], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
jmp 0x408af5
push str.TYFileSystem::getFileTypeEx
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x68]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebx + 0x4c]
push eax
lea ecx, [esp + 0x6c]
push str.zip_ftypeEx
push ecx
mov dword [esp + 0x38], eax
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
mov edi, eax
mov dword [esp + 0x130], 2
call fcn.00422c50
push edi
lea edx, [esp + 0x18]
push edx
mov ecx, eax
call fcn.004228f0
lea ecx, [esp + 0x68]
mov byte [esp + 0x130], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x108]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 1
lea edx, [esp + 0x108]
mov ecx, ebx
mov byte [esp + 0x134], 5
call fcn.004068d0
lea edi, [esp + 0x104]
mov ecx, ebx
call fcn.00406830
mov ecx, edi
push ecx
lea edx, [ebx + 0x30]
lea ecx, [esp + 0x20]
call fcn.0040e5a0
mov eax, dword [eax]
add esp, 4
cmp eax, dword [ebx + 0x34]
jne 0x40899b
cmp byte [0x4a42fd], 0
je 0x408955
push 1
push 2
lea ecx, [esp + 0x8c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov byte [esp + 0x130], 6
mov edx, dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov ebx, dword [ebx + 0x38]
push edx
push ebx
lea eax, [esp + 0x8c]
push str.can_not_find_file_in_fileMap___fileMap_.size____
push eax
call fcn.0040e8f0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x84]
mov byte [esp + 0x130], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esp + 0x104]
mov byte [esp + 0x130], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or esi, 0xffffffff
mov dword [esp + 0x130], esi
mov ecx, dword [esp + 0x14]
call fcn.00403ef0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408994
add dword [eax + 4], esi
mov ecx, eax
jne 0x408994
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
xor eax, eax
jmp 0x408af5
mov edi, dword [eax + 0x28]
mov ecx, dword [ebx + 0x40]
imul edi, edi, 0x75
add edi, dword [ebx + 0xae]
lea edx, [esp + 0x104]
mov dword [esp + 0x1c], ecx
push edx
lea edx, [ebx + 0x3c]
lea ecx, [esp + 0x2c]
call fcn.0040eab0
mov ecx, dword [esp + 0x20]
add esp, 4
cmp dword [eax], ecx
je 0x408a16
lea ecx, [esp + 0x104]
mov byte [esp + 0x130], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or esi, 0xffffffff
mov dword [esp + 0x130], esi
mov ecx, dword [esp + 0x14]
call fcn.00403ef0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408a0c
add dword [eax + 4], esi
mov ecx, eax
jne 0x408a0c
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, 1
jmp 0x408af5
xor ecx, ecx
cmp esi, ecx
je 0x408a43
mov edx, dword [edi + 0x4a]
mov dword [esi], edx
mov dword [esi + 4], ecx
movzx eax, word [edi + 0x44]
movzx edx, word [edi + 0x42]
shl eax, 0x10
or eax, edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
cmp dword [edi + 0x1c], ecx
lea esi, [edi + 0x1c]
je 0x408c10
cmp word [edi + 0x58], 8
jne 0x408bf1
push 0x38
push ecx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x28], ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x38
push str.1.2.3
lea ecx, [esp + 0x38]
xor edi, edi
push 0xfffffffffffffff1
push ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
call fcn.00401320
add esp, 0x10
test eax, eax
je 0x408b1b
mov eax, dword [esp + 0x2c]
mov edx, 0x10
cmp dword [eax + 0x18], edx
jb 0x408aa9
mov ecx, dword [eax + 4]
jmp 0x408aac
lea ecx, [eax + 4]
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x18], edx
jb 0x408aba
mov eax, dword [eax + 4]
jmp 0x408abd
add eax, 4
push ecx
push eax
call fcn.00411140
add esp, 8
lea ecx, [esp + 0x104]
mov byte [esp + 0x130], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea esi, [esp + 0x14]
mov dword [esp + 0x130], 0xffffffff
call fcn.00403f00
mov eax, 2
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00436b14
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esi]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 2
jmp 0x408b40
lea edx, [esp + 0x30]
push 2
push edx
call fcn.004014e0
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x408b5b
cmp dword [esp + 0x40], edi
jne 0x408b40
lea eax, [esp + 0x30]
push eax
call fcn.00402af0
add esp, 4
cmp esi, edi
je 0x408bb1
mov eax, dword [esp + 0x2c]
mov edx, 0x10
cmp dword [eax + 0x18], edx
jb 0x408b7f
mov ecx, dword [eax + 4]
jmp 0x408b82
lea ecx, [eax + 4]
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x18], edx
jb 0x408b9e
mov eax, dword [eax + 4]
push ecx
push eax
push esi
call fcn.00411140
add esp, 0xc
jmp 0x408ac7
push ecx
add eax, 4
push eax
push esi
call fcn.00411140
add esp, 0xc
jmp 0x408ac7
cmp word [esp + 0x1c], 0x4b50
jne 0x408ac7
lea ecx, [esp + 0x104]
mov byte [esp + 0x130], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea esi, [esp + 0x14]
mov dword [esp + 0x130], 0xffffffff
call fcn.00403f00
mov eax, 3
jmp 0x408af5
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
call fcn.00411440
call fcn.0040af10
add esp, 4
test al, al
je 0x408ac7
jmp 0x408bbe
mov eax, ebx
lea esi, [esp + 0x1c]
mov dword [esp + 0x28], ecx
call fcn.00403ec0
cmp byte [esp + 0x1c], 0
jne 0x408d0a
mov esi, dword [esp + 0x24]
cmp dword [esi + 0x18], 0x10
jb 0x408c39
mov eax, dword [esi + 4]
jmp 0x408c3c
lea eax, [esi + 4]
push eax
call fcn.00411140
add esp, 4
cmp byte [0x4a42fd], 0
je 0x408cda
push 1
push 2
lea ecx, [esp + 0x8c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov byte [esp + 0x130], 7
mov ecx, dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ecx
push ecx
push 0x4443e8
push esi
lea edx, [esp + 0x94]
push str.TYFileSystem::getFileType_Failed_open_zip_file__
push edx
call fcn.0040e8f0
add esp, 8
push eax
call dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
push eax
call fcn.0040e8f0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x84]
mov byte [esp + 0x130], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esp + 0x104]
mov byte [esp + 0x130], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea esi, [esp + 0x14]
mov dword [esp + 0x130], 0xffffffff
call fcn.00403f00
xor eax, eax
jmp 0x408af5
movzx edx, word [edi + 0x5e]
movzx ecx, word [edi + 0x60]
mov eax, dword [edi + 0x52]
add ecx, edx
add ecx, dword [ebx + 0x8c]
mov edx, dword [ebx + 0x48]
xor esi, esi
push esi
lea ecx, [ecx + eax + 0x1e]
push ecx
push edx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
cmp dword [edi + 0x4a], esi
je 0x408ac7
cmp word [edi + 0x58], 8
jne 0x408e3f
push 0x38
lea eax, [esp + 0x34]
push esi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x38
push str.1.2.3
lea ecx, [esp + 0x38]
push 0xfffffffffffffff1
push ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
call fcn.00401320
add esp, 0x10
test eax, eax
je 0x408d92
mov eax, dword [esp + 0x2c]
mov edx, 0x10
cmp dword [eax + 0x18], edx
jb 0x408aa9
mov ecx, dword [eax + 4]
jmp 0x408aac
mov edi, dword [sym.imp.MSVCR80.dll_fread]
lea edx, [esp + 0x18]
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0x48]
push edx
mov eax, 2
push 1
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x4c], ecx
call edi
mov esi, eax
add esp, 0x10
cmp esi, 1
jne 0x408e14
lea ecx, [ecx]
lea ecx, [esp + 0x30]
push 2
push ecx
call fcn.004014e0
add esp, 8
test eax, eax
jne 0x408e14
cmp dword [esp + 0x40], eax
je 0x408e14
cmp esi, 1
jne 0x408e2d
mov eax, dword [ebx + 0x48]
push eax
lea edx, [esp + 0x1c]
push esi
mov ecx, edx
push 2
push ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 2
call edi
mov esi, eax
add esp, 0x10
cmp esi, 1
je 0x408dd0
lea eax, [esp + 0x30]
push eax
call fcn.00402af0
add esp, 4
cmp word [esp + 0x28], 0x4b50
jmp 0x408bb8
lea edx, [esp + 0x30]
push edx
call fcn.00402af0
add esp, 4
jmp 0x408ac7
mov ecx, dword [ebx + 0x48]
push ecx
push 1
lea edx, [esp + 0x30]
push 2
push edx
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x408ac7
cmp word [esp + 0x28], 0x4b50
jmp 0x408bb8