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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fc99
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4ac084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ecx + 0xc], eax
jbe 0x42f0ee
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], eax
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
cmp eax, dword [ecx + 0xc]
jae 0x42f102
push ebx
push 0x80
push 3
lea edx, [eax*4]
mov eax, dword [ecx + 8]
push ebx
push 7
push SysReAllocString
push dword [eax + edx]
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42eed9
call fcn.00409a70
test eax, eax
jne 0x42eefc
jmp 0x42eede
mov ebx, eax
mov dword [ebp - 0x3c], ebx
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x44], edi
cmp edi, 0xffffffff
jne 0x42ef0b
call fcn.00409a70
test eax, eax
jns 0x42ef08
mov dword [ebp - 4], 0xffffffff
jmp 0x42f0cd
mov edi, dword [ebp - 0x44]
call fcn.00403450
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x42f10c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
shrd edi, eax, 1
mov dword [ebp - 0x20], 0
shr eax, 1
add edi, 1
js 0x42f102
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x42ef66
push edi
lea ecx, [ebp - 0x18]
call fcn.00403880
mov esi, dword [ebp - 0x18]
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x44]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42efb2
call fcn.00409a70
test eax, eax
je 0x42efb2
push dword [esi - 8]
push esi
call fcn.0045ed24
add esp, 8
test eax, eax
js 0x42f102
cmp eax, dword [esi - 8]
jg 0x42f102
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov byte [ebp - 4], cl
jmp 0x42f0a8
cmp edi, 0xffffffff
jne 0x42efc5
push dword [esi - 8]
push esi
call fcn.0045ed24
add esp, 8
mov edi, eax
test edi, edi
js 0x42f102
cmp edi, dword [esi - 8]
jg 0x42f102
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ecx + 0xc]
jae 0x42f102
mov eax, dword [ecx + 8]
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00402e80
add eax, 0x10
add esp, 4
mov dword [ebp - 0x10], eax
push 2
push 0x495b64
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00409770
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.00409770
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
call fcn.0040d3f0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], eax
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x42f066
push edi
lea ecx, [eax + 8]
call fcn.00403ac0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x10], edx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 4], edx
mov dword [eax], 0
inc dword [ecx + 8]
mov edx, dword [ecx + 4]
test edx, edx
je 0x42f083
mov dword [edx], eax
jmp 0x42f085
mov dword [ecx], eax
mov dword [ecx + 4], eax
add edi, 0xfffffff0
mov byte [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42f0a4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42f0c0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x42f0db
push ebx
call esi
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ecx + 0xc]
jb 0x42ee92
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004039a0
push 0x80004005
call fcn.004039a0
int3