Function at 0x41cd78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x50
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
and eax, 1
test eax, eax
je 0x41cdc7
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov dword [ebp - 0x10], eax
jmp 0x41cdce
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
and eax, 4
test eax, eax
je 0x41cde4
mov dword [ebp - 0x18], 1
jmp 0x41cdeb
mov dword [ebp - 0x18], 0x1000
cmp dword [ebp - 0xc], 0
je 0x41ce15
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x1c]
lea esi, [eax + 0x101c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
lea ebx, [eax + 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
sub esp, 0x14
test eax, eax
setne al
mov byte [ebp - 0x11], al
movzx eax, byte [ebp - 0x11]
xor eax, 1
test al, al
je 0x41ce73
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1020], edx
jmp 0x41ce80
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1020], 0
cmp dword [ebp - 0xc], 0
je 0x41cf26
movzx eax, byte [ebp - 0x11]
xor eax, 1
test al, al
je 0x41cf26
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1020]
cmp eax, 0x3e5
jne 0x41cf26
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 0x101c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
call eax
sub esp, 0x10
test eax, eax
setne al
mov byte [ebp - 0x11], al
movzx eax, byte [ebp - 0x11]
xor eax, 1
test al, al
je 0x41cf19
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1020], edx
jmp 0x41cf26
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1020], 0
movzx eax, byte [ebp - 0x11]
xor eax, 1
test al, al
je 0x41cf59
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1020]
cmp eax, 0x6d
jne 0x41cf4c
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1020], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x101c], 0
cmp byte [ebp - 0x11], 0
je 0x41cf79
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x101c]
test eax, eax
jne 0x41cf79
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
and eax, 2
test eax, eax
jne 0x41cfd8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x101c]
test eax, eax
sete al
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [esp], eax
call sym._add_to_ready_list
cmp byte [ebp - 0x1d], 0
jne 0x41cfde
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x11]
test al, al
je 0x41cdeb
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [esp], eax
call sym._add_to_ready_list
jmp 0x41cfdf
nop
jmp 0x41cdeb
nop
cmp dword [ebp - 0xc], 0
je 0x41cff5
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4