Function at 0x4071d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43bd45
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x44f008]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f008]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], 0
cmp dword [ebp + 0x64], 0x10
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
jb 0x407229
mov esi, dword [ebp + 0x50]
jmp 0x40722c
lea esi, [ebp + 0x50]
mov edi, 0x4439a3
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40728a
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.error:this__path__is_NULL
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__]
sub esp, 0x1c
mov dword [esp + 0x8c], 1
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.updater.log
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__]
mov byte [esp + 0x8c], 0
call fcn.00403f30
add esp, 0x38
mov dword [ebx], 0
jmp 0x407684
push eax
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__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea edi, [esp + 0x2c]
mov ecx, ebp
mov dword [esp + 0x54], 2
call fcn.00406830
mov eax, edi
push eax
lea edx, [ebp + 0x30]
lea ecx, [esp + 0x1c]
call fcn.0040e5a0
add esp, 4
mov dword [esp + 0x1c], 0
mov byte [esp + 0x54], 3
mov eax, dword [ebp + 0x34]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jne 0x407322
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.error:file_is_missing_in_fileMap
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__]
mov byte [esp + 0x70], 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.updater.log
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__]
mov byte [esp + 0x8c], 3
call fcn.00403f30
add esp, 0x38
mov dword [ebx], 0
mov dword [esp + 0x20], 1
jmp 0x407675
mov esi, dword [ecx + 0x28]
imul esi, esi, 0x75
add esi, dword [ebp + 0xae]
cmp dword [esi + 0x52], 0
jge 0x40734f
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.error:localHeaderOffset_is_less_than_zero
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__]
mov byte [esp + 0x70], 5
jmp 0x4072eb
cmp dword [ebp + 0x48], 0
jne 0x4073d1
cmp dword [ebp + 0x64], 0x10
lea edi, [ebp + 0x4c]
jb 0x407363
mov eax, dword [edi + 4]
jmp 0x407366
lea eax, [edi + 4]
push 0x443a04
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
test eax, eax
mov dword [ebp + 0x48], eax
jne 0x4073d1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
push str.failed_to_open_file:
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___char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
sub esp, 0x10
mov byte [esp + 0x8c], 6
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.updater.log
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__]
mov byte [esp + 0x8c], 3
call fcn.00403f30
add esp, 0x38
mov dword [ebx], 0
mov dword [esp + 0x20], 1
jmp 0x407667
movzx eax, word [esi + 0x5e]
movzx edx, word [esi + 0x60]
mov ecx, dword [esi + 0x52]
add edx, eax
mov eax, dword [ebp + 0x48]
push 0
lea edx, [edx + ecx + 0x1e]
push edx
push eax
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
test eax, eax
je 0x40746f
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.TYFileSystem::readFile_Failed_to_seek_past_local_header
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__]
sub esp, 0x1c
mov byte [esp + 0x8c], 7
mov dword [esp + 0x5c], esp
mov ecx, esp
push str.updater.log
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__]
mov byte [esp + 0x8c], 3
call fcn.00403f30
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 0x18]
add esp, 0x38
add eax, 4
cmp edx, 0x10
jb 0x407449
mov ecx, dword [eax]
jmp 0x40744b
mov ecx, eax
cmp edx, 0x10
jb 0x407452
mov eax, dword [eax]
push ecx
push eax
call fcn.00411140
add esp, 8
mov dword [ebx], 0
mov dword [esp + 0x20], 1
jmp 0x407667
movzx eax, word [esi + 0x34]
test ax, ax
je 0x407500
cmp ax, 8
je 0x407500
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push str.TYFileSystem::readFile_Compression_method__not_yet_supported
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__]
sub esp, 0x1c
mov byte [esp + 0x8c], 8
mov ecx, esp
mov dword [esp + 0x50], esp
push str.updater.log
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__]
mov byte [esp + 0x8c], 3
call fcn.00403f30
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 0x18]
add esp, 0x38
add eax, 4
cmp edx, 0x10
jb 0x4074d5
mov ecx, dword [eax]
jmp 0x4074d7
mov ecx, eax
cmp edx, 0x10
jb 0x4074de
mov eax, dword [eax]
push ecx
movzx ecx, word [esi + 0x58]
push eax
push ecx
call fcn.00411140
add esp, 0xc
mov dword [ebx], 0
mov dword [esp + 0x20], 1
jmp 0x407667
mov eax, dword [esi + 0x46]
push eax
push 0x10
call fcn.00420870
mov edi, eax
add esp, 8
test edi, edi
jne 0x40753c
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push str.TYFileSystem::readFile_Failed_to_alloc_data_buffer
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__]
sub esp, 0x1c
mov byte [esp + 0x8c], 9
mov dword [esp + 0x50], esp
jmp 0x407419
mov edx, dword [ebp + 0x48]
mov eax, dword [esi + 0x46]
push edx
push eax
mov ebp, 1
push ebp
push edi
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, dword [esi + 0x46]
je 0x4075d1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push str.TYFileSystem::readFile_Data_read_error
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__]
sub esp, 0x1c
mov byte [esp + 0x8c], 0xa
mov ecx, esp
mov dword [esp + 0x50], esp
push str.updater.log
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__]
mov byte [esp + 0x8c], 3
call fcn.00403f30
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 0x18]
add esp, 0x38
add eax, 4
cmp edx, 0x10
jb 0x4075ac
mov ecx, dword [eax]
jmp 0x4075ae
mov ecx, eax
cmp edx, 0x10
jb 0x4075b5
mov eax, dword [eax]
push ecx
push eax
call fcn.00411140
add esp, 8
mov eax, edi
call fcn.004207d0
mov dword [ebx], 0
jmp 0x407663
push 0x18
push 0x10
call fcn.00420870
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x54], 0xb
je 0x40760a
push ecx
mov edx, esp
mov dword [esp + 0x18], esp
mov dword [edx], 0
mov ecx, dword [esi + 0x46]
push str.BinaryBlock_ZipRead
push ecx
push edi
mov ecx, eax
call fcn.00411480
jmp 0x40760c
xor eax, eax
test eax, eax
mov dword [esp + 0x14], eax
je 0x407617
add dword [eax + 4], ebp
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 0xc
call fcn.0040afa0
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 3
call fcn.00411460
mov eax, edi
mov byte [esi + 0x74], 1
call fcn.004207d0
mov eax, dword [esi + 0x46]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x6c], eax
call fcn.0040afa0
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [ebx], eax
je 0x407663
add dword [eax + 4], ebp
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 2
call fcn.00411460
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 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_]
mov eax, ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00436b14
add esp, 0x44
ret 0xc