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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506721
mov eax, dword fs:[0]
push eax
sub esp, 0x3c8
mov eax, dword [0x5655c8]
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 edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 0x3d0], ebx
test eax, eax
je 0x486a9b
push eax
call esi
add esp, 4
mov eax, dword [edi + 4]
test eax, eax
je 0x486aa8
push eax
call esi
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0044e360
push eax
lea ecx, [ebp - 0x94]
call fcn.004493e0
mov dword [ebp - 4], 0
call fcn.0044e380
mov ecx, eax
call fcn.0044a5e0
test al, al
je 0x486bd8
push ebx
lea ecx, [ebp - 0x94]
call fcn.00449bd0
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea ecx, [ebp - 0x94]
call fcn.004498e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x486b2b
push 0x63
push str.Error_opening_file
jmp 0x486c6c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x486b46
push 0x63
push str.File_is_empty
jmp 0x486c6c
cmp esi, 0x400000
jbe 0x486b5a
push 0x63
push str.File_too_large
jmp 0x486c6c
push esi
mov dword [ebp - 0x3d0], 0
call fcn.004fe383
add esp, 4
mov dword [ebp - 0x3d4], eax
lea ecx, [ebp - 0x3d0]
push 0
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d0], esi
je 0x486bb6
mov esi, dword [ebp - 0x3d4]
push esi
call fcn.004fe38c
add esp, 4
mov ecx, edi
call fcn.00486f90
push 0x63
push str.Could_not_read_file
jmp 0x486c6c
push dword [ebp + 0xc]
mov ecx, edi
push esi
mov esi, dword [ebp - 0x3d4]
push esi
call fcn.00486df0
push esi
mov bl, al
call fcn.004fe38c
add esp, 4
jmp 0x486dc5
call fcn.0044e380
push eax
lea ecx, [ebp - 0x94]
call fcn.00449b40
call fcn.0044e790
test al, al
je 0x486bfb
call fcn.0044e390
mov esi, eax
jmp 0x486c61
call fcn.0044e3a0
push eax
lea ecx, [ebp - 0x19c]
call fcn.004493e0
push 0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.0044a2d0
push eax
call fcn.00487a30
add esp, 8
lea ecx, [ebp - 0x94]
mov ebx, eax
push ebx
call fcn.0044a2d0
push eax
call fcn.00460f60
add esp, 8
mov esi, eax
test ebx, ebx
je 0x486c4c
push ebx
call fcn.004fe38c
add esp, 4
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.00449610
mov ebx, dword [ebp - 0x3d0]
test esi, esi
jne 0x486c92
push 0x63
push str.Error_opening_zip_file
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea eax, [edi + 0x10]
push eax
call esi
push 0x31
lea eax, [edi + 0xd8]
push 0x5190cc
push eax
call esi
add esp, 0x18
xor bl, bl
jmp 0x486dc5
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3d4], 0
call fcn.00449410
push 0x51bf94
push 0x51bf98
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0044a970
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3d4]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.004498e0
push eax
push esi
call fcn.00460550
add esp, 0x14
test eax, eax
je 0x486cf5
push 0x63
push str.Could_not_find_ziped_file
jmp 0x486d68
mov ebx, dword [ebp - 0x1a0]
test ebx, ebx
jne 0x486d08
push 0x63
push str.File_is_empty
jmp 0x486d68
cmp ebx, 0x400000
jbe 0x486d19
push 0x63
push str.File_too_large
jmp 0x486d68
push ebx
call fcn.004fe383
push ebx
push eax
push dword [ebp - 0x3d4]
mov dword [ebp - 0x3d0], eax
push esi
call fcn.004615d0
add esp, 0x14
test eax, eax
je 0x486d8b
cmp eax, 0x600
je 0x486d8b
push dword [ebp - 0x3d0]
call fcn.004fe38c
add esp, 4
call fcn.0044e790
test al, al
jne 0x486d61
push esi
call fcn.00460250
add esp, 4
push 0x63
push str.Could_not_unzip_file
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea eax, [edi + 0x10]
push eax
call esi
push 0x31
lea eax, [edi + 0xd8]
push 0x5190cc
push eax
call esi
add esp, 0x18
xor bl, bl
jmp 0x486dba
call fcn.0044e790
test al, al
jne 0x486d9d
push esi
call fcn.00460250
add esp, 4
push dword [ebp + 0xc]
mov esi, dword [ebp - 0x3d0]
mov ecx, edi
push ebx
push esi
call fcn.00486df0
push esi
mov bl, al
call fcn.004fe38c
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.00449610
lea ecx, [ebp - 0x94]
call fcn.00449610
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.004fdfc5
mov esp, ebp
pop ebp
ret 8