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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504791
mov eax, dword fs:[0]
push eax
sub esp, 0x3c8
mov eax, dword [0x5470bc]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x3d0], ebx
call fcn.00499450
call fcn.00465b70
push eax
lea ecx, [ebp - 0x94]
call fcn.0046c430
mov dword [ebp - 4], 0
call fcn.00465b90
mov ecx, eax
call fcn.0046cf90
test al, al
je 0x4990cb
push ebx
lea ecx, [ebp - 0x94]
call fcn.0046c770
push 0
push 0x80
push 3
push 0
push 1
push accept
lea ecx, [ebp - 0x94]
call fcn.0046cd10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push 0
cmp ebx, 0xffffffff
jne 0x499006
push str.Error_opening_file
mov ecx, esi
call fcn.00499490
mov bl, al
jmp 0x4992aa
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x499027
push eax
push str.File_is_empty
mov ecx, esi
call fcn.00499490
mov bl, al
jmp 0x4992aa
cmp edi, 0x400000
jbe 0x499044
push 0
push 0x51a410
mov ecx, esi
call fcn.00499490
mov bl, al
jmp 0x4992aa
push edi
mov dword [ebp - 0x3d0], 0
call fcn.00426ac3
add esp, 4
mov dword [ebp - 0x3d4], eax
lea ecx, [ebp - 0x3d0]
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 - 0x3d0], edi
je 0x4990a9
mov edi, dword [ebp - 0x3d4]
push edi
call fcn.004269d7
add esp, 4
mov ecx, esi
call fcn.00499450
push 0
push str.Could_not_read_file
mov ecx, esi
call fcn.00499490
mov bl, al
jmp 0x4992aa
push dword [ebp + 0xc]
mov ecx, esi
push edi
mov edi, dword [ebp - 0x3d4]
push edi
call fcn.004992e0
push edi
mov bl, al
call fcn.004269d7
add esp, 4
jmp 0x4992aa
call fcn.00465b90
push eax
lea ecx, [ebp - 0x94]
call fcn.0046c750
call fcn.00465f30
test al, al
je 0x4990ee
call fcn.00465ba0
mov edi, eax
jmp 0x499154
call fcn.00465bb0
push eax
lea ecx, [ebp - 0x19c]
call fcn.0046c430
push 0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.0046cd10
push eax
call fcn.0046b9c0
add esp, 8
lea ecx, [ebp - 0x94]
mov ebx, eax
push ebx
call fcn.0046cd10
push eax
call fcn.004752a0
add esp, 8
mov edi, eax
test ebx, ebx
je 0x49913f
push ebx
call fcn.004269d7
add esp, 4
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.0046c5c0
mov ebx, dword [ebp - 0x3d0]
test edi, edi
jne 0x49916c
push edi
push str.Error_opening_zip_file
mov ecx, esi
call fcn.00499490
mov bl, al
jmp 0x4992aa
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3d4], 0
call fcn.0046c460
push 0x5156d8
push 0x532988
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0046d1e0
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3d4]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0046cd10
push eax
push edi
call fcn.00474b60
add esp, 0x14
test eax, eax
je 0x4991db
push 0
push str.Could_not_find_ziped_file
mov ecx, esi
call fcn.00499490
mov bl, al
jmp 0x49929f
mov ebx, dword [ebp - 0x1a0]
test ebx, ebx
jne 0x4991f9
push ebx
push str.File_is_empty
mov ecx, esi
call fcn.00499490
mov bl, al
jmp 0x49929f
cmp ebx, 0x400000
jbe 0x499216
push 0
push 0x51a410
mov ecx, esi
call fcn.00499490
mov bl, al
jmp 0x49929f
push ebx
call fcn.00426ac3
push ebx
push eax
push dword [ebp - 0x3d4]
mov dword [ebp - 0x3d0], eax
push edi
call fcn.004757f0
add esp, 0x14
test eax, eax
je 0x499270
cmp eax, 0x600
je 0x499270
push dword [ebp - 0x3d0]
call fcn.004269d7
add esp, 4
call fcn.00465f30
test al, al
jne 0x49925e
push edi
call fcn.00474880
add esp, 4
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.00499490
mov bl, al
jmp 0x49929f
call fcn.00465f30
test al, al
jne 0x499282
push edi
call fcn.00474880
add esp, 4
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x3d0]
mov ecx, esi
push ebx
push edi
call fcn.004992e0
push edi
mov bl, al
call fcn.004269d7
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.0046c5c0
lea ecx, [ebp - 0x94]
call fcn.0046c5c0
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.004264c2
mov esp, ebp
pop ebp
ret 8