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

Disassembly:
push 0x3cc
mov eax, 0x5147e2
call fcn.004604b6
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3d8], ebx
call fcn.00499cae
call fcn.0048b0f8
push eax
lea ecx, [ebp - 0x94]
call fcn.004886bd
and dword [ebp - 4], 0
call fcn.0048b0fe
mov ecx, eax
call fcn.00488eb5
test al, al
je 0x499998
push ebx
lea ecx, [ebp - 0x94]
call fcn.0048892f
xor ebx, ebx
lea ecx, [ebp - 0x94]
push ebx
push 0x80
push 3
push ebx
push 1
push connect
call fcn.004888ce
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d0], eax
push ebx
cmp eax, 0xffffffff
jne 0x4998f4
push str.Error_opening_file
jmp 0x499a27
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x49990c
push ebx
push str.File_is_empty
jmp 0x499a27
cmp edi, 0x400000
jbe 0x49991f
push ebx
push str.File_too_large
jmp 0x499a27
push edi
mov dword [ebp - 0x3d4], ebx
call fcn.004510d6
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 0x499979
push ebx
call fcn.004510df
pop ecx
mov ecx, esi
call fcn.00499cae
push 0
push str.Could_not_read_file
jmp 0x499a27
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.00499b61
push dword [ebp - 0x3d8]
mov bl, al
call fcn.004510df
pop ecx
jmp 0x499b48
call fcn.0048b0fe
push eax
lea ecx, [ebp - 0x94]
call fcn.00488912
call fcn.0048b41d
test al, al
je 0x4999bb
call fcn.0048b104
mov edi, eax
jmp 0x499a1d
call fcn.0048b10a
push eax
lea ecx, [ebp - 0x19c]
call fcn.004886bd
push 0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.004888ce
push eax
call fcn.004b85fe
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x94]
push ebx
call fcn.004888ce
push eax
call fcn.0049e550
mov edi, eax
pop ecx
pop ecx
test ebx, ebx
je 0x499a08
push ebx
call fcn.004510df
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.004887ca
mov ebx, dword [ebp - 0x3d8]
test edi, edi
jne 0x499a35
push edi
push str.Error_opening_zip_file
mov ecx, esi
call fcn.00499cd9
mov bl, al
jmp 0x499b48
and dword [ebp - 0x3d4], 0
lea ecx, [ebp - 0x118]
push 0xffffffffffffffff
push ebx
call fcn.004886e2
push 0x51f93c
push 0x53643c
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0048907f
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3d4]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.004888ce
push eax
push edi
call fcn.0049df27
add esp, 0x14
test eax, eax
je 0x499a95
push 0
push str.Could_not_find_ziped_file
jmp 0x499b03
mov ebx, dword [ebp - 0x1a0]
test ebx, ebx
jne 0x499aa7
push ebx
push str.File_is_empty
jmp 0x499b03
cmp ebx, 0x400000
jbe 0x499ab8
push 0
push str.File_too_large
jmp 0x499b03
push ebx
call fcn.004510d6
push ebx
push eax
push dword [ebp - 0x3d4]
mov dword [ebp - 0x3d0], eax
push edi
call fcn.0049e987
add esp, 0x14
test eax, eax
je 0x499b0e
cmp eax, 0x600
je 0x499b0e
push dword [ebp - 0x3d0]
call fcn.004510df
pop ecx
call fcn.0048b41d
test al, al
jne 0x499afc
push edi
call fcn.0049dd0f
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.00499cd9
mov bl, al
jmp 0x499b39
call fcn.0048b41d
test al, al
jne 0x499b1e
push edi
call fcn.0049dd0f
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x3d0]
mov ecx, esi
push ebx
push edi
call fcn.00499b61
push edi
mov bl, al
call fcn.004510df
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.004887ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004887ca
mov al, bl
call fcn.00460474
ret 8