Function at 0x418ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43dc6c
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x4550d8]
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 0x418f5b
push str.HECI_not_connected
lea ecx, [ebp - 0x5c]
call fcn.00418910
push 0x4527e4
lea eax, [ebp - 0x5c]
push eax
call fcn.004225f6
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 0x418fb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x418fb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x441718
lea ecx, [ebp - 0x3c]
call fcn.004081d0
push 0x451b88
lea eax, [ebp - 0x3c]
push eax
call fcn.004225f6
push dword [ebp + 0x18]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x418fe3
push str.HECI_send_timeout
lea ecx, [ebp - 0x5c]
call fcn.00402410
push 0x450c8c
lea eax, [ebp - 0x5c]
push eax
call fcn.004225f6
test eax, eax
je 0x418ff5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WaitForSingleObject_after_WriteFile
jmp 0x418f9f
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 0x41901a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetOverlappedResult_from_WriteFile
jmp 0x418f9f
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.0040c9a0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.00407680
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406f10
mov ecx, esi
call fcn.00406780
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0xffffffff
call fcn.00402f60
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.0040dcc0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.00402f60
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 0x41923d
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x41923d
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 0x41912b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41912b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4417a8
jmp 0x418f9f
push dword [ebp + 0x1c]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x419158
push str.HECI_recv_timeout
lea ecx, [ebp - 0x5c]
call fcn.00402410
push 0x450c8c
lea eax, [ebp - 0x5c]
jmp 0x418faf
test eax, eax
je 0x41916d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WaitForSingleObject_after_ReadFile
jmp 0x418f9f
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 0x419195
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetOverlappedResult_from_ReadFile
jmp 0x418f9f
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.0040c9a0
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.00407680
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406f10
mov ecx, esi
call fcn.00406780
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0xffffffff
call fcn.00402f60
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.0040dcc0
add esp, 0xc
lea ecx, [ebp - 0x1e0]
call fcn.00402f60
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.004202ef
mov esp, ebp
pop ebp
ret 0x18