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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e55a1
mov eax, dword fs:[0]
push eax
sub esp, 0x3d0
mov eax, dword [0x51a230]
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 0x460448
push eax
call fcn.004c1cbd
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x460458
push eax
call fcn.004c1cbd
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.004bac70
add esp, 0xc
call fcn.0042d490
push eax
lea ecx, [ebp - 0x9c]
call fcn.00429020
mov dword [ebp - 4], 0
call fcn.0042d4a0
mov ecx, eax
call fcn.0042a040
test al, al
je 0x46058c
push edi
lea ecx, [ebp - 0x9c]
call fcn.00429650
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x9c]
call fcn.00424290
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4604f1
push 0x63
push str.Error_opening_file
jmp 0x46068a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x46050c
push 0x63
push str.File_is_empty
jmp 0x46068a
cmp edi, 0x400000
jbe 0x460520
push 0x63
push 0x4f0c1c
jmp 0x46068a
push edi
mov dword [ebp - 0x14], 0
call fcn.00490862
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 0x46056d
mov edi, dword [ebp - 0x18]
push edi
call fcn.00490615
add esp, 4
mov ecx, esi
call fcn.0045fff0
push 0x63
push str.Could_not_read_file
jmp 0x46068a
push dword [ebp + 0xc]
mov ecx, esi
push edi
mov edi, dword [ebp - 0x18]
push edi
call fcn.00460820
push edi
mov bl, al
call fcn.00490615
add esp, 4
jmp 0x4607e8
call fcn.0042d4a0
push eax
lea ecx, [ebp - 0x9c]
call fcn.00429630
call fcn.0042d710
test al, al
je 0x4605b2
call fcn.0042d4b0
mov ebx, eax
jmp 0x46067f
push 0x84
lea eax, [ebp - 0x1a4]
push 0
push eax
call fcn.004bac70
add esp, 0xc
call fcn.0042d4c0
push eax
lea ecx, [ebp - 0x1a4]
call fcn.00429020
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 1
call fcn.00424290
mov ebx, eax
test ebx, ebx
je 0x460644
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.00490862
mov edi, eax
add esp, 4
test edi, edi
je 0x460644
push dword [ebp - 0x14]
push 0
push edi
call fcn.004bac70
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 0x460646
xor edi, edi
push edi
lea ecx, [ebp - 0x9c]
call fcn.00424290
push eax
call fcn.00437130
add esp, 8
mov ebx, eax
test edi, edi
je 0x46066a
push edi
call fcn.00490615
add esp, 4
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 0
call fcn.004292a0
mov edi, dword [ebp - 0x3dc]
test ebx, ebx
jne 0x4606b0
push 0x63
push str.Error_opening_zip_file
lea eax, [esi + 0x10]
push eax
call fcn.004cb438
push 0x31
lea eax, [esi + 0xd8]
push 0x4e8798
push eax
call fcn.004cb438
add esp, 0x18
xor bl, bl
jmp 0x4607e8
push 0x84
lea eax, [ebp - 0x120]
mov dword [ebp - 0x18], 0
push 0
push eax
call fcn.004bac70
add esp, 0xc
lea ecx, [ebp - 0x120]
push 0xffffffffffffffff
push edi
call fcn.004290f0
push 0x4ea564
push 0x4eb0a8
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.0042a3a0
lea eax, [ebp - 0x3d4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
lea ecx, [ebp - 0x120]
call fcn.00424290
push eax
push ebx
call fcn.00436850
add esp, 0x14
test eax, eax
je 0x460723
push 0x63
push str.Could_not_find_ziped_file
jmp 0x46078e
mov edi, dword [ebp - 0x1a8]
test edi, edi
jne 0x460736
push 0x63
push str.File_is_empty
jmp 0x46078e
cmp edi, 0x400000
jbe 0x460747
push 0x63
push 0x4f0c1c
jmp 0x46078e
push edi
call fcn.00490862
push edi
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push ebx
call fcn.00437730
add esp, 0x14
test eax, eax
je 0x4607b1
cmp eax, 0x600
je 0x4607b1
mov edi, dword [ebp - 0x14]
push edi
call fcn.00490615
add esp, 4
call fcn.0042d710
test al, al
jne 0x460787
push ebx
call fcn.004363b0
add esp, 4
push 0x63
push str.Could_not_unzip_file
lea eax, [esi + 0x10]
push eax
call fcn.004cb438
push 0x31
lea eax, [esi + 0xd8]
push 0x4e8798
push eax
call fcn.004cb438
add esp, 0x18
xor bl, bl
jmp 0x4607dd
call fcn.0042d710
test al, al
jne 0x4607c3
push ebx
call fcn.004363b0
add esp, 4
push dword [ebp + 0xc]
mov ecx, esi
push edi
mov edi, dword [ebp - 0x14]
push edi
call fcn.00460820
push edi
mov bl, al
call fcn.00490615
add esp, 4
lea ecx, [ebp - 0x120]
call fcn.004292a0
lea ecx, [ebp - 0x9c]
call fcn.004292a0
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.00490604
mov esp, ebp
pop ebp
ret 8