Function at 0x10eaebb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x420], esi
mov eax, dword [0x111024c]
mov ebx, 0x111024c
mov edi, 0x1011da4
cmp eax, ebx
je 0x10eaf09
test byte [eax + 0x1c], 1
je 0x10eaf09
cmp byte [eax + 0x19], 4
jb 0x10eaf09
push edi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
and dword [ebp - 0x414], 0
or dword [ebp - 0x418], 0xffffffff
push 0x200
lea eax, [ebp - 0x40c]
push 0
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x428], 0
add esp, 0xc
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x40d], 0
call fcn.010257dc
mov dword [ebp - 0x41c], eax
test eax, eax
jl 0x10eb218
push 0x10019e4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01040cf0
mov dword [ebp - 0x41c], eax
test eax, eax
jl 0x10eb218
jmp 0x10eb155
cmp byte [ebp + 0xc], 0
je 0x10eafec
and dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0107e9b5
mov dword [ebp - 0x41c], eax
test eax, eax
jge 0x10eb194
mov ecx, dword [0x111024c]
cmp ecx, ebx
je 0x10eb124
test byte [ecx + 0x1c], 1
je 0x10eb0fa
cmp byte [ecx + 0x19], 4
jb 0x10eb0fa
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
jmp 0x10eb0f4
cmp byte [ebp - 0x40d], 0
jne 0x10eb09a
push 0
push 0x2000080
push 3
push 0
push 7
push 0x80000000
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x418], eax
cmp eax, 0xffffffff
jne 0x10eb064
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x111024c]
cmp ecx, ebx
je 0x10eb124
test byte [ecx + 0x1c], 1
je 0x10eb0fa
cmp byte [ecx + 0x19], 4
jb 0x10eb0fa
push eax
push dword [ebp - 0x420]
push edi
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
jmp 0x10eb0f4
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10eb093
test byte [eax + 0x1c], 1
je 0x10eb093
cmp byte [eax + 0x19], 4
jb 0x10eb093
push dword [ebp - 0x414]
push dword [ebp - 0x420]
push edi
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov byte [ebp - 0x40d], 1
push 0
lea eax, [ebp - 0x428]
push eax
push 0x200
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10eb1bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x111024c]
cmp ecx, ebx
je 0x10eb124
test byte [ecx + 0x1c], 1
je 0x10eb0fa
cmp byte [ecx + 0x19], 4
jb 0x10eb0fa
push eax
push dword [ebp - 0x418]
push edi
push 0x15
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01083f04
mov ecx, dword [0x111024c]
cmp ecx, ebx
je 0x10eb124
test byte [ecx + 0x1c], 1
je 0x10eb124
cmp byte [ecx + 0x19], 4
jb 0x10eb124
push dword [ebp - 0x414]
push edi
push 0x17
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01019fa8
mov ecx, dword [0x111024c]
cmp dword [ebp - 0x414], 0x3c
jae 0x10eb1ea
cmp dword [ebp - 0x414], 0xa
sbb esi, esi
and esi, 0xfffffffd
add esi, 5
mov eax, esi
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 0x414], esi
cmp byte [0x1111154], 0
je 0x10eaf81
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10eb185
test byte [eax + 0x1c], 1
je 0x10eb185
cmp byte [eax + 0x19], 2
jb 0x10eb185
push edi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov dword [ebp - 0x41c], 0x80780075
jmp 0x10eb218
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10eb218
test byte [eax + 0x1c], 1
je 0x10eb218
cmp byte [eax + 0x19], 4
jb 0x10eb218
push dword [ebp - 0x414]
push edi
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x10eb218
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10eb218
test byte [eax + 0x1c], 1
je 0x10eb218
cmp byte [eax + 0x19], 4
jb 0x10eb218
push dword [ebp - 0x418]
push edi
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x10eb218
cmp ecx, ebx
je 0x10eb20e
test byte [ecx + 0x1c], 1
je 0x10eb20e
cmp byte [ecx + 0x19], 2
jb 0x10eb20e
push dword [ebp - 0x414]
push edi
push 0x18
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01019fa8
mov dword [ebp - 0x41c], 0x8078004f
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10eb247
test byte [eax + 0x1c], 1
je 0x10eb247
cmp byte [eax + 0x19], 4
jb 0x10eb247
push edi
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 8