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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44032c
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x4570d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x44], 0
cmp ecx, 0xffffffff
jne 0x41a07b
push str.HECI_not_connected
lea ecx, [ebp - 0x5c]
call fcn.00419a20
push 0x454cbc
lea eax, [ebp - 0x5c]
push eax
call fcn.00423c96
mov eax, dword [edi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0xc]
movups xmmword [ebp - 0x70], xmm0
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41a0d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41a0d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x443890
lea ecx, [ebp - 0x3c]
call fcn.00408120
push 0x453ea8
lea eax, [ebp - 0x3c]
push eax
call fcn.00423c96
push dword [ebp + 0x18]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41a103
push str.HECI_send_timeout
lea ecx, [ebp - 0x5c]
call fcn.00402410
push 0x452ed0
lea eax, [ebp - 0x5c]
push eax
call fcn.00423c96
test eax, eax
je 0x41a115
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WaitForSingleObject_after_WriteFile
jmp 0x41a0bf
push 1
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41a13a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetOverlappedResult_from_WriteFile
jmp 0x41a0bf
push 1
lea ecx, [ebp - 0x128]
call fcn.00401f70
mov dword [eax + 0x60], 0x64
add eax, 0x10
push dword [ebp - 0x44]
mov dword [ebp - 4], 0
push str.Heci::SendMsg_WriteFile_bytesWritten
push eax
call fcn.00401240
add esp, 8
mov ecx, eax
call fcn.0040cb50
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004075e0
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406e20
mov ecx, esi
call fcn.00406690
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0xffffffff
call fcn.00402f40
push 1
lea ecx, [ebp - 0x128]
call fcn.00401f70
push dword [ebp + 0xc]
mov dword [eax + 0x60], 0x64
add eax, 0x10
push dword [ebp - 0x4c]
mov dword [ebp - 4], 1
push eax
call fcn.0040de90
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.00402f40
mov eax, dword [edi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x70], xmm0
test eax, eax
je 0x41a35d
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x41a35d
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push dword [edi + 8]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a24b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41a24b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x443920
jmp 0x41a0bf
push dword [ebp + 0x1c]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41a278
push str.HECI_recv_timeout
lea ecx, [ebp - 0x5c]
call fcn.00402410
push 0x452ed0
lea eax, [ebp - 0x5c]
jmp 0x41a0cf
test eax, eax
je 0x41a28d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WaitForSingleObject_after_ReadFile
jmp 0x41a0bf
push 1
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41a2b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetOverlappedResult_from_ReadFile
jmp 0x41a0bf
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x128]
push 1
mov dword [esi], eax
call fcn.00401f70
mov dword [eax + 0x60], 0x64
add eax, 0x10
push dword [ebp - 0x40]
mov dword [ebp - 4], 2
push str.Heci::SendMsg_ReadFile_bytesRead
push eax
call fcn.00401240
add esp, 8
mov ecx, eax
call fcn.0040cb50
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004075e0
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406e20
mov ecx, esi
call fcn.00406690
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0xffffffff
call fcn.00402f40
push 1
lea ecx, [ebp - 0x1e0]
call fcn.00401f70
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0x60], 0x64
add eax, 0x10
push dword [ebp - 0x40]
mov dword [ebp - 4], 3
push ecx
push eax
call fcn.0040de90
add esp, 0xc
lea ecx, [ebp - 0x1e0]
call fcn.00402f40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042199f
mov esp, ebp
pop ebp
ret 0x18