Function at 0x4ef350
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x58
push ebx
push edi
mov edi, dword [esp + 0x64]
xor ebx, ebx
test edi, edi
jne 0x4ef36a
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0x58
ret
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0xc]
add eax, ecx
mov ecx, dword [edi]
push 0
push eax
push ecx
call sub.msvcrt.dll_fseek
add esp, 0xc
test eax, eax
je 0x4ef389
or ebx, 0xffffffff
jmp 0x4ef3b1
mov eax, dword [edi]
lea edx, [esp + 8]
push edx
push eax
call fcn.004ef110
add esp, 8
test eax, eax
je 0x4ef3a2
or ebx, 0xffffffff
jmp 0x4ef3b1
cmp dword [esp + 8], 0x2014b50
je 0x4ef3b1
mov ebx, 0xffffff99
mov edx, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.004ef080
add esp, 8
test eax, eax
je 0x4ef3c8
or ebx, 0xffffffff
mov ecx, dword [edi]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.004ef080
add esp, 8
test eax, eax
je 0x4ef3df
or ebx, 0xffffffff
mov eax, dword [edi]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.004ef080
add esp, 8
test eax, eax
je 0x4ef3f6
or ebx, 0xffffffff
mov edx, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.004ef080
add esp, 8
test eax, eax
je 0x4ef40d
or ebx, 0xffffffff
mov ecx, dword [edi]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.004ef110
add esp, 8
test eax, eax
je 0x4ef424
or ebx, 0xffffffff
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x48]
push edx
push eax
call fcn.004ef6a0
mov edx, dword [edi]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.004ef110
add esp, 0x10
test eax, eax
je 0x4ef44a
or ebx, 0xffffffff
mov ecx, dword [edi]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.004ef110
add esp, 8
test eax, eax
je 0x4ef461
or ebx, 0xffffffff
mov eax, dword [edi]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.004ef110
add esp, 8
test eax, eax
je 0x4ef478
or ebx, 0xffffffff
mov edx, dword [edi]
lea ecx, [esp + 0x30]
push ecx
push edx
call fcn.004ef080
add esp, 8
test eax, eax
je 0x4ef48f
or ebx, 0xffffffff
mov ecx, dword [edi]
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.004ef080
add esp, 8
test eax, eax
je 0x4ef4a6
or ebx, 0xffffffff
mov eax, dword [edi]
lea edx, [esp + 0x38]
push edx
push eax
call fcn.004ef080
add esp, 8
test eax, eax
je 0x4ef4bd
or ebx, 0xffffffff
mov edx, dword [edi]
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.004ef080
add esp, 8
test eax, eax
je 0x4ef4d4
or ebx, 0xffffffff
mov ecx, dword [edi]
lea eax, [esp + 0x40]
push eax
push ecx
call fcn.004ef080
add esp, 8
test eax, eax
je 0x4ef4eb
or ebx, 0xffffffff
mov eax, dword [edi]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.004ef110
add esp, 8
test eax, eax
je 0x4ef502
or ebx, 0xffffffff
mov edx, dword [edi]
lea ecx, [esp + 0xc]
push ecx
push edx
call fcn.004ef110
add esp, 8
test eax, eax
je 0x4ef519
or ebx, 0xffffffff
mov eax, dword [esp + 0x30]
push ebp
test ebx, ebx
push esi
mov ebp, eax
jne 0x4ef5e0
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x4ef56b
mov edx, dword [esp + 0x7c]
cmp eax, edx
jae 0x4ef544
mov byte [eax + ecx], bl
mov eax, dword [esp + 0x38]
mov esi, eax
jmp 0x4ef546
mov esi, edx
test eax, eax
jbe 0x4ef565
test edx, edx
jbe 0x4ef565
mov eax, dword [edi]
push eax
push 1
push esi
push ecx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 1
je 0x4ef565
or ebx, 0xffffffff
sub ebp, esi
test ebx, ebx
jne 0x4ef5e0
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4ef5e0
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x84]
cmp eax, edi
mov esi, eax
jb 0x4ef589
mov esi, edi
test ebp, ebp
je 0x4ef5ae
mov ecx, dword [esp + 0x6c]
push 1
push ebp
mov edx, dword [ecx]
push edx
call sub.msvcrt.dll_fseek
add esp, 0xc
test eax, eax
jne 0x4ef5a7
xor ebp, ebp
jmp 0x4ef5aa
or ebx, 0xffffffff
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x4ef5dc
test edi, edi
jbe 0x4ef5dc
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x80]
mov ecx, dword [eax]
push ecx
push 1
push esi
push edx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 1
je 0x4ef5d8
or ebx, 0xffffffff
mov eax, dword [esp + 0x3c]
sub eax, esi
jmp 0x4ef5e4
mov eax, dword [esp + 0x3c]
add ebp, eax
test ebx, ebx
jne 0x4ef689
mov edi, dword [esp + 0x88]
test edi, edi
je 0x4ef668
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x8c]
cmp eax, esi
jae 0x4ef60f
mov byte [eax + edi], bl
mov esi, dword [esp + 0x40]
test ebp, ebp
je 0x4ef62c
mov eax, dword [esp + 0x6c]
push 1
push ebp
mov ecx, dword [eax]
push ecx
call sub.msvcrt.dll_fseek
add esp, 0xc
test eax, eax
je 0x4ef62c
or ebx, 0xffffffff
mov eax, dword [esp + 0x40]
test eax, eax
jbe 0x4ef664
mov eax, dword [esp + 0x8c]
test eax, eax
jbe 0x4ef664
mov edx, dword [esp + 0x6c]
mov eax, dword [edx]
push eax
push 1
push esi
push edi
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 1
je 0x4ef664
or ebx, 0xffffffff
pop esi
pop ebp
mov eax, ebx
pop edi
pop ebx
add esp, 0x58
ret
test ebx, ebx
jne 0x4ef689
mov edi, dword [esp + 0x70]
test edi, edi
je 0x4ef67b
mov ecx, 0x14
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4ef689
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
pop esi
pop ebp
mov eax, ebx
pop edi
pop ebx
add esp, 0x58
ret