Function at 0x10060f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e6f00
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x10144930]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x10061232
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x10061232
mov edi, dword [eax]
mov dword [ebp - 0x24], edi
cmp edi, esi
je 0x10061232
cmp dword [ebx + 0x2804], esi
jne 0x10060fbe
lea eax, [esi + 6]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x54], eax
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x10060ffd
push str.CreateEvent
call esi
mov ecx, eax
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
cmp edi, 0x1000
jle 0x10061077
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
xor edi, edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x24]
sub eax, edi
je 0x1006105e
cmp eax, 0x1000
mov dword [ebp - 0x18], 0x1000
jge 0x10061028
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
push esi
mov ecx, ebx
mov eax, dword [eax + 4]
call eax
test eax, eax
jne 0x1006104d
mov eax, dword [ebp - 0x18]
add edi, eax
mov dword [ebp - 0x28], edi
add esi, eax
mov dword [ebp - 0x2c], esi
jmp 0x10061010
mov dword [ebp - 0x30], eax
push 0x1012ac78
lea ecx, [ebp - 0x30]
push ecx
call fcn.100c80ad
test edi, edi
je 0x10061229
mov edx, dword [ebp + 0xc]
mov dword [edx], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x10061280
mov eax, dword [ebx]
mov ecx, ebx
mov edx, dword [eax + 0x24]
call edx
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1006109c
mov dword [ebp - 0x34], 0xaa
push 0x1012ac78
lea eax, [ebp - 0x34]
push eax
call fcn.100c80ad
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push edi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebx + 0x2804]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10061210
call esi
mov esi, eax
cmp esi, 0x26
je 0x100611fb
cmp esi, 0x3e5
je 0x1006113c
push 0x10120ee8
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
cmp esi, 0x57
jne 0x1006112b
push 0
mov edx, dword [ebp + 0xc]
push edx
push edi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebx + 0x2804]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006111b
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x10061280
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10120ee8
jmp 0x10061217
mov dword [ebp - 0x38], esi
push 0x1012ac78
lea edx, [ebp - 0x38]
push edx
call fcn.100c80ad
push 0x64
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 0x64
mov dword [ebp - 0x40], edi
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebx + 0x2804]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x10061229
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x26
je 0x100611e6
cmp esi, 0x3e4
je 0x100611a9
push 0x10120ec0
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x3c], esi
push 0x1012ac78
lea ecx, [ebp - 0x3c]
push ecx
call fcn.100c80ad
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x64
mov dword [ebp - 0x40], edi
mov eax, dword [ebp + 0x10]
cmp edi, eax
jbe 0x10061150
push eax
push str.Read_Time_Out__MAX_TIME____d_
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov dword [ebp - 0x44], 0x102
push 0x1012ac78
lea edx, [ebp - 0x44]
push edx
call fcn.100c80ad
mov dword [ebp - 0x48], 0
push 0x1012ac78
lea eax, [ebp - 0x48]
push eax
call fcn.100c80ad
mov dword [ebp - 0x4c], 0
push 0x1012ac78
lea ecx, [ebp - 0x4c]
push ecx
call fcn.100c80ad
call esi
push str.Read_Data
mov dword [ebp - 0x14], eax
mov ecx, eax
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x10061280
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x20], 0
je 0x1006128f
mov eax, dword [ebx]
mov ecx, ebx
mov edx, dword [eax + 0x28]
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc