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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7970
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x624500]
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 ebx, ecx
mov dword [ebp - 0x2c4], ebx
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4946f6
push eax
call fcn.005950fb
add esp, 4
push 0x5fcef8
lea ecx, [ebx + 4]
call fcn.00472010
lea eax, [ebp - 0x2cc]
mov dword [ebx + 0x20], 0
push eax
mov dword [ebx + 0x24], 0
call fcn.004749b0
add esp, 4
xor edx, edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], dx
call fcn.0040612d
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x2b4]
mov dword [ebp - 4], 0
push eax
call fcn.004749e0
add esp, 4
cmp dword [eax + 4], 0
jne 0x494889
push dword [ebp + 0xc]
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.0046e7b0
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 0
cmovae eax, dword [ebp - 0x48]
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4947af
push 0x12
push 0x5d3804
jmp 0x494960
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4947ca
push 0xd
push str.File_is_empty
jmp 0x494960
cmp esi, 0x400000
jbe 0x4947de
push 0xe
push 0x5d3848
jmp 0x494960
push esi
mov dword [ebp - 0x2b8], 0
call fcn.0053a821
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x2c0], ebx
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2b8], esi
je 0x494864
push ebx
call fcn.0053a82a
mov ecx, dword [ebp - 0x2c4]
add esp, 4
call fcn.00494fd0
mov ecx, dword [ebp - 0x2c4]
sub esp, 8
mov eax, esp
sub esp, 8
mov dword [eax], 0x5fcef8
mov dword [eax + 4], 0
mov eax, esp
mov dword [eax], str.Could_not_read_file
mov dword [eax + 4], 0x13
call fcn.00495000
mov bl, al
jmp 0x494c14
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2c4]
push esi
push ebx
call fcn.00494c40
push dword [ebp - 0x2c0]
mov bl, al
call fcn.0053a82a
add esp, 4
jmp 0x494c14
lea eax, [ebp - 0x2b4]
push eax
call fcn.004749e0
add esp, 4
lea ecx, [ebp - 0x48]
push dword [eax + 4]
push dword [eax]
call fcn.0046e7b0
call fcn.00474e20
test al, al
je 0x4948c0
call fcn.00474a10
mov esi, eax
mov dword [ebp - 0x2b8], esi
jmp 0x494955
lea eax, [ebp - 0x2bc]
push eax
call fcn.00474a20
add esp, 4
xor edx, edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], dx
call fcn.0040612d
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
push dword [ebp - 0x54]
cmovae eax, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
call fcn.0047fd70
cmp dword [ebp - 0x68], 0x10
lea ecx, [ebp - 0x7c]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
cmovae ecx, dword [ebp - 0x7c]
cmp dword [ebp - 0x34], 8
push ecx
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.00498f10
add esp, 0x14
lea ecx, [ebp - 0x7c]
mov esi, eax
mov dword [ebp - 0x2b8], esi
call fcn.0040c899
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.00405f7b
test esi, esi
jne 0x49497e
push 0x16
push str.Error_opening_zip_file
lea ecx, [ebx + 0x2c]
call fcn.0046e700
push 0
push 0x5fcef8
lea ecx, [ebx + 0x48]
call fcn.0046e700
xor bl, bl
jmp 0x494c14
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x2c0], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.0040612d
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x2b4]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2b4], 0x5ff994
mov dword [ebp - 0x2b0], 1
call fcn.0048cb60
mov esi, eax
cmp esi, dword [0x625120]
je 0x494ac9
nop dword [eax + eax]
push 1
push 0x60567c
push 1
push esi
lea ecx, [ebp - 0x2c]
call fcn.004296a0
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
add esi, 2
cmp dword [ebp - 0x18], 8
cmovae edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2b0], edx
cmp ecx, 1
jb 0x494ab4
lea eax, [ecx - 1]
cmp esi, eax
ja 0x494ab4
lea eax, [edx + ecx*2]
mov dword [ebp - 0x2c8], eax
lea esi, [edx + esi*2]
nop dword [eax]
mov ecx, eax
mov edx, 0
sub ecx, esi
sar ecx, 1
je 0x494a64
cmp word [esi], 0x5c
je 0x494a62
cmp ecx, 1
je 0x494a64
add esi, 2
dec ecx
cmp word [esi], 0x5c
jne 0x494a53
mov edx, esi
mov esi, edx
test esi, esi
je 0x494ab4
movzx ecx, word [esi]
mov edi, 0x5c
mov edx, 1
mov eax, 0x5ff994
cmp ecx, edi
jb 0x494a9f
mov ebx, esi
sub ebx, eax
cmp cx, di
ja 0x494a9f
cmp edx, 1
je 0x494aaa
movzx ecx, word [ebx + eax + 2]
add eax, 2
dec edx
movzx edi, word [eax]
cmp cx, di
jae 0x494a87
mov eax, dword [ebp - 0x2c8]
add esi, 2
jmp 0x494a40
sub esi, dword [ebp - 0x2b0]
sar esi, 1
jmp 0x494ab7
or esi, 0xffffffff
cmp esi, dword [0x625120]
jne 0x4949f0
mov ebx, dword [ebp - 0x2c4]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x2c0]
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 1
push eax
push dword [ebp - 0x2b8]
call fcn.00498630
add esp, 0x14
test eax, eax
je 0x494b00
push 0x19
push str.Could_not_find_ziped_file
jmp 0x494b0e
mov esi, dword [ebp - 0x80]
test esi, esi
jne 0x494b2c
push 0xd
push str.File_is_empty
lea ecx, [ebx + 0x2c]
call fcn.0046e700
push 0
push 0x5fcef8
lea ecx, [ebx + 0x48]
call fcn.0046e700
xor bl, bl
jmp 0x494c0c
cmp esi, 0x400000
jbe 0x494b66
sub esp, 8
mov ecx, ebx
mov eax, esp
sub esp, 8
mov dword [eax], 0x5fcef8
mov dword [eax + 4], 0
mov eax, esp
mov dword [eax], 0x5d3848
mov dword [eax + 4], 0xe
call fcn.00495000
mov bl, al
jmp 0x494c0c
push esi
call fcn.0053a821
push esi
mov edi, eax
push edi
push dword [ebp - 0x2c0]
push dword [ebp - 0x2b8]
call fcn.00499500
add esp, 0x14
test eax, eax
je 0x494bde
cmp eax, 0x600
je 0x494bde
push edi
call fcn.0053a82a
add esp, 4
call fcn.00474e20
test al, al
jne 0x494baf
push dword [ebp - 0x2b8]
call fcn.00498190
add esp, 4
sub esp, 8
mov ecx, ebx
mov eax, esp
sub esp, 8
mov dword [eax], 0x5fcef8
mov dword [eax + 4], 0
mov eax, esp
mov dword [eax], str.Could_not_unzip_file
mov dword [eax + 4], 0x14
call fcn.00495000
mov bl, al
jmp 0x494c0c
call fcn.00474e20
test al, al
jne 0x494bf5
push dword [ebp - 0x2b8]
call fcn.00498190
add esp, 4
push dword [ebp + 0x10]
mov ecx, ebx
push esi
push edi
call fcn.00494c40
push edi
mov bl, al
call fcn.0053a82a
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
lea ecx, [ebp - 0x48]
call fcn.00405f7b
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.0053a175
mov esp, ebp
pop ebp
ret 0xc