Function at 0x411a90
Capabilities:
Connect pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413507
mov eax, dword fs:[0]
push eax
sub esp, 0x900
mov eax, dword [0x87f03c]
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
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x22c], eax
mov dword [ebp - 0x8fc], eax
test eax, eax
jne 0x411be8
xorps xmm0, xmm0
mov dword [ebp - 0x830], eax
push 0x30
lea ecx, [ebp - 0x840]
mov dword [ebp - 0x82c], 0xf
movups xmmword [ebp - 0x840], xmm0
call fcn.00403290
movups xmm0, xmmword [str.Fatal:_failed_to_create_system_event_n]
mov edx, eax
mov dword [ebp - 0x830], 0x25
mov dword [ebp - 0x840], edx
mov dword [ebp - 0x82c], 0x2f
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x87b088]
movups xmmword [edx + 0x10], xmm0
mov ecx, dword [0x87b098]
mov dword [edx + 0x20], ecx
mov al, byte [0x87b09c]
mov byte [edx + 0x24], al
mov byte [edx + 0x25], 0
cmp dword [edi + 0x238], 0
mov dword [ebp - 4], 0
je 0x411baa
cmp dword [ebp - 0x82c], 0x10
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
push eax
push 0
call fcn.0040a180
push edx
push eax
call fcn.0040ad50
mov ecx, dword [edi + 0x238]
lea eax, [ebp - 0x840]
add esp, 0x10
cmp dword [ebp - 0x82c], 0x10
cmovae eax, dword [ebp - 0x840]
push dword [ebp - 0x830]
push eax
call fcn.00403340
mov ecx, dword [ebp - 0x82c]
cmp ecx, 0x10
jb 0x411db7
mov edx, dword [ebp - 0x840]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412444
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412444
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea eax, [ebp - 0x90c]
push eax
push dword [edi + 0x228]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x411cc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x411dd4
push 0x4e20
push dword [ebp - 0x8fc]
call esi
test eax, eax
je 0x411c9e
push eax
lea eax, [ebp - 0x8d0]
push eax
call fcn.00411a40
push eax
lea eax, [ebp - 0x8b8]
mov dword [ebp - 4], 1
push str.Warn:_waiting_for_pipe_connection_failed__result
push eax
call fcn.0040f7e0
push 0x87afd8
push eax
lea eax, [ebp - 0x8a0]
mov byte [ebp - 4], 2
push eax
call fcn.004011c0
add esp, 0x20
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00412620
lea ecx, [ebp - 0x8a0]
call fcn.004019f0
lea ecx, [ebp - 0x8b8]
call fcn.004019f0
lea ecx, [ebp - 0x8d0]
mov dword [ebp - 4], 0xffffffff
call fcn.004019f0
push 0
lea eax, [ebp - 0x8f8]
push eax
lea eax, [ebp - 0x90c]
push eax
push dword [edi + 0x228]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x411ddf
push dword [ebp - 0x8fc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x90c]
mov dword [ebp - 0x904], 0
push eax
lea eax, [ebp - 0x8f0]
mov dword [ebp - 0x900], 0
push eax
push dword [edi + 0x230]
push dword [edi + 0x224]
push dword [edi + 0x228]
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x411f38
push 0x4e20
push dword [ebp - 0x8fc]
call esi
test eax, eax
je 0x411f1c
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.0040fa10
add esp, 8
lea ecx, [ebp - 0x8e9]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x858]
call fcn.0040f720
lea eax, [ebp - 0x858]
mov dword [ebp - 4], 6
push eax
lea eax, [ebp - 0x8b8]
push str.Fatal:_pipe_write_failed__result:
push eax
call fcn.0040f7e0
push 0x87afd8
push eax
lea eax, [ebp - 0x8a0]
mov byte [ebp - 4], 7
push eax
call fcn.004011c0
add esp, 0x18
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.00412620
lea ecx, [ebp - 0x8a0]
call fcn.004019f0
lea ecx, [ebp - 0x8b8]
call fcn.004019f0
lea ecx, [ebp - 0x858]
call fcn.004019f0
xor al, al
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.0040e6c4
mov esp, ebp
pop ebp
ret
cmp eax, 0x217
je 0x411cc2
xorps xmm0, xmm0
mov dword [ebp - 0x830], 0
push 0x20
lea ecx, [ebp - 0x840]
mov dword [ebp - 0x82c], 0xf
movups xmmword [ebp - 0x840], xmm0
call fcn.00403290
movups xmm0, xmmword [str.Fatal:_failed_to_connect_pipe_n]
mov edx, eax
mov dword [ebp - 0x830], 0x1e
mov dword [ebp - 0x840], edx
mov dword [ebp - 0x82c], 0x1f
movups xmmword [edx], xmm0
movq xmm0, qword [0x87b0e4]
movq qword [edx + 0x10], xmm0
mov ecx, dword [0x87b0ec]
mov dword [edx + 0x18], ecx
mov ax, word [0x87b0f0]
mov word [edx + 0x1c], ax
mov byte [edx + 0x1e], 0
cmp dword [edi + 0x238], 0
mov dword [ebp - 4], 4
je 0x411eb0
cmp dword [ebp - 0x82c], 0x10
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
push eax
push 0
call fcn.0040a180
push edx
push eax
call fcn.0040ad50
mov ecx, dword [edi + 0x238]
lea eax, [ebp - 0x840]
add esp, 0x10
cmp dword [ebp - 0x82c], 0x10
cmovae eax, dword [ebp - 0x840]
push dword [ebp - 0x830]
push eax
call fcn.00403340
mov ecx, dword [ebp - 0x82c]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x411ef3
mov edx, dword [ebp - 0x840]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x411ee9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x411ee9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
lea eax, [ebp - 0x8a0]
push eax
call fcn.0040fc70
add esp, 4
push eax
mov ecx, edi
mov dword [ebp - 4], 5
call fcn.00412620
lea ecx, [ebp - 0x8a0]
jmp 0x411db2
push 0
lea eax, [ebp - 0x8f0]
push eax
lea eax, [ebp - 0x90c]
push eax
push dword [edi + 0x228]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [edi + 0x230]
cmp dword [ebp - 0x8f0], eax
je 0x412127
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.0040fa10
add esp, 8
lea ecx, [ebp - 0x8e9]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x8a0]
call fcn.0040f720
push dword [ebp - 0x8f0]
lea eax, [ebp - 0x82b]
mov dword [ebp - 4], 9
push eax
call fcn.0040fa10
add esp, 8
lea ecx, [ebp - 0x8e9]
push ecx
lea ecx, [ebp - 0x82b]
push ecx
push eax
lea ecx, [ebp - 0x8b8]
call fcn.0040f720
lea eax, [ebp - 0x8b8]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x8e8]
push str.Fatal:_failed_to_write_data__bytes_written
push eax
call fcn.0040f7e0
add esp, 0xc
push 0x11
push str.__bytes_expected
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00403340
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x870], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x860], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0x8d0]
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x8a0]
push eax
lea eax, [ebp - 0x870]
mov byte [ebp - 4], 0xc
push eax
push dword [ebp - 0x8f8]
call fcn.0040ddc0
push 2
push 0x87afd8
lea ecx, [ebp - 0x8d0]
mov byte [ebp - 4], 0xd
call fcn.00403340
xorps xmm0, xmm0
mov dword [ebp - 0x848], 0
movups xmmword [ebp - 0x858], xmm0
mov dword [ebp - 0x844], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x858], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x848], xmm0
mov dword [eax + 0x10], 0
mov ecx, edi
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x858]
push eax
mov byte [ebp - 4], 0xe
call fcn.00412620
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x844]
cmp ecx, 0x10
jb 0x4120ce
mov edx, dword [ebp - 0x858]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4120c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4120c4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
lea ecx, [ebp - 0x8d0]
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0xf
mov byte [ebp - 0x858], 0
call fcn.004019f0
lea ecx, [ebp - 0x870]
call fcn.004019f0
lea ecx, [ebp - 0x8e8]
call fcn.004019f0
lea ecx, [ebp - 0x8b8]
call fcn.004019f0
lea ecx, [ebp - 0x8a0]
mov dword [ebp - 4], 0xffffffff
call fcn.004019f0
lea eax, [ebp - 0x90c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x828]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x8f4]
mov dword [ebp - 0x18], eax
call fcn.0040fab0
test al, al
je 0x411db7
mov eax, dword [ebp - 0x8f4]
cmp eax, 2
je 0x4124ea
lea ecx, [ebp - 0x828]
add eax, ecx
lea ecx, [ebp - 0x8e9]
push ecx
push eax
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x888]
call fcn.0040f720
cmp dword [ebp - 0x874], 0x10
lea ecx, [ebp - 0x888]
mov esi, 7
mov dword [ebp - 4], 0xf
cmovae ecx, dword [ebp - 0x888]
mov edx, str.OUTPUT_
cmp dword [ebp - 0x878], esi
jb 0x412453
sub esi, 4
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4121d6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4121c0
cmp esi, 0xfffffffc
je 0x41220a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x412203
cmp esi, 0xfffffffd
je 0x41220a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x412203
cmp esi, 0xfffffffe
je 0x41220a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x412203
cmp esi, 0xffffffff
je 0x41220a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x41220a
sbb eax, eax
or eax, 1
jmp 0x41220c
xor eax, eax
test eax, eax
sete al
test al, al
je 0x412453
mov eax, dword [str.OUTPUT_]
xorps xmm0, xmm0
mov esi, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
movups xmmword [ebp - 0x870], xmm0
mov dword [ebp - 0x870], eax
mov ax, word [0x87b15c]
mov word [ebp - 0x86c], ax
mov al, byte [0x87b15e]
mov dword [ebp - 0x860], 7
mov dword [ebp - 0x85c], 0xf
mov byte [ebp - 0x86a], al
mov byte [ebp - 0x869], 0
mov eax, dword [ebp - 0x878]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 0
movups xmmword [ebp - 0x840], xmm0
cmp eax, 7
jb 0x41260c
add eax, 0xfffffff9
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x874], 0x10
lea eax, [ebp - 0x888]
cmovae eax, dword [ebp - 0x888]
push ecx
add eax, 7
lea ecx, [ebp - 0x840]
push eax
call fcn.00401290
cmp dword [ebp - 0x82c], 0x10
lea eax, [ebp - 0x840]
push dword [ebp - 0x830]
cmovae eax, dword [ebp - 0x840]
push eax
push esi
mov byte [ebp - 4], 0x11
call fcn.0040dc50
mov ecx, dword [ebp - 0x82c]
add esp, 0xc
mov byte [ebp - 4], 0x10
cmp ecx, 0x10
jb 0x41232d
mov edx, dword [ebp - 0x840]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412323
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412323
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 0xf
mov byte [ebp - 0x840], 0
mov byte [ebp - 4], 0xf
call fcn.004019f0
lea ecx, [ebp - 0x24]
call fcn.0040fab0
test al, al
je 0x4124df
lea ecx, [ebp - 0x888]
mov dword [ebp - 4], 0xffffffff
call fcn.004019f0
cmp dword [ebp - 0x8f4], 2
je 0x4124ea
xorps xmm0, xmm0
mov dword [ebp - 0x848], 0
push 0x30
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x844], 0xf
movups xmmword [ebp - 0x858], xmm0
call fcn.00403290
movups xmm0, xmmword [str.Fatal:_failed_to_read_confirmation_n]
mov edx, eax
mov dword [ebp - 0x848], 0x23
mov dword [ebp - 0x858], edx
mov dword [ebp - 0x844], 0x2f
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x87b1a4]
movups xmmword [edx + 0x10], xmm0
mov cx, word [0x87b1b4]
mov word [edx + 0x20], cx
mov al, byte [0x87b1b6]
mov byte [edx + 0x22], al
mov byte [edx + 0x23], 0
lea eax, [ebp - 0x858]
mov dword [ebp - 4], 0x14
push eax
mov ecx, edi
call fcn.00412620
mov ecx, dword [ebp - 0x844]
cmp ecx, 0x10
jb 0x411db7
mov edx, dword [ebp - 0x858]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412444
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412444
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
jmp 0x411db7
mov ecx, dword [ebp - 0x878]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 0x31
jb 0x412611
cmp dword [ebp - 0x874], 0x10
lea eax, [ebp - 0x888]
push ecx
cmovae eax, dword [ebp - 0x888]
lea ecx, [ebp - 0x8a0]
push eax
push 0x31
push str.Fatal:_failed_to_understand_pipe_response__data:
lea eax, [ebp - 0x888]
push eax
push dword [ebp - 0x8f8]
call fcn.004017e0
push 0x87afd8
lea eax, [ebp - 0x8a0]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x8e8]
push eax
call fcn.004011c0
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 0x13
call fcn.00412620
lea ecx, [ebp - 0x8e8]
call fcn.004019f0
lea ecx, [ebp - 0x8a0]
call fcn.004019f0
lea ecx, [ebp - 0x888]
jmp 0x411db2
push 2
lea eax, [ebp - 0x828]
push 0x87b1b8
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4125cf
xorps xmm0, xmm0
mov dword [ebp - 0x860], 0
push 0x30
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x85c], 0xf
movups xmmword [ebp - 0x870], xmm0
call fcn.00403290
movups xmm0, xmmword [str.Fatal:_failed_to_receive_confirmation_n]
mov edx, eax
mov dword [ebp - 0x860], 0x26
mov dword [ebp - 0x870], edx
mov dword [ebp - 0x85c], 0x2f
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x87b1cc]
movups xmmword [edx + 0x10], xmm0
mov ecx, dword [0x87b1dc]
mov dword [edx + 0x20], ecx
mov ax, word [0x87b1e0]
mov word [edx + 0x24], ax
mov byte [edx + 0x26], 0
lea eax, [ebp - 0x870]
mov dword [ebp - 4], 0x15
push eax
mov ecx, edi
call fcn.00412620
mov ecx, dword [ebp - 0x85c]
cmp ecx, 0x10
jb 0x411db7
mov edx, dword [ebp - 0x870]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412444
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412444
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push dword [edi + 0x228]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [edi + 0x228]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x22c]
mov dword [edi + 0x228], 0
call esi
mov dword [edi + 0x22c], 0
mov al, 1
jmp 0x411db9
call fcn.00403280
call fcn.00403260
int3