Function at 0x10eaf93
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x111127c]
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 [0x111124c]
mov ebx, 0x111124c
mov edi, 0x1011cac
cmp eax, ebx
je 0x10eafe1
test byte [eax + 0x1c], 1
je 0x10eafe1
cmp byte [eax + 0x19], 4
jb 0x10eafe1
push edi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
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.01025872
mov dword [ebp - 0x41c], eax
test eax, eax
jl 0x10eb2e9
push 0x10019e4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01040bdd
mov dword [ebp - 0x41c], eax
test eax, eax
jl 0x10eb2e9
jmp 0x10eb22e
cmp byte [ebp + 0xc], 0
je 0x10eb0c4
and dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0107e903
mov dword [ebp - 0x41c], eax
test eax, eax
jge 0x10eb26a
mov ecx, dword [0x111124c]
cmp ecx, ebx
je 0x10eb1fc
test byte [ecx + 0x1c], 1
je 0x10eb1d2
cmp byte [ecx + 0x19], 4
jb 0x10eb1d2
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x12
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
jmp 0x10eb1cc
cmp byte [ebp - 0x40d], 0
jne 0x10eb172
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 0x10eb13c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x111124c]
cmp ecx, ebx
je 0x10eb1fc
test byte [ecx + 0x1c], 1
je 0x10eb1d2
cmp byte [ecx + 0x19], 4
jb 0x10eb1d2
push eax
push dword [ebp - 0x420]
push edi
push 0x14
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
jmp 0x10eb1cc
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10eb16b
test byte [eax + 0x1c], 1
je 0x10eb16b
cmp byte [eax + 0x19], 4
jb 0x10eb16b
push dword [ebp - 0x414]
push dword [ebp - 0x420]
push edi
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
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 0x10eb295
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x111124c]
cmp ecx, ebx
je 0x10eb1fc
test byte [ecx + 0x1c], 1
je 0x10eb1d2
cmp byte [ecx + 0x19], 4
jb 0x10eb1d2
push eax
push dword [ebp - 0x418]
push edi
push 0x16
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0109ba57
mov ecx, dword [0x111124c]
cmp ecx, ebx
je 0x10eb1fc
test byte [ecx + 0x1c], 1
je 0x10eb1fc
cmp byte [ecx + 0x19], 4
jb 0x10eb1fc
push dword [ebp - 0x414]
push edi
push 0x18
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010189f6
mov ecx, dword [0x111124c]
mov eax, dword [ebp - 0x414]
cmp eax, dword [0x1111d30]
jae 0x10eb2c0
cmp eax, 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 [0x1112154], 0
je 0x10eb059
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10eb25e
test byte [eax + 0x1c], 1
je 0x10eb25e
cmp byte [eax + 0x19], 2
jb 0x10eb25e
push edi
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov dword [ebp - 0x41c], 0x80780075
jmp 0x10eb2e9
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10eb2e9
test byte [eax + 0x1c], 1
je 0x10eb2e9
cmp byte [eax + 0x19], 4
jb 0x10eb2e9
push dword [ebp - 0x414]
push edi
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x10eb2e9
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10eb2e9
test byte [eax + 0x1c], 1
je 0x10eb2e9
cmp byte [eax + 0x19], 4
jb 0x10eb2e9
push dword [ebp - 0x418]
push edi
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x10eb2e9
cmp ecx, ebx
je 0x10eb2df
test byte [ecx + 0x1c], 1
je 0x10eb2df
cmp byte [ecx + 0x19], 2
jb 0x10eb2df
push eax
push edi
push 0x19
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010189f6
mov dword [ebp - 0x41c], 0x8078004f
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10eb318
test byte [eax + 0x1c], 1
je 0x10eb318
cmp byte [eax + 0x19], 4
jb 0x10eb318
push edi
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 8