Function at 0x100092f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10033640
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x100426ec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [esi]
mov ebx, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], ebx
call eax
test al, al
jne 0x1000933b
xor eax, eax
jmp 0x100094e6
test ebx, ebx
je 0x10009334
cmp dword [ebp + 0xc], 0
je 0x10009334
lea eax, [esi + 0xa4]
xor edi, edi
push eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x90]
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 4], edi
push eax
push dword [esi + 0x64]
mov dword [ebp - 0x68], edi
call dword [sym.imp.KERNEL32.dll_WaitCommEvent]
mov ebx, eax
test ebx, ebx
jne 0x1000939d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1000939d
push dword [ebp + 0x10]
push dword [esi + 0xa0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x1c], xmm0
test ebx, ebx
je 0x100094bd
push dword [esi + 0xa0]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x100094a9
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100094d7
cmp dword [ebp + 0xc], eax
lea ebx, [esi + 0x68]
cmovb eax, dword [ebp + 0xc]
push ebx
lea ecx, [ebp - 0x54]
push ecx
push eax
push dword [ebp - 0x60]
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10009492
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.10006380
test al, al
je 0x10009460
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.1000e930
push eax
mov edx, str.GetLastError___
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.10009660
add esp, 4
sub esp, 8
mov ecx, esi
push eax
mov byte [ebp - 4], 2
call fcn.100063d0
lea ecx, [ebp - 0x50]
call fcn.10001910
lea ecx, [ebp - 0x38]
call fcn.10001910
cmp edi, 0x3e5
jne 0x100094b6
push 0
push dword [ebp + 0x10]
push dword [esi + 0x78]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x100094a5
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [esi + 0x78]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, dword [ebp - 0x54]
jmp 0x100094d7
xor edi, edi
jmp 0x100094d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x100094d7
mov edi, 0xfffffffe
jmp 0x100094d7
push 5
push dword [esi + 0xa0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xa0]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esi + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10018784
mov esp, ebp
pop ebp
ret 0xc