Function at 0x108c500
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf0
mov dword [ebp - 0x1c], 8
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x58], 0
jmp 0x108c55f
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x58], 8
jge 0x108c65b
mov eax, dword [ebp - 0x58]
push eax
push 0x10051f8
lea ecx, [ebp - 0xd8]
push ecx
call sub.ntdll.dll_swprintf
add esp, 0xc
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0x94], 0x18
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x88], 0x40
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
push 0
push 0
push 1
push 1
push 0
push 0x80
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x94]
push eax
push 0x80100080
mov ecx, dword [ebp - 0x58]
lea edx, [ebp + ecx*4 - 0x78]
push edx
call dword [sym.imp.ntdll.dll_ZwCreateFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x108c60a
jmp 0x108c65b
mov dword [ebp - 0x8c], 0
push 0
push 1
lea eax, [ebp - 0x94]
push eax
push 0x1f0003
mov ecx, dword [ebp - 0x58]
lea edx, [ebp + ecx*4 - 0x40]
push edx
call dword [sym.imp.ntdll.dll_ZwCreateEvent]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x108c656
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + eax*4 - 0x78]
push ecx
call dword [sym.imp.ntdll.dll_ZwClose]
mov edx, dword [ebp - 0x58]
mov dword [ebp + edx*4 - 0x78], 0
jmp 0x108c65b
jmp 0x108c556
cmp dword [ebp - 0x58], 0
jne 0x108c668
xor eax, eax
jmp 0x108c7ca
mov dword [ebp - 0xdc], 0
jmp 0x108c683
mov eax, dword [ebp - 0xdc]
add eax, 1
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
cmp ecx, dword [ebp - 0x58]
jge 0x108c6da
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
push 0
lea edx, [ebp - 0xe8]
push edx
push 0xc
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
mov edx, dword [ebp - 0xdc]
mov eax, dword [ebp + edx*4 - 0x40]
push eax
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ebp + ecx*4 - 0x78]
push edx
call dword [sym.imp.ntdll.dll_ZwReadFile]
mov dword [ebp - 0x20], eax
jmp 0x108c674
mov dword [ebp - 0x7c], 0
cmp dword [ebp + 8], 0
jl 0x108c6fb
mov dword [ebp - 0x18], 0xff676980
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x108c716
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
sub edx, dword [ebp - 0xc]
push edx
call dword [ebp + 0xc]
mov eax, dword [ebp - 0x7c]
push eax
push 0
push 1
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.ntdll.dll_ZwWaitForMultipleObjects]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x20], 0x102
jne 0x108c749
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jle 0x108c702
mov dword [ebp - 0xec], 0
jmp 0x108c764
mov edx, dword [ebp - 0xec]
add edx, 1
mov dword [ebp - 0xec], edx
mov eax, dword [ebp - 0xec]
cmp eax, dword [ebp - 0x58]
jge 0x108c793
mov ecx, dword [ebp - 0xec]
mov edx, dword [ebp + ecx*4 - 0x78]
push edx
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [ebp - 0xec]
mov ecx, dword [ebp + eax*4 - 0x40]
push ecx
call dword [sym.imp.ntdll.dll_ZwClose]
jmp 0x108c755
cmp dword [ebp - 0x20], 0x102
jne 0x108c7a0
xor eax, eax
jmp 0x108c7ca
cmp dword [ebp - 0x20], 0
jl 0x108c7ba
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x58]
jge 0x108c7ba
mov dword [ebp - 0xf0], 1
jmp 0x108c7c4
mov dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0xf0]
mov esp, ebp
pop ebp
ret 0xc