Function at 0x41c1a0
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 [0x42a038]
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 0x422740
push str.TEELIB:___s:_s__:_d_
call fcn.0041c6d0
add esp, 0x10
push str.Entry_n
call fcn.0041c6d0
add esp, 4
cmp dword [ebp + 0xc], 0xffffffff
je 0x41c228
cmp dword [ebp + 0x10], 0
je 0x41c228
cmp dword [ebp + 0x14], 0
je 0x41c228
cmp dword [ebp + 0x18], 0
jne 0x41c263
mov eax, 4
mov word [ebp - 0xc], ax
mov eax, dword [str.s]
add eax, 0xa
push eax
push str.BeginOverlappedInternal
push 0x422740
push str.TEELIB:___s:_s__:_d_
call fcn.0041c6d0
add esp, 0x10
push str.One_of_the_parameters_was_illegal
call fcn.0041c6d0
add esp, 4
jmp 0x41c454
mov esi, esp
push 0x14
push 8
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.0041ddba
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.0041ddba
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41c2da
mov eax, 1
mov word [ebp - 0xc], ax
mov eax, dword [str.s]
add eax, 0x12
push eax
push str.BeginOverlappedInternal
push 0x422740
push str.TEELIB:___s:_s__:_d_
call fcn.0041c6d0
add esp, 0x10
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0041ddba
push eax
push str.Error_in_MALLOC__error:__d_n
call fcn.0041c6d0
add esp, 8
jmp 0x41c454
mov esi, esp
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp esi, esp
call fcn.0041ddba
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 0
jne 0x41c34b
mov eax, 1
mov word [ebp - 0xc], ax
mov eax, dword [str.s]
add eax, 0x19
push eax
push str.BeginOverlappedInternal
push 0x422740
push str.TEELIB:___s:_s__:_d_
call fcn.0041c6d0
add esp, 0x10
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0041ddba
push eax
push str.Error_in_CreateEvent__error:__d_n
call fcn.0041c6d0
add esp, 8
jmp 0x41c454
cmp dword [ebp + 8], 0
jne 0x41c37e
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.0041ddba
test eax, eax
je 0x41c37c
mov byte [ebp - 0x2d], 1
jmp 0x41c3af
cmp dword [ebp + 8], 1
jne 0x41c3af
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.0041ddba
test eax, eax
je 0x41c3af
mov byte [ebp - 0x2d], 1
movzx eax, byte [ebp - 0x2d]
test eax, eax
jne 0x41c44e
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0041ddba
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x3e5
je 0x41c419
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0041d380
add esp, 4
mov word [ebp - 0xc], ax
mov eax, dword [str.s]
add eax, 0x2e
push eax
push str.BeginOverlappedInternal
push 0x422740
push str.TEELIB:___s:_s__:_d_
call fcn.0041c6d0
add esp, 0x10
mov eax, dword [ebp - 0x3c]
push eax
push str.Error_in_ReadFile_Write__error:__d_n
call fcn.0041c6d0
add esp, 8
jmp 0x41c44c
mov eax, dword [str.s]
add eax, 0x31
push eax
push str.BeginOverlappedInternal
push 0x422740
push str.TEELIB:___s:_s__:_d_
call fcn.0041c6d0
add esp, 0x10
push str.Pending_in_ReadFile_Write
call fcn.0041c6d0
add esp, 4
xor eax, eax
mov word [ebp - 0xc], ax
jmp 0x41c454
xor eax, eax
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0xc]
test eax, eax
je 0x41c4b5
cmp dword [ebp - 0x18], 0
je 0x41c4b3
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 0
je 0x41c481
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.0041ddba
cmp dword [ebp - 0x18], 0
je 0x41c4b3
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.0041ddba
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.0041ddba
mov dword [ebp - 0x18], 0
jmp 0x41c4bd
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 0x422740
push str.TEELIB:___s:_s__:_d_
call fcn.0041c6d0
add esp, 0x10
movzx eax, word [ebp - 0xc]
push eax
push str.Exit_with_status:__d_n
call fcn.0041c6d0
add esp, 8
mov ax, word [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x41c524]
call fcn.0041dd62
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
add esp, 0x100
cmp ebp, esp
call fcn.0041ddba
mov esp, ebp
pop ebp
ret 0x14