Function at 0x4ef298
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x24], ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ef7ad
push dword fs:[eax]
mov dword fs:[eax], esp
cmp esi, 0xffffffff
jne 0x4ef2e7
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff6
mov byte [ebp - 0xd], 0
jmp 0x4ef78a
xor edx, edx
push ebp
push 0x4ef773
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
jne 0x4ef330
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff6
mov byte [ebp - 0xd], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ef78a
mov ebx, 0x19
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x42]
push eax
push esi
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4ef355
cmp ebx, dword [ebp - 0x1c]
je 0x4ef36f
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff6
mov byte [ebp - 0xd], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ef78a
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x42]
mov ecx, 5
call fcn.00404508
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408770
mov eax, dword [ebp - 0x48]
mov edx, 0x4ef7c8
call fcn.004046a4
jne 0x4ef75c
lea eax, [ebp - 0x50]
push eax
mov ecx, 4
mov edx, 1
mov eax, edi
call fcn.004047b8
mov eax, dword [ebp - 0x50]
call fcn.00408d64
mov ebx, eax
sub ebx, 0x7d0
lea eax, [ebp - 0x54]
push eax
mov ecx, 2
mov edx, 6
mov eax, edi
call fcn.004047b8
mov eax, dword [ebp - 0x54]
call fcn.00408d64
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x58]
push eax
mov ecx, 2
mov edx, 9
mov eax, edi
call fcn.004047b8
mov eax, dword [ebp - 0x58]
call fcn.00408d64
mov byte [ebp - 0x1e], al
lea eax, [ebp - 0x5c]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp + 0x18]
call fcn.004047b8
mov eax, dword [ebp - 0x5c]
call fcn.00408d64
mov byte [ebp - 0x1f], al
lea eax, [ebp - 0x60]
push eax
mov ecx, 2
mov edx, 4
mov eax, dword [ebp + 0x18]
call fcn.004047b8
mov eax, dword [ebp - 0x60]
call fcn.00408d64
cmp bl, byte [ebp - 0x30]
jne 0x4ef46a
mov dl, byte [ebp - 0x1d]
cmp dl, byte [ebp - 0x2f]
jne 0x4ef46a
mov dl, byte [ebp - 0x1e]
cmp dl, byte [ebp - 0x2e]
jne 0x4ef46a
mov dl, byte [ebp - 0x1f]
cmp dl, byte [ebp - 0x2d]
jne 0x4ef46a
cmp al, byte [ebp - 0x2c]
jne 0x4ef46a
cmp word [ebp - 0x3d], 0
ja 0x4ef46e
xor eax, eax
jmp 0x4ef470
mov al, 1
test al, al
je 0x4ef74d
mov ax, word [ebp - 0x3b]
cmp ax, 0x8000
jb 0x4ef490
cmp word [ebp - 0x39], 0x8000
jb 0x4ef490
mov byte [ebp - 0x29], 3
jmp 0x4ef4ae
cmp ax, 0x8000
jb 0x4ef49c
mov byte [ebp - 0x29], 1
jmp 0x4ef4ae
cmp word [ebp - 0x39], 0x8000
jb 0x4ef4aa
mov byte [ebp - 0x29], 2
jmp 0x4ef4ae
mov byte [ebp - 0x29], 4
xor eax, eax
mov al, byte [ebp - 0x37]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add eax, 0x19
adc edx, 0
sub eax, 1
sbb edx, 0
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
jne 0x4ef4ff
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff6
mov byte [ebp - 0xd], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ef78a
lea eax, [ebp - 0x24]
mov edx, 0x10000
call fcn.004048e4
lea eax, [ebp - 0x24]
call fcn.004047b0
xor ecx, ecx
mov edx, 0x10000
call fcn.00402e10
movzx eax, word [ebp - 0x3d]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
setg byte [ebp - 0xd]
mov dl, 1
mov eax, dword [0x41a8d0]
call fcn.00403454
mov dword [ebp - 0x28], eax
xor edx, edx
push ebp
push 0x4ef6f0
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x18], 0
jle 0x4ef601
xor edx, edx
push ebp
push 0x4ef5d2
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x18], 0x10000
jle 0x4ef574
mov ebx, 0x10000
jmp 0x4ef577
mov ebx, dword [ebp - 0x18]
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x24]
call fcn.004047b0
push eax
push esi
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4ef5b3
cmp ebx, dword [ebp - 0x1c]
je 0x4ef5b3
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ef601
lea eax, [ebp - 0x24]
call fcn.004047b0
mov edx, eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ef5f0
sub dword [ebp - 0x18], 0x10000
cmp dword [ebp - 0x18], 0
jg 0x4ef556
cmp byte [ebp - 0xd], 0
jne 0x4ef619
call fcn.00403cfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ef78a
push 0
push 0
mov eax, dword [ebp - 0x28]
call fcn.0041ec74
mov eax, dword [0x5077d8]
cmp dword [eax], 9
jl 0x4ef635
movzx ebx, word [ebp - 0x3d]
jmp 0x4ef6a4
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ax, word [ebp - 0x3d]
movzx ebx, ax
sub ebx, dword [ebp - 0x14]
sub ebx, 4
cmp ebx, 0x10000
jle 0x4ef679
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff5
mov byte [ebp - 0xd], 0
call fcn.00403cfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ef78a
test ebx, ebx
jg 0x4ef694
movzx ebx, ax
sub ebx, 4
xor ecx, ecx
mov edx, 4
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
call dword [esi + 0x14]
jmp 0x4ef6a4
mov edx, dword [ebp - 0x14]
add edx, 4
xor ecx, ecx
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, dword [ebp - 0xc]
mov esi, ebx
mov dword [eax + 0x18], esi
push esi
mov eax, dword [ebp - 0xc]
add eax, 0x14
mov ecx, 1
mov edx, dword [0x4edbd4]
call fcn.004057f8
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef6f7
mov eax, dword [ebp - 0x28]
call fcn.00403484
ret
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff5
jmp 0x4ef769
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ef78a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef7b4
lea eax, [ebp - 0x60]
mov edx, 7
call fcn.004042bc
lea eax, [ebp - 0x24]
call fcn.00404298
ret