Function at 0x40da60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa010
call fcn.00429120
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa00c], ecx
mov dword [ebp - 0xa010], eax
test edi, edi
je 0x40dcb7
test ecx, ecx
je 0x40dcb7
test eax, eax
jne 0x40daab
test ebx, ebx
je 0x40daab
mov dword [ebx], eax
push esi
push 0xa000
lea eax, [ebp - 0xa004]
push 0
push eax
call fcn.0042b800
add esp, 0xc
mov dword [ebp - 0xa008], 0
cmp dword [edi + 4], 0
je 0x40dca1
mov esi, 0x64
cmp dword [ebp + 0x18], esi
cmovae esi, dword [ebp + 0x18]
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40db07
cmp eax, 0x102
mov esi, 0xffffff9c
mov ecx, 0xffffffeb
cmovne esi, ecx
jmp 0x40dc0e
cmp dword [edi], 0xffffffff
jne 0x40db16
mov esi, 0xffffffe2
jmp 0x40dc05
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0xa008]
push eax
push 0xa000
lea eax, [ebp - 0xa004]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40db4f
mov eax, dword [ebp - 0xa008]
mov esi, 0xffffffea
test eax, eax
cmovne esi, eax
jmp 0x40dc05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40db8c
sub eax, 0x6d
je 0x40db85
sub eax, 0x7b
je 0x40db85
sub eax, 1
je 0x40db7b
mov esi, 0xffffffe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40dc05
mov esi, 0xffffffe3
jmp 0x40dc05
mov esi, 0xffffffe4
jmp 0x40dc05
push esi
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40dbae
cmp eax, 0x102
mov esi, 0xffffff9c
mov ecx, 0xffffffe7
cmovne esi, ecx
jmp 0x40dc05
cmp dword [edi], 0xffffffff
jne 0x40dbba
mov esi, 0xffffffe2
jmp 0x40dc05
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
lea eax, [ebp - 0xa008]
push eax
lea eax, [edi + 0x10]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x40dbff
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x6d
je 0x40db85
sub eax, 0x7b
je 0x40db85
sub eax, 1
je 0x40db7b
mov esi, 0xffffffe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40dc05
mov esi, dword [ebp - 0xa008]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
js 0x40dca4
cmp esi, 0xc
jae 0x40dc31
pop esi
pop edi
mov eax, 0xffffffe6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xa00c]
add esi, 0xfffffff4
movq xmm0, qword [ebp - 0xa004]
mov eax, dword [ebp - 0x9ffc]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xa010]
test eax, eax
je 0x40dc8e
test ebx, ebx
je 0x40dc8e
cmp dword [ebx], esi
jae 0x40dc77
pop esi
pop edi
mov eax, 0xffffffe5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
mov dword [ebx], esi
test esi, esi
je 0x40dc8e
push esi
lea ecx, [ebp - 0x9ff8]
push ecx
push eax
call fcn.0042b280
add esp, 0xc
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
or esi, 0xffffffff
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop ebx
call fcn.00428a27
mov esp, ebp
pop ebp
ret