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

Disassembly:
push 0x3cc
mov eax, 0x50676f
call fcn.004d4831
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3d8], ebx
call fcn.004b0dbb
call fcn.00485618
push eax
lea ecx, [ebp - 0x94]
call fcn.0048e2fb
and dword [ebp - 4], 0
call fcn.00485624
mov ecx, eax
call fcn.0048eb13
test al, al
je 0x4b0abb
push ebx
lea ecx, [ebp - 0x94]
call fcn.0048e58c
xor ebx, ebx
lea ecx, [ebp - 0x94]
push ebx
push 0x80
push 3
push ebx
push 1
push connect
call fcn.0048e533
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d0], eax
cmp eax, 0xffffffff
jne 0x4b0a1c
mov eax, str.Error_opening_file
jmp 0x4b0a95
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x4b0a31
mov eax, str.File_is_empty
jmp 0x4b0a95
cmp edi, 0x400000
jbe 0x4b0a40
mov eax, 0x519b84
jmp 0x4b0a95
push edi
mov dword [ebp - 0x3d4], ebx
call fcn.004d3b16
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 0x4b0a9c
push ebx
call fcn.004d3890
pop ecx
mov ecx, esi
call fcn.004b0dbb
mov eax, str.Could_not_read_file
xor ebx, ebx
push ebx
push eax
jmp 0x4b0b4a
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.004b0c78
push dword [ebp - 0x3d8]
mov bl, al
call fcn.004d3890
pop ecx
jmp 0x4b0c63
call fcn.00485624
push eax
lea ecx, [ebp - 0x94]
call fcn.0048e56f
call fcn.0048588d
test al, al
je 0x4b0ade
call fcn.0048562a
mov edi, eax
jmp 0x4b0b40
call fcn.00485630
push eax
lea ecx, [ebp - 0x19c]
call fcn.0048e2fb
push 0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.0048e533
push eax
call fcn.0048a840
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x94]
push ebx
call fcn.0048e533
push eax
call fcn.004923a3
mov edi, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4b0b2b
push ebx
call fcn.004d3890
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.0048e422
mov ebx, dword [ebp - 0x3d8]
test edi, edi
jne 0x4b0b58
push edi
push str.Error_opening_zip_file
mov ecx, esi
call fcn.004b0de6
mov bl, al
jmp 0x4b0c63
and dword [ebp - 0x3d4], 0
lea ecx, [ebp - 0x118]
push 0xffffffffffffffff
push ebx
call fcn.0048e320
push 0x513c84
push 0x513c88
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0048ecd1
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3d4]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0048e533
push eax
push edi
call fcn.00491d71
add esp, 0x14
test eax, eax
je 0x4b0bb6
mov eax, str.Could_not_find_ziped_file
jmp 0x4b0c1f
mov ebx, dword [ebp - 0x1a0]
test ebx, ebx
jne 0x4b0bc7
mov eax, str.File_is_empty
jmp 0x4b0c1f
cmp ebx, 0x400000
jbe 0x4b0bd6
mov eax, 0x519b84
jmp 0x4b0c1f
push ebx
call fcn.004d3b16
push ebx
push eax
push dword [ebp - 0x3d4]
mov dword [ebp - 0x3d0], eax
push edi
call fcn.004927f5
add esp, 0x14
test eax, eax
je 0x4b0c2d
cmp eax, 0x600
je 0x4b0c2d
push dword [ebp - 0x3d0]
call fcn.004d3890
pop ecx
call fcn.0048588d
test al, al
jne 0x4b0c1a
push edi
call fcn.00491b56
pop ecx
mov eax, str.Could_not_unzip_file
push 0
push eax
mov ecx, esi
call fcn.004b0de6
mov bl, al
jmp 0x4b0c58
call fcn.0048588d
test al, al
jne 0x4b0c3d
push edi
call fcn.00491b56
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x3d0]
mov ecx, esi
push ebx
push edi
call fcn.004b0c78
push edi
mov bl, al
call fcn.004d3890
pop ecx
lea ecx, [ebp - 0x118]
call fcn.0048e422
lea ecx, [ebp - 0x94]
call fcn.0048e422
mov al, bl
call fcn.004d47ef
ret 8