Function at 0x100185c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
inc ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
jbe 0x1001890
cmp dword [ebp + 0xc], esi
je 0x1001896
cmp dword [ebp + 0x10], 0x18
jb 0x1001896
cmp dword [ebp + 8], 0xffffffff
jne 0x10018c6
mov eax, dword [section..data]
cmp eax, section..data
je 0x10018bf
test byte [eax + 0x1c], 2
je 0x10018bf
push 0x10011a4
push 0x100113c
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001333
xor eax, eax
jmp 0x1001a7b
push esi
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebp - 0x10], edi
cmp edi, esi
jne 0x1001910
mov eax, dword [section..data]
cmp eax, section..data
je 0x10018bf
test byte [eax + 0x1c], 1
je 0x10018bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x10011a4
push 0x100113c
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001383
jmp 0x10018bf
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100197e
call ebx
cmp eax, 0x3e5
je 0x100197e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001976
test byte [eax + 0x1c], 1
je 0x1001976
call ebx
push eax
mov eax, dword [section..data]
push 0x10011a4
push 0x100113c
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001383
mov dword [ebp - 8], esi
jmp 0x1001a6e
mov edi, 0x10011a4
mov esi, 0x100113c
inc dword [ebp - 4]
push 1
push 0x1388
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x10019fa
mov eax, dword [section..data]
cmp eax, section..data
je 0x10019d6
test byte [eax + 0x1c], 2
je 0x10019d6
call ebx
push eax
push dword [ebp + 0x10]
mov eax, dword [section..data]
push dword [ebp - 4]
push edi
push esi
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010015cb
mov eax, dword [section..data]
cmp dword [ebp - 4], 5
jb 0x1001988
cmp eax, section..data
je 0x1001a3a
test byte [eax + 0x1c], 1
je 0x1001a3a
push edi
push esi
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001333
jmp 0x1001a3a
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1001a40
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001a3a
test byte [eax + 0x1c], 1
je 0x1001a3a
call ebx
push eax
mov eax, dword [section..data]
push edi
push esi
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001383
and dword [ebp - 8], 0
jmp 0x1001a6e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
test eax, eax
je 0x1001a4c
mov dword [eax], ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001a6e
test byte [eax + 0x1c], 2
je 0x1001a6e
push ecx
push edi
push esi
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001383
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
leave
ret 0x10