Function at 0x4efbf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
jne 0x4efc1e
pop edi
pop esi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret 0xc
mov esi, dword [eax + 0x7c]
test esi, esi
jne 0x4efc34
pop edi
pop esi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret 0xc
cmp dword [esi], 0
jne 0x4efc48
pop edi
pop esi
pop ebp
mov eax, 0xffffff9c
pop ebx
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x4efc5c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x5c]
cmp ecx, eax
jbe 0x4efc70
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
test eax, eax
jbe 0x4efdbb
mov eax, dword [esi + 8]
test eax, eax
jne 0x4efcea
mov eax, dword [esi + 0x58]
test eax, eax
jbe 0x4efcea
mov edi, 0x4000
cmp eax, edi
jae 0x4efc98
mov edi, eax
test edi, edi
je 0x4efc50
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x60]
add ecx, eax
push 0
push ecx
push edx
call sub.msvcrt.dll_fseek
add esp, 0xc
test eax, eax
jne 0x4efdc9
mov eax, dword [esi + 0x60]
mov ecx, dword [esi]
push eax
push 1
push edi
push ecx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x4efdc9
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x58]
mov edx, dword [esi]
add ecx, edi
sub eax, edi
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x58], eax
mov dword [esi + 4], edx
mov dword [esi + 8], edi
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x4efd61
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 8]
cmp eax, edi
jae 0x4efcfd
mov edi, eax
xor eax, eax
test edi, edi
jbe 0x4efd14
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc eax
cmp eax, edi
jb 0x4efd03
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x50]
push edi
push edx
push eax
call fcn.004eecc0
mov ecx, dword [esi + 0x5c]
mov ebp, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
mov edx, dword [esi + 4]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 8]
sub ecx, edi
sub eax, edi
mov dword [esi + 0x5c], ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
sub ebp, edi
add ebx, edi
add edx, edi
add ecx, edi
add eax, edi
mov dword [esi + 0x14], ebp
mov dword [esi + 0x10], ebx
mov dword [esi + 4], edx
mov dword [esi + 0x18], ecx
mov dword [esp + 0x10], eax
jmp 0x4efda8
mov ebx, dword [esi + 0x18]
mov ebp, dword [esi + 0x10]
lea ecx, [esi + 4]
push 2
push ecx
call fcn.004f1240
mov edi, dword [esi + 0x18]
mov edx, dword [esi + 0x50]
sub edi, ebx
mov dword [esp + 0x14], eax
push edi
push ebp
push edx
call fcn.004eecc0
mov ebx, dword [esi + 0x5c]
mov dword [esi + 0x50], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
sub ebx, edi
add edx, edi
cmp eax, 1
mov dword [esi + 0x5c], ebx
mov dword [esp + 0x10], edx
je 0x4efdbb
test eax, eax
jne 0x4efdd6
mov eax, dword [esi + 0x14]
test eax, eax
ja 0x4efc7b
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4efdd6
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc