Function at 0x11ee6cc0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28
test eax, eax
push ebp
push esi
push edi
je 0x11ee6f04
cmp eax, 0xffffffff
je 0x11ee6f04
mov eax, dword [0x12134db8]
test eax, eax
je 0x11ee6f04
mov ebp, dword [0x12134dc4]
test ebp, ebp
je 0x11ee6f04
mov esi, dword [0x12134dc8]
test esi, esi
je 0x11ee6f04
mov edi, dword [0x12134dcc]
test edi, edi
je 0x11ee6f04
push ebx
push edi
xor ebx, ebx
mov dword [esp + 0x30], edi
call fcn.11e679bc
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x20], edx
je 0x11ee6efa
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, ebp
and ecx, 3
mov dword [esp + 0x18], 1
rep stosb byte es:[edi], al
xor eax, eax
cmp esi, 0x15
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
jb 0x11ee6eed
mov ebp, dword [edx + 0xc]
lea ecx, [ebp + 0x15]
cmp ecx, eax
mov dword [esp + 0x34], ecx
ja 0x11ee6eeb
test byte [edx], 1
jne 0x11ee6d92
mov eax, dword [esp + 0x18]
test eax, eax
je 0x11ee6e61
mov edi, dword [edx + 8]
mov eax, edi
sub eax, edi
jne 0x11ee6eeb
cmp dword [edx + 0x10], 1
je 0x11ee6da7
neg edi
cmp dword [esp + 0x24], edi
jne 0x11ee6db7
cmp dword [esp + 0x10], ebp
jae 0x11ee6e8b
cmp ebp, dword [esp + 0x2c]
ja 0x11ee6e75
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push 1
push ecx
push 0
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
xor edx, edx
test edi, edi
setl dl
dec edx
mov dword [esp + 0x30], eax
and edx, 0xfffffffe
add edx, 2
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x11ee6e47
mov eax, dword [esp + 0x40]
push esi
test eax, eax
je 0x11ee6e20
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push esi
push eax
push ebp
push ecx
push ebx
call fcn.11f2f1e0
add esp, 0x18
jmp 0x11ee6e32
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push ebp
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
cmp ebp, eax
je 0x11ee6e7f
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [edx]
test al, 1
je 0x11ee6eb2
test ebx, ebx
mov dword [esp + 0x18], 1
jne 0x11ee6eed
jmp 0x11ee6ecc
mov dword [esp + 0x14], 0
jmp 0x11ee6e5f
test esi, esi
je 0x11ee6e5b
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x11ee6e5f
mov ecx, dword [edx + 0xc]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jb 0x11ee6e5f
mov esi, dword [esp + 0x20]
lea edi, [edx + 0x14]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x11ee6e5f
mov ebx, 1
jmp 0x11ee6e61
test al, 2
je 0x11ee6ebc
mov dword [esp + 0x18], ebx
jmp 0x11ee6ecc
test al, 4
je 0x11ee6ecc
test ebx, ebx
mov dword [esp + 0x18], 1
jne 0x11ee6eed
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
sub eax, ecx
add edx, ecx
cmp eax, 0x15
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
jae 0x11ee6d6f
jmp 0x11ee6eed
xor ebx, ebx
mov ecx, dword [esp + 0x20]
push ecx
call fcn.11e679b1
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret