Function at 0x411140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x411181
push 0x2007000c
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4113a1
cmp dword [ebp + 0xc], 0
jne 0x411198
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0x2007000c
xor eax, eax
jmp 0x4113a1
cmp dword [ebp + 0x10], 0
jne 0x4111af
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 0x2007000c
xor eax, eax
jmp 0x4113a1
cmp dword [ebp + 0x14], 0
jne 0x4111c6
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], 0x2007000c
xor eax, eax
jmp 0x4113a1
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1028], 0
je 0x4111e7
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1040], 0
jne 0x4111ee
xor eax, eax
jmp 0x4113a1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10a4], 0
jne 0x411211
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410c70
add esp, 4
test eax, eax
jne 0x411211
xor eax, eax
jmp 0x4113a1
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41123b
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov eax, 1
jmp 0x4113a1
push 0x14
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00401740
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x18], 0
je 0x411260
cmp dword [ebp + 0x18], 0x7530
jbe 0x411269
mov dword [ebp - 0x1c], 0xfa0
jmp 0x41126f
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4112a2
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
jmp 0x411388
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x3e5
jne 0x41135c
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41132e
push 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x411300
mov dword [ebp - 0x20], 1
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
jmp 0x41132c
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 0x2007000e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1044]
call edx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
jmp 0x41135a
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 0x2007000e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1044]
call edx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
jmp 0x411388
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 0x2007000e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1044]
call edx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
push edx
call fcn.00410c40
add esp, 4
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret