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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x50
mov edx, dword [ecx]
mov esi, dword [eax + 0x10]
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x40], esi
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 4]
movzx ebx, word [edi]
mov dword [ebp - 0x34], esi
test eax, eax
jne 0x403580
lea esi, [edx + 0x12]
mov eax, edi
test bx, bx
je 0x403779
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x403410
sub eax, edi
mov dword [ebp - 0x3c], edx
add esi, eax
mov dword [ebp - 0x38], ecx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [eax], 0x57494e45
mov ebx, eax
mov dword [eax + 0xc], ecx
mov dword [eax + 4], esi
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x403448
sub eax, edi
sar eax, 1
add eax, 1
mov dword [ebx + 8], eax
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [ebx + eax + 0x10], cx
add eax, 2
test cx, cx
jne 0x403460
test edx, edx
jne 0x403670
mov edx, dword [ebp - 0x30]
mov esi, dword [ebx + 4]
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [edx + 0x24]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebx
mov eax, dword [edx + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x403540
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x4034f0
test byte [section..data], 2
jne 0x403750
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x40355b
mov eax, dword [0x40c06c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x24]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
cmp eax, 0x102
je 0x4037b5
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], edi
mov eax, dword [eax + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
sub esp, 0x10
test eax, eax
je 0x4034cf
nop
cmp esi, dword [ebp - 0x2c]
je 0x4035e8
test byte [section..data], 2
jne 0x403720
mov eax, 0x1d
mov edx, dword [ebp - 0x34]
xor esi, esi
mov dword [edx], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
or ecx, 0x80000000
test bx, bx
je 0x403710
mov esi, edi
lea esi, [esi]
add esi, 2
cmp word [esi], 0
jne 0x403598
sub esi, edi
lea edx, [esi + 2]
add esi, 0x14
mov dword [ebp - 0x38], 0x40ec26
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x3c], ecx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x40], edi
mov dword [eax], 0x57494e45
mov ebx, eax
mov edi, dword [ebp - 0x38]
mov dword [eax + 0xc], ecx
mov dword [eax + 4], esi
mov eax, 1
jmp 0x403458
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x4036e8
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x40368f
test byte [section..data], 2
je 0x4034dc
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.service_protocol_error___failed_to_read_pipe_r___d__count___ld__n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.process_send_command
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4034dc
mov eax, dword [ebx + 8]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x40]
lea eax, [ebx + eax*2 + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
jmp 0x403479
mov eax, dword [0x40c06c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x24]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
cmp eax, 0x102
je 0x4037f4
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], edi
mov eax, dword [eax + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
sub esp, 0x10
test eax, eax
je 0x40362b
lea esi, [esi]
mov edx, dword [ebp - 0x2c]
mov esi, 1
cmp edx, 4
je 0x403562
test byte [section..data], 2
jne 0x403784
mov eax, 0x1e
jmp 0x40355b
mov esi, 0x14
mov edx, 2
jmp 0x4035a9
mov dword [esp + 0xc], str.service_protocol_error___failed_to_write_pipe__n
mov dword [esp + 8], str.process_send_command
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x403556
mov dword [esp + 0xc], str.service_protocol_error___failed_to_write_pipe__n
mov dword [esp + 8], str.process_send_command
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4034dc
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x40]
jmp 0x4035b0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.service_protocol_error___failed_to_read_pipe_r___d__count___ld__n
mov dword [esp + 8], str.process_send_command
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x403706
test byte [section..data], 2
jne 0x4037ce
mov eax, dword [ebp - 0x34]
xor esi, esi
mov dword [eax], 0x41d
jmp 0x403562
mov dword [esp + 0xc], str.sending_command_timed_out_n
mov dword [esp + 8], str.process_send_command
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4037be
test byte [section..data], 2
je 0x4037be
mov dword [esp + 0xc], str.receiving_command_result_timed_out_n
mov dword [esp + 8], str.process_send_command
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4037be