Function at 0x4ef7d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4efe12
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4ef822
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff6
mov byte [ebp - 0xd], 0
jmp 0x4efdef
mov esi, 0x19
push 0
push 0x200
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
call fcn.00405238
mov ebx, eax
mov eax, dword [0x507684]
mov edx, dword [ebp - 8]
add ebx, dword [eax + edx*4 + 0x5c]
push 0
push 0x200
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
call fcn.004052b4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, esi
mov eax, ecx
test eax, eax
jns 0x4ef86c
add eax, 0x1ff
sar eax, 9
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
and ecx, 0x800001ff
jns 0x4ef886
dec ecx
or ecx, 0xfffffe00
inc ecx
test ecx, ecx
jle 0x4ef89c
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add eax, 1
adc edx, 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
xor edx, edx
push ebp
push 0x4efdd8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
shl eax, 9
shr ebx, 0x17
mov dword [ebp - 0x1c], ebx
push 0
lea edx, [ebp - 0x1c]
push edx
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
jne 0x4ef8e4
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 0x4efdef
mov ebx, dword [ebp - 0x28]
shl ebx, 9
mov eax, ebx
call fcn.00402798
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x30]
mov eax, edi
xor ecx, ecx
mov edx, ebx
call fcn.00402e10
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4ef922
cmp ebx, dword [ebp - 0x14]
je 0x4ef93c
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 0x4efdef
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
add eax, edx
lea edx, [ebp - 0x56]
mov ecx, esi
call fcn.004029cc
mov dl, 1
mov eax, dword [0x41a8d0]
call fcn.00403454
mov dword [ebp - 0x38], eax
xor edx, edx
push ebp
push 0x4efdc7
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x60]
lea edx, [ebp - 0x56]
mov ecx, 5
call fcn.00404508
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.00408770
mov eax, dword [ebp - 0x5c]
mov edx, 0x4efe30
call fcn.004046a4
jne 0x4efda4
lea eax, [ebp - 0x64]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp + 0x1c]
call fcn.004047b8
mov eax, dword [ebp - 0x64]
call fcn.00408d64
mov ebx, eax
sub ebx, 0x7d0
lea eax, [ebp - 0x68]
push eax
mov ecx, 2
mov edx, 6
mov eax, dword [ebp + 0x1c]
call fcn.004047b8
mov eax, dword [ebp - 0x68]
call fcn.00408d64
mov byte [ebp - 0x31], al
lea eax, [ebp - 0x6c]
push eax
mov ecx, 2
mov edx, 9
mov eax, dword [ebp + 0x1c]
call fcn.004047b8
mov eax, dword [ebp - 0x6c]
call fcn.00408d64
mov byte [ebp - 0x32], al
lea eax, [ebp - 0x70]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp + 0x18]
call fcn.004047b8
mov eax, dword [ebp - 0x70]
call fcn.00408d64
mov byte [ebp - 0x33], al
lea eax, [ebp - 0x74]
push eax
mov ecx, 2
mov edx, 4
mov eax, dword [ebp + 0x18]
call fcn.004047b8
mov eax, dword [ebp - 0x74]
call fcn.00408d64
cmp bl, byte [ebp - 0x44]
jne 0x4efa69
mov dl, byte [ebp - 0x31]
cmp dl, byte [ebp - 0x43]
jne 0x4efa69
mov dl, byte [ebp - 0x32]
cmp dl, byte [ebp - 0x42]
jne 0x4efa69
mov dl, byte [ebp - 0x33]
cmp dl, byte [ebp - 0x41]
jne 0x4efa69
cmp al, byte [ebp - 0x40]
jne 0x4efa69
cmp word [ebp - 0x51], 0
ja 0x4efa6d
xor eax, eax
jmp 0x4efa6f
mov al, 1
test al, al
jne 0x4efa92
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff5
call fcn.00403cfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4efdef
mov ax, word [ebp - 0x4f]
cmp ax, 0x8000
jb 0x4efaaa
cmp word [ebp - 0x4d], 0x8000
jb 0x4efaaa
mov byte [ebp - 0x3d], 3
jmp 0x4efac8
cmp ax, 0x8000
jb 0x4efab6
mov byte [ebp - 0x3d], 1
jmp 0x4efac8
cmp word [ebp - 0x4d], 0x8000
jb 0x4efac4
mov byte [ebp - 0x3d], 2
jmp 0x4efac8
mov byte [ebp - 0x3d], 4
xor eax, eax
mov al, byte [ebp - 0x4b]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
movzx esi, word [ebp - 0x51]
push 0
push 0x200
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add eax, 0x19
adc edx, 0
sub eax, 1
sbb edx, 0
call fcn.00405238
mov ebx, eax
mov eax, dword [0x507684]
mov edx, dword [ebp - 8]
add ebx, dword [eax + edx*4 + 0x5c]
push 0
push 0x200
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add eax, 0x19
adc edx, 0
sub eax, 1
sbb edx, 0
call fcn.004052b4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, esi
mov eax, ecx
test eax, eax
jns 0x4efb33
add eax, 0x1ff
sar eax, 9
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
and ecx, 0x800001ff
jns 0x4efb4d
dec ecx
or ecx, 0xfffffe00
inc ecx
test ecx, ecx
jle 0x4efb63
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add eax, 1
adc edx, 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, ebx
shl eax, 9
shr ebx, 0x17
mov dword [ebp - 0x1c], ebx
push 0
lea edx, [ebp - 0x1c]
push edx
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
jne 0x4efba2
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff6
mov byte [ebp - 0xd], 0
call fcn.00403cfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4efdef
lea eax, [ebp - 0x3c]
mov edx, 0xf000
call fcn.004048e4
lea eax, [ebp - 0x3c]
call fcn.004047b0
xor ecx, ecx
mov edx, 0xf000
call fcn.00402e10
cmp dword [ebp - 0x24], 0
jne 0x4efbd2
cmp dword [ebp - 0x28], 0
seta al
jmp 0x4efbd5
setg al
mov byte [ebp - 0xd], al
jmp 0x4efc59
cmp dword [ebp - 0x24], 0
jne 0x4efbe8
cmp dword [ebp - 0x28], 0x78
jbe 0x4efbf1
jmp 0x4efbea
jle 0x4efbf1
mov ebx, 0x78
jmp 0x4efbf4
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, 0x78
sbb edx, 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, ebx
shl eax, 9
mov ebx, eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x3c]
call fcn.004047b0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4efc44
cmp ebx, dword [ebp - 0x14]
je 0x4efc44
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff6
jmp 0x4efc71
lea eax, [ebp - 0x3c]
call fcn.004047b0
mov edx, eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 0x24], 0
jne 0x4efc6b
cmp dword [ebp - 0x28], 0
ja 0x4efbda
jmp 0x4efc71
jg 0x4efbda
cmp byte [ebp - 0xd], 0
jne 0x4efc89
call fcn.00403cfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4efdef
mov eax, dword [ebp - 0x2c]
cdq
push edx
push eax
mov eax, dword [ebp - 0x38]
call fcn.0041ec74
mov eax, dword [0x5077d8]
cmp dword [eax], 9
jl 0x4efca7
movzx ebx, word [ebp - 0x51]
jmp 0x4efd18
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
movzx ebx, word [ebp - 0x51]
sub ebx, dword [ebp - 0x18]
sub ebx, 4
cmp ebx, 0x10000
jle 0x4efce8
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 0x4efdef
test ebx, ebx
jg 0x4efd05
movzx ebx, word [ebp - 0x51]
sub ebx, 4
mov edx, dword [ebp - 0x2c]
add edx, 4
xor ecx, ecx
mov eax, dword [ebp - 0x38]
mov esi, dword [eax]
call dword [esi + 0x14]
jmp 0x4efd18
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x18]
add edx, 4
xor ecx, ecx
mov eax, dword [ebp - 0x38]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, dword [ebp - 4]
mov esi, ebx
mov dword [eax + 0x18], esi
push esi
mov eax, dword [ebp - 4]
add eax, 0x14
mov ecx, 1
mov edx, dword [0x4edbd4]
call fcn.004057f8
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp byte [ebp - 0xd], 0
je 0x4efd95
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x14]
push ebx
mov eax, ebx
call fcn.00405644
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov cl, byte [ebp - 0x3d]
call fcn.004edaa4
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x4efdb1
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff5
jmp 0x4efdb1
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff6
jmp 0x4efdb1
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
push 0x4efdce
mov eax, dword [ebp - 0x38]
call fcn.00403484
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4efe19
lea eax, [ebp - 0x74]
mov edx, 7
call fcn.004042bc
lea eax, [ebp - 0x3c]
call fcn.00404298
ret