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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56dab9
mov eax, dword fs:[0]
push eax
sub esp, 0x3dc
mov eax, dword [0x5c324c]
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 [ebp + 8]
mov dword [ebp - 0x3d4], eax
mov eax, dword [edi]
test eax, eax
je 0x4a2dc8
push eax
call fcn.005214d0
add esp, 4
mov eax, dword [edi + 4]
test eax, eax
je 0x4a2dd8
push eax
call fcn.005214d0
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0048d6f0
mov ecx, eax
call fcn.0048b360
test al, al
je 0x4a2fe5
or ebx, 0xffffffff
call fcn.0048d7a0
push eax
lea ecx, [ebp - 0x2bc]
call fcn.0048a3c0
mov dword [ebp - 4], 0
call fcn.0048d6e0
push eax
lea ecx, [ebp - 0x238]
call fcn.0048a3c0
mov dword [ebp - 4], 1
lea esi, [ebp - 0x2bc]
push esi
lea ecx, [ebp - 0x1b4]
call fcn.0048a3c0
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 2
call fcn.0048b360
test al, al
jne 0x4a2e8d
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x1b4]
call fcn.0048a9a0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x1b4]
call fcn.00475810
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a2eae
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 1
call fcn.00420d30
add esi, 0x84
lea eax, [ebp - 0x1b4]
cmp esi, eax
jne 0x4a2e32
jmp 0x4a2eb9
lea ecx, [ebp - 0x1b4]
call fcn.00420d30
push fcn.00420d30
push 2
push 0x84
lea eax, [ebp - 0x2bc]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.00472b91
cmp ebx, 0xffffffff
jne 0x4a2f0a
push 0x63
push str.Error_opening_file
lea eax, [edi + 0x10]
push eax
call fcn.005217b3
push 0x31
lea eax, [edi + 0xd8]
push 0x5778f8
push eax
call fcn.005217b3
add esp, 0x18
xor al, al
jmp 0x4a32a5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3d4], eax
test eax, eax
jne 0x4a2f26
push 0x63
push str.File_is_empty
jmp 0x4a2ee4
cmp eax, 0x400000
jbe 0x4a2f36
push 0x63
push str.File_too_large
jmp 0x4a2ee4
lea esi, [eax + 8]
mov dword [ebp - 0x3d8], 0
push esi
call fcn.00472fa5
push esi
push 0
push eax
mov dword [ebp - 0x3d0], eax
call fcn.0051ce00
mov esi, dword [ebp - 0x3d4]
lea eax, [ebp - 0x3d8]
add esp, 0x10
push 0
push eax
push esi
push dword [ebp - 0x3d0]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d8], esi
je 0x4a2fcd
push dword [ebp - 0x3d0]
call fcn.00472fae
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x4a2fa4
push eax
call fcn.005214d0
add esp, 4
mov eax, dword [edi + 4]
test eax, eax
je 0x4a2fb4
push eax
call fcn.005214d0
add esp, 4
push 0x63
mov dword [edi], 0
mov dword [edi + 4], 0
push str.Could_not_read_file
jmp 0x4a2ee4
push dword [ebp + 0xc]
mov ecx, edi
push esi
mov esi, dword [ebp - 0x3d0]
push esi
call fcn.004a32d0
push esi
jmp 0x4a3299
mov dword [ebp - 0x3d0], 0
mov dword [ebp - 0x3dc], 0
call fcn.0048d8c0
test al, al
je 0x4a318e
mov dword [ebp - 0x3d8], 0xffffffff
call fcn.0048d7c0
mov dword [ebp - 0x3e8], eax
call fcn.0048d700
mov dword [ebp - 0x3e4], eax
lea esi, [ebp - 0x3e8]
nop dword [eax]
mov ebx, dword [esi]
test ebx, ebx
je 0x4a311c
push 0x218
lea eax, [ebp - 0x3cc]
push 0
push eax
call fcn.0051ce00
mov edx, dword [ebp - 0x3d4]
add esp, 0xc
mov ecx, edx
mov dword [ebp - 0x120], 0
xor eax, eax
mov dword [ebp - 0x11c], 7
mov word [ebp - 0x130], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x3e0], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a3080
sub ecx, dword [ebp - 0x3e0]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x130]
call fcn.0041cc50
lea eax, [ebp - 0x3cc]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x130]
push eax
push ebx
call fcn.00483dc0
mov edx, dword [ebp - 0x11c]
add esp, 0x10
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4a3118
mov ecx, dword [ebp - 0x130]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a3108
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a32c3
push edx
push ecx
call fcn.00472cbf
mov eax, dword [ebp - 0x3e0]
add esp, 8
test eax, eax
jne 0x4a3139
add esi, 4
lea eax, [ebp - 0x3e0]
cmp esi, eax
jne 0x4a3030
push 0x63
push str.Error_opening_zip_file
jmp 0x4a2ee4
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x3dc], eax
test eax, eax
je 0x4a2f1d
cmp eax, 0x400000
ja 0x4a2f2d
push eax
call fcn.00472fa5
push dword [ebp - 0x3dc]
mov dword [ebp - 0x3d0], eax
push eax
push dword [ebp - 0x3d8]
push ebx
call fcn.00483b10
add esp, 0x14
test eax, eax
jne 0x4a327d
push 0x63
push str.Could_not_unzip_file
jmp 0x4a2ee4
mov ebx, 0x80004005
call fcn.0048d7b0
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0048d7a0
mov ecx, eax
call fcn.0048a8b0
mov dword [ebp - 4], 4
call fcn.0048d6f0
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0048d6e0
mov ecx, eax
call fcn.0048a8b0
mov dword [ebp - 4], 5
lea esi, [ebp - 0x118]
nop dword [eax]
push esi
lea ecx, [ebp - 0x1b4]
call fcn.0048a3c0
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 6
call fcn.0048b360
test al, al
jne 0x4a322d
lea eax, [ebp - 0x3dc]
push eax
lea eax, [ebp - 0x3d0]
push eax
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x1b4]
call fcn.00475810
push eax
call fcn.00482790
mov ebx, eax
add esp, 0x10
test ebx, ebx
jns 0x4a324b
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 5
call fcn.00420d30
add esi, 0x84
lea eax, [ebp - 0x10]
cmp esi, eax
jne 0x4a31e0
jmp 0x4a3256
lea ecx, [ebp - 0x1b4]
call fcn.00420d30
push fcn.00420d30
push 2
push 0x84
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.00472b91
test ebx, ebx
js 0x4a3182
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp - 0x3dc]
push dword [ebp - 0x3d0]
call fcn.004a32d0
push dword [ebp - 0x3d0]
mov bl, al
call fcn.00472fae
mov al, bl
add esp, 4
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.00472b5d
mov esp, ebp
pop ebp
ret 8
call fcn.005213e9
int3