Function at 0x41f7c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
lea edi, [ebp - 0x100]
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x42c050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 1
mov word [ebp - 0xc], ax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x2d], 0
mov eax, dword [str.s]
add eax, 6
push eax
push str.BeginOverlappedInternal
push 0x424720
push str.TEELIB:___s:_s__:_d_
call fcn.0041fcf0
add esp, 0x10
push str.Entry_n
call fcn.0041fcf0
add esp, 4
cmp dword [ebp + 0xc], 0xffffffff
je 0x41f848
cmp dword [ebp + 0x10], 0
je 0x41f848
cmp dword [ebp + 0x14], 0
je 0x41f848
cmp dword [ebp + 0x18], 0
jne 0x41f883
mov eax, 4
mov word [ebp - 0xc], ax
mov eax, dword [str.s]
add eax, 0xa
push eax
push str.BeginOverlappedInternal
push 0x424720
push str.TEELIB:___s:_s__:_d_
call fcn.0041fcf0
add esp, 0x10
push str.One_of_the_parameters_was_illegal
call fcn.0041fcf0
add esp, 4
jmp 0x41fa74
mov esi, esp
push 0x14
push 8
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.0041dace
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.0041dace
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41f8fa
mov eax, 1
mov word [ebp - 0xc], ax
mov eax, dword [str.s]
add eax, 0x12
push eax
push str.BeginOverlappedInternal
push 0x424720
push str.TEELIB:___s:_s__:_d_
call fcn.0041fcf0
add esp, 0x10
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0041dace
push eax
push str.Error_in_MALLOC__error:__d_n
call fcn.0041fcf0
add esp, 8
jmp 0x41fa74
mov esi, esp
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp esi, esp
call fcn.0041dace
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 0
jne 0x41f96b
mov eax, 1
mov word [ebp - 0xc], ax
mov eax, dword [str.s]
add eax, 0x19
push eax
push str.BeginOverlappedInternal
push 0x424720
push str.TEELIB:___s:_s__:_d_
call fcn.0041fcf0
add esp, 0x10
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0041dace
push eax
push str.Error_in_CreateEvent__error:__d_n
call fcn.0041fcf0
add esp, 8
jmp 0x41fa74
cmp dword [ebp + 8], 0
jne 0x41f99e
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.0041dace
test eax, eax
je 0x41f99c
mov byte [ebp - 0x2d], 1
jmp 0x41f9cf
cmp dword [ebp + 8], 1
jne 0x41f9cf
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.0041dace
test eax, eax
je 0x41f9cf
mov byte [ebp - 0x2d], 1
movzx eax, byte [ebp - 0x2d]
test eax, eax
jne 0x41fa6e
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0041dace
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x3e5
je 0x41fa39
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004209a0
add esp, 4
mov word [ebp - 0xc], ax
mov eax, dword [str.s]
add eax, 0x2e
push eax
push str.BeginOverlappedInternal
push 0x424720
push str.TEELIB:___s:_s__:_d_
call fcn.0041fcf0
add esp, 0x10
mov eax, dword [ebp - 0x3c]
push eax
push str.Error_in_ReadFile_Write__error:__d_n
call fcn.0041fcf0
add esp, 8
jmp 0x41fa6c
mov eax, dword [str.s]
add eax, 0x31
push eax
push str.BeginOverlappedInternal
push 0x424720
push str.TEELIB:___s:_s__:_d_
call fcn.0041fcf0
add esp, 0x10
push str.Pending_in_ReadFile_Write
call fcn.0041fcf0
add esp, 4
xor eax, eax
mov word [ebp - 0xc], ax
jmp 0x41fa74
xor eax, eax
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0xc]
test eax, eax
je 0x41fad5
cmp dword [ebp - 0x18], 0
je 0x41fad3
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 0
je 0x41faa1
mov esi, esp
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.0041dace
cmp dword [ebp - 0x18], 0
je 0x41fad3
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
push 0
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.0041dace
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.0041dace
mov dword [ebp - 0x18], 0
jmp 0x41fadd
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [str.s]
add eax, 0x46
push eax
push str.BeginOverlappedInternal
push 0x424720
push str.TEELIB:___s:_s__:_d_
call fcn.0041fcf0
add esp, 0x10
movzx eax, word [ebp - 0xc]
push eax
push str.Exit_with_status:__d_n
call fcn.0041fcf0
add esp, 8
mov ax, word [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x41fb44]
call fcn.0041daf1
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d5b4
add esp, 0x100
cmp ebp, esp
call fcn.0041dace
mov esp, ebp
pop ebp
ret 0x14