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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521ac1
mov eax, dword fs:[0]
push eax
sub esp, 0x3d0
mov eax, dword [0x55d184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3dc], edi
test eax, eax
je 0x4606d8
push eax
call fcn.004cf709
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x4606e8
push eax
call fcn.004cf709
add esp, 4
push 0x84
lea eax, [ebp - 0x9c]
mov dword [esi], 0
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.004cbbe0
add esp, 0xc
call fcn.00438d20
push eax
lea ecx, [ebp - 0x9c]
call fcn.004348c0
mov dword [ebp - 4], 0
call fcn.00438d30
mov ecx, eax
call fcn.004358e0
test al, al
je 0x46081c
push edi
lea ecx, [ebp - 0x9c]
call fcn.00434ef0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x9c]
call fcn.00421810
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x460781
push 0x63
push str.Error_opening_file
jmp 0x46091a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x46079c
push 0x63
push str.File_is_empty
jmp 0x46091a
cmp edi, 0x400000
jbe 0x4607b0
push 0x63
push 0x52e534
jmp 0x46091a
push edi
mov dword [ebp - 0x14], 0
call fcn.0049be25
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x4607fd
mov edi, dword [ebp - 0x18]
push edi
call fcn.0049be2e
add esp, 4
mov ecx, esi
call fcn.00460280
push 0x63
push str.Could_not_read_file
jmp 0x46091a
push dword [ebp + 0xc]
mov ecx, esi
push edi
mov edi, dword [ebp - 0x18]
push edi
call fcn.00460ab0
push edi
mov bl, al
call fcn.0049be2e
add esp, 4
jmp 0x460a78
call fcn.00438d30
push eax
lea ecx, [ebp - 0x9c]
call fcn.00434ed0
call fcn.00438fa0
test al, al
je 0x460842
call fcn.00438d40
mov ebx, eax
jmp 0x46090f
push 0x84
lea eax, [ebp - 0x1a4]
push 0
push eax
call fcn.004cbbe0
add esp, 0xc
call fcn.00438d50
push eax
lea ecx, [ebp - 0x1a4]
call fcn.004348c0
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 1
call fcn.00421810
mov ebx, eax
test ebx, ebx
je 0x4608d4
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x3d8], eax
inc eax
push eax
mov dword [ebp - 0x14], eax
call fcn.0049be25
mov edi, eax
add esp, 4
test edi, edi
je 0x4608d4
push dword [ebp - 0x14]
push 0
push edi
call fcn.004cbbe0
add esp, 0xc
push 0
push 0
push dword [ebp - 0x3d8]
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x4608d6
xor edi, edi
push edi
lea ecx, [ebp - 0x9c]
call fcn.00421810
push eax
call fcn.00443260
add esp, 8
mov ebx, eax
test edi, edi
je 0x4608fa
push edi
call fcn.0049be2e
add esp, 4
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 0
call fcn.00434b40
mov edi, dword [ebp - 0x3dc]
test ebx, ebx
jne 0x460940
push 0x63
push str.Error_opening_zip_file
lea eax, [esi + 0x10]
push eax
call fcn.004dc04c
push 0x31
lea eax, [esi + 0xd8]
push 0x525840
push eax
call fcn.004dc04c
add esp, 0x18
xor bl, bl
jmp 0x460a78
push 0x84
lea eax, [ebp - 0x120]
mov dword [ebp - 0x18], 0
push 0
push eax
call fcn.004cbbe0
add esp, 0xc
lea ecx, [ebp - 0x120]
push 0xffffffffffffffff
push edi
call fcn.00434990
push 0x525d80
push 0x525b5c
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.00435c40
lea eax, [ebp - 0x3d4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
lea ecx, [ebp - 0x120]
call fcn.00421810
push eax
push ebx
call fcn.00442980
add esp, 0x14
test eax, eax
je 0x4609b3
push 0x63
push str.Could_not_find_ziped_file
jmp 0x460a1e
mov edi, dword [ebp - 0x1a8]
test edi, edi
jne 0x4609c6
push 0x63
push str.File_is_empty
jmp 0x460a1e
cmp edi, 0x400000
jbe 0x4609d7
push 0x63
push 0x52e534
jmp 0x460a1e
push edi
call fcn.0049be25
push edi
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push ebx
call fcn.00443860
add esp, 0x14
test eax, eax
je 0x460a41
cmp eax, 0x600
je 0x460a41
mov edi, dword [ebp - 0x14]
push edi
call fcn.0049be2e
add esp, 4
call fcn.00438fa0
test al, al
jne 0x460a17
push ebx
call fcn.004424e0
add esp, 4
push 0x63
push str.Could_not_unzip_file
lea eax, [esi + 0x10]
push eax
call fcn.004dc04c
push 0x31
lea eax, [esi + 0xd8]
push 0x525840
push eax
call fcn.004dc04c
add esp, 0x18
xor bl, bl
jmp 0x460a6d
call fcn.00438fa0
test al, al
jne 0x460a53
push ebx
call fcn.004424e0
add esp, 4
push dword [ebp + 0xc]
mov ecx, esi
push edi
mov edi, dword [ebp - 0x14]
push edi
call fcn.00460ab0
push edi
mov bl, al
call fcn.0049be2e
add esp, 4
lea ecx, [ebp - 0x120]
call fcn.00434b40
lea ecx, [ebp - 0x9c]
call fcn.00434b40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049be04
mov esp, ebp
pop ebp
ret 8