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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7c91
mov eax, dword fs:[0]
push eax
sub esp, 0x3c8
mov eax, dword [0x525060]
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.00484ae0
call fcn.004512b0
push eax
lea ecx, [ebp - 0x94]
call fcn.00457ae0
mov dword [ebp - 4], 0
call fcn.004512d0
mov ecx, eax
call fcn.00458660
test al, al
je 0x48475b
push ebx
lea ecx, [ebp - 0x94]
call fcn.00457e20
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea ecx, [ebp - 0x94]
call fcn.004583c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push 0
cmp ebx, 0xffffffff
jne 0x484696
push str.Error_opening_file
mov ecx, esi
call fcn.00484b20
mov bl, al
jmp 0x48493a
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x4846b7
push eax
push str.File_is_empty
mov ecx, esi
call fcn.00484b20
mov bl, al
jmp 0x48493a
cmp edi, 0x400000
jbe 0x4846d4
push 0
push 0x4fbd60
mov ecx, esi
call fcn.00484b20
mov bl, al
jmp 0x48493a
push edi
mov dword [ebp - 0x3d0], 0
call fcn.00412c3f
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 0x484739
mov edi, dword [ebp - 0x3d4]
push edi
call fcn.00412c3a
add esp, 4
mov ecx, esi
call fcn.00484ae0
push 0
push str.Could_not_read_file
mov ecx, esi
call fcn.00484b20
mov bl, al
jmp 0x48493a
push dword [ebp + 0xc]
mov ecx, esi
push edi
mov edi, dword [ebp - 0x3d4]
push edi
call fcn.00484970
push edi
mov bl, al
call fcn.00412c3a
add esp, 4
jmp 0x48493a
call fcn.004512d0
push eax
lea ecx, [ebp - 0x94]
call fcn.00457e00
call fcn.00451670
test al, al
je 0x48477e
call fcn.004512e0
mov edi, eax
jmp 0x4847e4
call fcn.004512f0
push eax
lea ecx, [ebp - 0x19c]
call fcn.00457ae0
push 0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.004583c0
push eax
call fcn.00485510
add esp, 8
lea ecx, [ebp - 0x94]
mov ebx, eax
push ebx
call fcn.004583c0
push eax
call fcn.00460870
add esp, 8
mov edi, eax
test ebx, ebx
je 0x4847cf
push ebx
call fcn.00412c3a
add esp, 4
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.00457c70
mov ebx, dword [ebp - 0x3d0]
test edi, edi
jne 0x4847fc
push edi
push str.Error_opening_zip_file
mov ecx, esi
call fcn.00484b20
mov bl, al
jmp 0x48493a
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3d4], 0
call fcn.00457b10
push 0x4f5da8
push 0x5141d0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.004588b0
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3d4]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.004583c0
push eax
push edi
call fcn.00460130
add esp, 0x14
test eax, eax
je 0x48486b
push 0
push str.Could_not_find_ziped_file
mov ecx, esi
call fcn.00484b20
mov bl, al
jmp 0x48492f
mov ebx, dword [ebp - 0x1a0]
test ebx, ebx
jne 0x484889
push ebx
push str.File_is_empty
mov ecx, esi
call fcn.00484b20
mov bl, al
jmp 0x48492f
cmp ebx, 0x400000
jbe 0x4848a6
push 0
push 0x4fbd60
mov ecx, esi
call fcn.00484b20
mov bl, al
jmp 0x48492f
push ebx
call fcn.00412c3f
push ebx
push eax
push dword [ebp - 0x3d4]
mov dword [ebp - 0x3d0], eax
push edi
call fcn.00460dc0
add esp, 0x14
test eax, eax
je 0x484900
cmp eax, 0x600
je 0x484900
push dword [ebp - 0x3d0]
call fcn.00412c3a
add esp, 4
call fcn.00451670
test al, al
jne 0x4848ee
push edi
call fcn.0045fe50
add esp, 4
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.00484b20
mov bl, al
jmp 0x48492f
call fcn.00451670
test al, al
jne 0x484912
push edi
call fcn.0045fe50
add esp, 4
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x3d0]
mov ecx, esi
push ebx
push edi
call fcn.00484970
push edi
mov bl, al
call fcn.00412c3a
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.00457c70
lea ecx, [ebp - 0x94]
call fcn.00457c70
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.00412614
mov esp, ebp
pop ebp
ret 8