Function at 0x408f58
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x43c725
push 0x3cc
mov eax, 0x522a31
call fcn.00407194
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3d8], ebx
call fcn.00402ba8
call fcn.0040904d
push eax
lea ecx, [ebp - 0x94]
call fcn.004016e5
and dword [ebp - 4], 0
call fcn.00401893
mov ecx, eax
call fcn.004029c8
test al, al
je 0x43c84e
push ebx
lea ecx, [ebp - 0x94]
call fcn.004025f4
xor ebx, ebx
lea ecx, [ebp - 0x94]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
call fcn.0040662c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d0], eax
cmp eax, 0xffffffff
jne 0x43c7af
mov eax, str.Error_opening_file
jmp 0x43c828
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x43c7c4
mov eax, str.File_is_empty
jmp 0x43c828
cmp edi, 0x400000
jbe 0x43c7d3
mov eax, str.File_too_large
jmp 0x43c828
push edi
mov dword [ebp - 0x3d4], ebx
call fcn.00403e68
pop ecx
mov ebx, eax
lea eax, [ebp - 0x3d4]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x3d0]
mov dword [ebp - 0x3d8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d4], edi
je 0x43c82f
push ebx
call fcn.00405e4d
pop ecx
mov ecx, esi
call fcn.00402ba8
mov eax, str.Could_not_read_file
xor ebx, ebx
push ebx
push eax
jmp 0x43c8dd
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.00404269
push dword [ebp - 0x3d8]
mov bl, al
call fcn.00405e4d
pop ecx
jmp 0x43c9f6
call fcn.00401893
push eax
lea ecx, [ebp - 0x94]
call fcn.004048ae
call fcn.00406feb
test al, al
je 0x43c871
call fcn.0040228e
mov edi, eax
jmp 0x43c8d3
call fcn.0040302b
push eax
lea ecx, [ebp - 0x19c]
call fcn.004016e5
push 0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.004090bb
push eax
call fcn.0043d6af
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x94]
push ebx
call fcn.004090bb
push eax
call fcn.004019d3
mov edi, eax
pop ecx
pop ecx
test ebx, ebx
je 0x43c8be
push ebx
call fcn.00405e4d
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.00401dd4
mov ebx, dword [ebp - 0x3d8]
test edi, edi
jne 0x43c8eb
push edi
push str.Error_opening_zip_file
mov ecx, esi
call fcn.00408049
mov bl, al
jmp 0x43c9f6
and dword [ebp - 0x3d4], 0
lea ecx, [ebp - 0x118]
push 0xffffffffffffffff
push ebx
call fcn.00403cc9
push 0x5335ac
push 0x535818
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00403ef4
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3d4]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0040662c
push eax
push edi
call fcn.00407da1
add esp, 0x14
test eax, eax
je 0x43c949
mov eax, 0x53581c
jmp 0x43c9b2
mov ebx, dword [ebp - 0x1a0]
test ebx, ebx
jne 0x43c95a
mov eax, str.File_is_empty
jmp 0x43c9b2
cmp ebx, 0x400000
jbe 0x43c969
mov eax, str.File_too_large
jmp 0x43c9b2
push ebx
call fcn.00403e68
push ebx
push eax
push dword [ebp - 0x3d4]
mov dword [ebp - 0x3d0], eax
push edi
call fcn.00401e42
add esp, 0x14
test eax, eax
je 0x43c9c0
cmp eax, 0x600
je 0x43c9c0
push dword [ebp - 0x3d0]
call fcn.00405e4d
pop ecx
call fcn.00406feb
test al, al
jne 0x43c9ad
push edi
call fcn.0040380f
pop ecx
mov eax, str.Could_not_unzip_file
push 0
push eax
mov ecx, esi
call fcn.00408049
mov bl, al
jmp 0x43c9eb
call fcn.00406feb
test al, al
jne 0x43c9d0
push edi
call fcn.0040380f
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x3d0]
mov ecx, esi
push ebx
push edi
call fcn.00404269
push edi
mov bl, al
call fcn.00405e4d
pop ecx
lea ecx, [ebp - 0x118]
call fcn.00401dd4
lea ecx, [ebp - 0x94]
call fcn.00401dd4
mov al, bl
call fcn.00408fda
ret 8