Function at 0x180014f30
Capabilities:
Create pipe
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x160
mov rax, qword [0x1800d72c0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xa0], rax
xor r14d, r14d
lea rdi, [0x18011e170]
mov qword [rsp + 0xa0], rdi
mov word [0x18011e170], 1
mov byte [0x18011e172], r14b
mov qword [0x18011e178], r14
xorps xmm0, xmm0
movdqa xmmword [0x18011e180], xmm0
movdqa xmmword [0x18011e190], xmm0
mov qword [0x18011e1a0], r14
mov dword [0x18011e1a8], r14d
movdqa xmmword [0x18011e1b0], xmm0
xorps xmm1, xmm1
movups xmmword [0x18011e1c0], xmm1
movups xmmword [0x18011e1d0], xmm1
movups xmmword [0x18011e1e0], xmm1
mov qword [0x18011e1f0], r14
lea edx, [r14 + 2]
lea rcx, [0x18011e1a8]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
nop
mov qword [0x18011e1f8], r14
xorps xmm0, xmm0
movdqa xmmword [0x18011e200], xmm0
mov rsi, 0xffffffffffffffff
mov qword [0x18011e210], rsi
movups xmmword [0x18011e218], xmm0
mov qword [0x18011e228], r14
mov qword [0x18011e230], 0xf
mov byte [0x18011e218], r14b
mov qword [0x18011e238], r14
mov qword [0x18011e240], r14
movups xmmword [0x18011e248], xmm0
mov qword [0x18011e258], r14
call qword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x180015474
mov qword [rsp + 0x130], r14
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1800bc204]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x130]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov dword [rsp + 0x30], eax
test eax, eax
je 0x1800150d3
lea rax, str.stdout_redirect_failed:_freopen_s_failed_with_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x30
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
call fcn.180017980
call qword [sym.imp.KERNEL32.dll_FreeConsole]
test eax, eax
je 0x18001547a
jmp 0x180015447
mov r9d, 0x100000
xor r8d, r8d
lea rdx, [0x18011e240]
lea rcx, [0x18011e238]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x18001547f
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov ecx, 0x20
call fcn.18008e160
mov rbx, rax
mov dword [rax], 1
mov dword [rax + 4], 2
xor eax, eax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r14
mov dword [rbx + 0x18], r14d
mov qword [rsp + 0x60], rbx
test rbx, rbx
je 0x180015135
lock inc dword [rbx]
mov qword [rsp + 0xb0], rbx
mov ecx, 0x10
call fcn.18008e160
mov qword [rsp + 0xb0], r14
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x180019b30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18001542f
lea rcx, [0x18011e248]
call fcn.180002570
cmp dword [0x18011e250], 0
jne 0x180015428
xorps xmm1, xmm1
movups xmmword [rsp + 0xe0], xmm1
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0x50], xmm1
movups xmmword [0x18011e248], xmm0
mov rax, qword [rsp + 0x60]
mov r8, r14
mov qword [rsp + 0x60], r14
mov rcx, qword [0x18011e258]
mov qword [0x18011e258], rax
mov ebx, 0xfffffffe
test rcx, rcx
je 0x180015218
mov eax, ebx
lock xadd dword [rcx + 4], eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x180015213
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x180015213
lea edx, [rbx + 0x22]
call fcn.18008e5e4
mov r8, qword [rsp + 0x60]
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x1800152a6
test r8, r8
je 0x180015235
mov rcx, r8
call fcn.180002340
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x180015243
lea ecx, [rax + 1]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rsp + 0x58], eax
jne 0x18001525b
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0xd0], xmm0
xor edx, edx
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x180015288
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xorps xmm0, xmm0
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0x50], xmm0
mov r8, qword [rsp + 0x60]
psrldq xmm0, 8
movd eax, xmm0
test r8, r8
je 0x1800152d2
lock xadd dword [r8 + 4], ebx
and ebx, 0xfffffffe
cmp ebx, 2
jne 0x1800152ce
lock xadd dword [r8], esi
cmp esi, 1
jne 0x1800152ce
lea edx, [rbx + 0x1e]
mov rcx, r8
call fcn.18008e5e4
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x180015428
mov edx, 0x4000
mov rcx, qword [0x18011e240]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18001539b
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r14
lea r8d, [rax + 0x2f]
lea rdx, str.stdout_redirect_failed:__open_osfhandle_failed
lea rcx, [rsp + 0x70]
call fcn.18000a900
nop
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.180003e30
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 0xf
jbe 0x180015376
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015371
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015371
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008e5e4
call qword [sym.imp.KERNEL32.dll_FreeConsole]
test eax, eax
je 0x180015484
mov rcx, qword [0x18011e258]
test rcx, rcx
je 0x180015396
call fcn.180002340
nop
jmp 0x180015447
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov edx, eax
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup2]
cmp eax, 0xffffffff
jne 0x18001541c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rcx, str.stdout_redirect_failed:__dup2_failed_with_
mov qword [rsp + 0x140], rcx
mov qword [rsp + 0x148], 0x2c
movaps xmm0, xmmword [rsp + 0x140]
movdqa xmmword [rsp + 0x70], xmm0
mov r8, rax
lea rdx, [rsp + 0x70]
call fcn.180017980
call qword [sym.imp.KERNEL32.dll_FreeConsole]
test eax, eax
je 0x180015489
mov rcx, qword [0x18011e258]
test rcx, rcx
je 0x18001541a
call fcn.180002340
nop
jmp 0x180015447
call qword [sym.imp.KERNEL32.dll_FreeConsole]
test eax, eax
je 0x18001548e
jmp 0x180015447
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x58], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rdi, [0x18011e170]
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.18008e020
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
call fcn.180014be0
nop
call fcn.180014be0
call fcn.180014be0
call fcn.180014be0
call fcn.180014be0
call fcn.180014be0
int3