Function at 0x460050
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf9ad
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4b0], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x478], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x474], 0
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x4a8], esi
mov dword [ebp - 0x4a0], ecx
je 0x46110b
cmp dword [eax + 0x10], 0
jne 0x4600f7
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x42c], 0xf
mov dword [ebp - 0x430], 0
mov byte [ebp - 0x440], 0
lea eax, [ebp - 0x440]
mov dword [ebp - 4], 0
mov ecx, 1
jmp 0x460118
push eax
lea eax, [ebp - 0x458]
push 0x4e84f4
push eax
call fcn.004554f0
add esp, 0xc
mov dword [ebp - 4], 1
mov ecx, 2
push eax
lea eax, [ebp - 0x470]
mov dword [ebp - 0x474], ecx
push esi
push eax
mov dword [ebp - 0x47c], ecx
call fcn.00455420
add esp, 0xc
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x47c]
test al, 2
je 0x460160
and eax, 0xfffffffd
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x47c], eax
call fcn.00403c80
mov eax, dword [ebp - 0x47c]
mov byte [ebp - 4], 4
test al, 1
je 0x4601c8
mov edx, dword [ebp - 0x42c]
and eax, 0xfffffffe
mov dword [ebp - 0x47c], eax
cmp edx, 0x10
jb 0x4601ad
mov ecx, dword [ebp - 0x440]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4601a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4601a3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c7626
add esp, 8
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], 0
cmp dword [ebp - 0x45c], 0x10
lea eax, [ebp - 0x470]
cmovae eax, dword [ebp - 0x470]
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x484]
push eax
call fcn.00467600
add esp, 4
mov ecx, dword [ebp - 0x484]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x460212
lea eax, [ebp - 0x474]
push eax
push str.PROCESS:_starting__s..._n
push 1
call fcn.00425d20
mov esi, dword [ebp - 0x480]
or edi, 0xffffffff
test esi, esi
je 0x46023e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x46023e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x46023e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor edi, edi
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x418], edi
mov byte [ebp - 0x428], 0
mov ecx, dword [ebp - 0x478]
mov byte [ebp - 4], 6
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x460b5f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
test esi, esi
jne 0x4602e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x484]
push eax
call fcn.00467600
add esp, 4
mov ecx, dword [ebp - 0x484]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x4602ba
lea eax, [ebp - 0x474]
push eax
push str.PROCESS:_failed_to_get_environment___d
push 2
call fcn.00457ab0
mov edi, dword [ebp - 0x480]
test edi, edi
je 0x4602e5
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x4602e5
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x4602e5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xor ecx, ecx
xor eax, eax
xor edi, edi
mov dword [ebp - 0x498], ecx
mov dword [ebp - 0x490], ecx
mov dword [ebp - 0x48c], edi
mov dword [ebp - 0x49c], eax
mov dword [ebp - 0x488], eax
mov byte [ebp - 4], 8
cmp byte [esi], al
je 0x460438
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
nop dword [eax + eax]
mov ecx, esi
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460350
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x440]
call fcn.00404760
mov eax, dword [ebp - 0x48c]
mov byte [ebp - 4], 9
cmp eax, dword [ebp - 0x49c]
je 0x4603ba
movups xmm0, xmmword [ebp - 0x440]
mov dword [eax], 0
mov edx, 0xf
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
mov byte [ebp - 0x440], 0
movq xmm0, qword [ebp - 0x430]
movq qword [eax + 0x10], xmm0
add eax, 0x18
mov dword [ebp - 0x48c], eax
jmp 0x4603df
lea ecx, [ebp - 0x440]
push ecx
push eax
lea ecx, [ebp - 0x490]
call fcn.00455900
mov eax, dword [ebp - 0x488]
mov edx, dword [ebp - 0x42c]
mov dword [ebp - 0x49c], eax
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x460417
mov ecx, dword [ebp - 0x440]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46040d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4610de
push edx
push ecx
call fcn.004c7626
add esp, 8
push esi
call edi
inc esi
add esi, eax
cmp byte [esi], 0
jne 0x460320
mov ecx, dword [ebp - 0x490]
mov edi, dword [ebp - 0x48c]
mov dword [ebp - 0x498], ecx
mov eax, dword [ebp - 0x478]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x478], edx
mov dword [ebp - 0x480], eax
cmp edx, eax
je 0x460775
nop word [eax + eax]
mov esi, ecx
cmp esi, edi
je 0x4606cb
nop word [eax + eax]
cmp dword [esi + 0x14], 0x10
mov edi, esi
jb 0x46047a
mov edi, dword [esi]
mov eax, dword [esi + 0x10]
cmp eax, 1
jb 0x4604d8
push eax
lea ecx, [eax + edi]
push 0x3d
push edi
mov dword [ebp - 0x474], ecx
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
je 0x4604d2
nop dword [eax + eax]
movzx ecx, byte [eax]
cmp cl, 0x3d
jne 0x4604ac
xor ecx, ecx
jmp 0x4604b1
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x46056c
mov ecx, dword [ebp - 0x474]
inc eax
sub ecx, eax
push ecx
push 0x3d
push eax
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
jne 0x4604a0
mov edx, dword [ebp - 0x478]
or eax, 0xffffffff
cmp dword [edx + 0x10], eax
mov ecx, edx
mov dword [ebp - 0x440], 0
cmovb eax, dword [edx + 0x10]
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], 0
jb 0x460511
mov ecx, dword [edx]
push eax
push ecx
lea ecx, [ebp - 0x440]
call fcn.00404760
or dword [ebp - 0x47c], 4
cmp dword [esi + 0x14], 0x10
mov ecx, esi
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x474], esi
jb 0x46053f
mov ecx, dword [esi]
mov dword [ebp - 0x474], ecx
mov edi, dword [esi + 0x10]
cmp edi, 1
jb 0x4605a3
push edi
push 0x3d
push ecx
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x4605a3
nop dword [eax]
movzx ecx, byte [edx]
cmp cl, 0x3d
jne 0x460579
xor eax, eax
jmp 0x46057e
mov edx, dword [ebp - 0x478]
sub eax, edi
jmp 0x4604db
sbb eax, eax
or eax, 1
test eax, eax
je 0x4606ea
mov eax, dword [ebp - 0x474]
inc edx
add eax, edi
sub eax, edx
push eax
push 0x3d
push edx
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x460560
or edx, 0xffffffff
cmp edi, edx
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x448], 0
mov eax, esi
cmovb edx, edi
mov dword [ebp - 0x444], 0xf
cmp dword [esi + 0x14], 0x10
jb 0x4605d3
mov eax, dword [esi]
push edx
push eax
lea ecx, [ebp - 0x458]
call fcn.00404760
or dword [ebp - 0x47c], 8
lea ecx, [ebp - 0x440]
cmp dword [ebp - 0x42c], 0x10
lea eax, [ebp - 0x458]
push dword [ebp - 0x430]
mov edi, dword [ebp - 0x440]
cmovae ecx, edi
cmp dword [ebp - 0x444], 0x10
mov edx, dword [ebp - 0x458]
push ecx
push dword [ebp - 0x448]
cmovae eax, edx
mov dword [ebp - 0x474], edx
push eax
call fcn.00403970
mov byte [ebp - 0x491], al
add esp, 0x10
mov eax, dword [ebp - 0x444]
cmp eax, 0x10
jb 0x460671
mov ecx, dword [ebp - 0x474]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x460667
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4610de
push edx
push ecx
call fcn.004c7626
add esp, 8
cmp byte [ebp - 0x491], 0
jne 0x4606f5
mov eax, dword [ebp - 0x42c]
mov byte [ebp - 4], 8
cmp eax, 0x10
jb 0x4606b4
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4606aa
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4610de
push ecx
push edi
call fcn.004c7626
add esp, 8
mov edi, dword [ebp - 0x48c]
add esi, 0x18
mov edx, dword [ebp - 0x478]
cmp esi, edi
jne 0x460470
push edx
cmp edi, dword [ebp - 0x49c]
je 0x4607e9
mov ecx, edi
call fcn.00426350
add edi, 0x18
mov dword [ebp - 0x48c], edi
jmp 0x460754
sub edx, dword [ebp - 0x474]
jmp 0x4605a6
mov ecx, dword [ebp - 0x478]
cmp esi, ecx
je 0x460714
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x460709
mov eax, dword [ecx]
push dword [ecx + 0x10]
mov ecx, esi
push eax
call fcn.00404760
mov eax, dword [ebp - 0x42c]
mov byte [ebp - 4], 8
cmp eax, 0x10
jb 0x46074e
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x460744
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4610de
push ecx
push edi
call fcn.004c7626
add esp, 8
mov edi, dword [ebp - 0x48c]
mov ecx, dword [ebp - 0x498]
mov edx, dword [ebp - 0x478]
add edx, 0x18
mov dword [ebp - 0x478], edx
cmp edx, dword [ebp - 0x480]
jne 0x460460
mov eax, ecx
mov edx, closesocket
mov dword [ebp - 0x47c], eax
cmp eax, edi
je 0x460974
nop word [eax + eax]
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x46079a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x428]
call fcn.00428fc0
mov ecx, dword [ebp - 0x418]
mov edi, dword [ebp - 0x414]
mov dword [ebp - 0x474], ecx
mov dword [ebp - 0x478], edi
cmp ecx, edi
jae 0x460818
lea eax, [ecx + 1]
cmp edi, 0x10
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
mov word [eax + ecx], 0
jmp 0x460954
push edi
lea ecx, [ebp - 0x490]
call fcn.004557a0
mov eax, dword [ebp - 0x488]
mov ecx, dword [ebp - 0x490]
mov edi, dword [ebp - 0x48c]
mov dword [ebp - 0x49c], eax
mov dword [ebp - 0x498], ecx
jmp 0x46075a
mov eax, closesocket
sub eax, ecx
cmp eax, 1
jb 0x46111f
lea esi, [ecx + 1]
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x460840
mov esi, closesocket
lea eax, [esi + 0x24]
jmp 0x460877
mov edx, edi
mov eax, closesocket
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x460859
mov esi, closesocket
lea eax, [esi + 0x24]
jmp 0x460877
lea eax, [edx + edi]
cmp esi, eax
cmovb esi, eax
lea edx, [esi + 1]
cmp edx, 0x1000
jb 0x460899
lea eax, [edx + 0x23]
cmp eax, edx
jbe 0x461124
push eax
call fcn.004c75f6
add esp, 4
test eax, eax
je 0x4610de
mov ecx, dword [ebp - 0x474]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4608b2
test edx, edx
je 0x4608b0
push edx
call fcn.004c75f6
mov ecx, dword [ebp - 0x474]
add esp, 4
mov edi, eax
jmp 0x4608b2
xor edi, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x418], eax
lea esi, [edi + ecx]
lea eax, [edi + 1]
mov dword [ebp - 0x480], esi
add eax, ecx
cmp dword [ebp - 0x478], 0x10
mov dword [ebp - 0x474], eax
push ecx
jb 0x460932
mov esi, dword [ebp - 0x428]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x480]
add esp, 0xc
mov ecx, dword [ebp - 0x478]
inc ecx
mov byte [eax], 0
mov eax, dword [ebp - 0x474]
mov byte [eax], 0
cmp ecx, 0x1000
jb 0x460926
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4610de
mov esi, edx
push ecx
push esi
call fcn.004c7626
add esp, 8
jmp 0x46094e
lea eax, [ebp - 0x428]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x474]
add esp, 0xc
mov byte [esi], 0
mov byte [eax], 0
mov dword [ebp - 0x428], edi
mov eax, dword [ebp - 0x47c]
add eax, 0x18
mov dword [ebp - 0x47c], eax
cmp eax, dword [ebp - 0x48c]
jne 0x460790
mov edx, closesocket
mov ecx, dword [ebp - 0x418]
mov esi, dword [ebp - 0x414]
mov dword [ebp - 0x474], ecx
mov dword [ebp - 0x478], esi
cmp ecx, esi
jae 0x4609ba
lea eax, [ecx + 1]
cmp esi, 0x10
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
mov word [ecx + eax], 0
mov esi, dword [ebp - 0x428]
jmp 0x460ae4
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x46111f
lea edi, [ecx + 1]
or edi, 0xf
cmp edi, 0x7fffffff
ja 0x4609fd
mov eax, esi
shr eax, 1
sub edx, eax
cmp esi, edx
ja 0x4609fd
add eax, esi
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x460a29
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x461124
jmp 0x460a07
mov edi, closesocket
mov ecx, 0x80000023
push ecx
call fcn.004c75f6
add esp, 4
test eax, eax
je 0x4610de
mov ecx, dword [ebp - 0x474]
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x460a42
test eax, eax
je 0x460a40
push eax
call fcn.004c75f6
mov ecx, dword [ebp - 0x474]
add esp, 4
mov esi, eax
jmp 0x460a42
xor esi, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x418], eax
lea edi, [ecx + esi]
lea eax, [esi + 1]
mov dword [ebp - 0x480], edi
add eax, ecx
cmp dword [ebp - 0x478], 0x10
mov dword [ebp - 0x474], eax
push ecx
jb 0x460ac2
mov edi, dword [ebp - 0x428]
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x480]
add esp, 0xc
mov ecx, dword [ebp - 0x478]
inc ecx
mov byte [eax], 0
mov eax, dword [ebp - 0x474]
mov byte [eax], 0
cmp ecx, 0x1000
jb 0x460ab6
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4610de
mov edi, edx
push ecx
push edi
call fcn.004c7626
add esp, 8
jmp 0x460ade
lea eax, [ebp - 0x428]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x474]
add esp, 0xc
mov byte [edi], 0
mov byte [eax], 0
mov dword [ebp - 0x428], esi
cmp dword [ebp - 0x414], 0x10
lea edi, [ebp - 0x428]
mov byte [ebp - 4], 6
cmovae edi, esi
mov esi, dword [ebp - 0x498]
test esi, esi
je 0x460b5f
lea eax, [ebp - 0x490]
push eax
push dword [ebp - 0x48c]
push esi
call fcn.00455670
mov ecx, dword [ebp - 0x49c]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0xc
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x460b55
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4610de
push ecx
push esi
call fcn.004c7626
add esp, 8
mov esi, dword [ebp - 0x4a0]
mov dword [ebp - 0x4d0], 0xc
mov dword [ebp - 0x4c8], 1
mov dword [ebp - 0x4cc], 0
test esi, esi
je 0x460c0b
push 0
lea eax, [ebp - 0x4d0]
push eax
lea eax, [esi + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x461129
push 0
push 1
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
call esi
test eax, eax
jne 0x460bc3
push str.PROCESS:_failed_to_set_handle_information
jmp 0x46112e
mov eax, dword [ebp - 0x4a0]
lea edx, [ebp - 0x4d0]
push 0
push edx
lea ecx, [eax + 8]
add eax, 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x461129
mov ecx, dword [ebp - 0x4a0]
push 0
push 1
push dword [ecx + 8]
call esi
test eax, eax
jne 0x460c05
push str.PROCESS:_failed_to_set_handle_information
jmp 0x46112e
mov esi, dword [ebp - 0x4a0]
mov dword [ebp - 0x514], 0x44
xorps xmm0, xmm0
movlpd qword [ebp - 0x510], xmm0
movlpd qword [ebp - 0x508], xmm0
movlpd qword [ebp - 0x500], xmm0
movlpd qword [ebp - 0x4f8], xmm0
movlpd qword [ebp - 0x4f0], xmm0
movlpd qword [ebp - 0x4e8], xmm0
movlpd qword [ebp - 0x4e0], xmm0
movlpd qword [ebp - 0x4d8], xmm0
movups xmmword [ebp - 0x4c4], xmm0
test esi, esi
je 0x460c75
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x4d4], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x4d8], eax
or dword [ebp - 0x4e8], 0x100
lea ecx, [ebp - 0x4c4]
cmp dword [ebp - 0x45c], 0x10
lea eax, [ebp - 0x470]
push ecx
cmovae eax, dword [ebp - 0x470]
lea ecx, [ebp - 0x514]
push ecx
push 0
push edi
push 0x9000000
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x460e72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x400
mov esi, eax
lea eax, [ebp - 0x410]
push eax
push 0x409
push esi
push 0
push 0x3000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x410]
mov byte [ebp - 0x11], 0
push eax
push esi
lea eax, [ebp - 0x458]
push str.error_code__d_____s
push eax
call fcn.0049f320
add esp, 0x10
cmp dword [ebp - 0x444], 0x10
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 0xb
cmovae eax, dword [ebp - 0x458]
mov dword [ebp - 0x480], eax
mov eax, dword [ebp - 0x4a8]
cmp dword [eax + 0x14], 0x10
jb 0x460d35
mov eax, dword [eax]
mov dword [ebp - 0x4a8], eax
lea eax, [ebp - 0x4b4]
push eax
call fcn.00467600
add esp, 4
mov ecx, dword [ebp - 0x4b4]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x460d72
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x4a8]
push eax
push str.PROCESS:_cant_start__s___s_n
push 2
call fcn.00457c70
mov esi, dword [ebp - 0x4b0]
test esi, esi
je 0x460d9d
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x460d9d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x460d9d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp - 0x444]
cmp edx, 0x10
jb 0x460dd9
mov ecx, dword [ebp - 0x458]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x460dcf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x460dcf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c7626
add esp, 8
mov edx, dword [ebp - 0x414]
cmp edx, 0x10
jb 0x460e13
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x460e09
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4610de
push edx
push ecx
call fcn.004c7626
add esp, 8
mov edx, dword [ebp - 0x45c]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
cmp edx, 0x10
jb 0x460e68
mov ecx, dword [ebp - 0x470]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x460e5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4610de
push edx
push ecx
call fcn.004c7626
add esp, 8
mov eax, 0x10
jmp 0x4610f0
mov ecx, dword [ebp - 0x4b0]
test ecx, ecx
je 0x460e84
mov eax, dword [ebp - 0x4bc]
mov dword [ecx], eax
push dword [ebp - 0x4c0]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp dword [ebp + 0x18], 0
je 0x460ea6
push dword [ebp - 0x4c4]
call fcn.004617e0
add esp, 4
cmp dword [ebp + 0x14], 1
mov dword [ebp - 0x4a4], 0
jne 0x461053
push 0xffffffffffffffff
push dword [ebp - 0x4c4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x460fc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x400
mov esi, eax
lea eax, [ebp - 0x410]
push eax
push 0x409
push esi
push 0
push 0x3000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x410]
mov byte [ebp - 0x11], 0
push eax
push esi
lea eax, [ebp - 0x458]
push str.error_code__d_____s
push eax
call fcn.0049f320
add esp, 0x10
cmp dword [ebp - 0x444], 0x10
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 0xd
cmovae eax, dword [ebp - 0x458]
mov dword [ebp - 0x4b0], eax
mov eax, dword [ebp - 0x4a8]
cmp dword [eax + 0x14], 0x10
jb 0x460f46
mov eax, dword [eax]
mov dword [ebp - 0x480], eax
lea eax, [ebp - 0x4ac]
push eax
call fcn.00467600
add esp, 4
mov ecx, dword [ebp - 0x4ac]
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x460f83
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x480]
push eax
push str.PROCESS:_wait_for__s_failed___s_n
push 2
call fcn.00457c70
mov esi, dword [ebp - 0x4a8]
test esi, esi
je 0x460faf
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x460faf
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x460faf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x458]
call fcn.00403c80
mov dword [ebp - 0x4a4], 0xffff
jmp 0x461053
lea eax, [ebp - 0x4a4]
push eax
push dword [ebp - 0x4c4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x4a8]
cmp dword [eax + 0x14], 0x10
jb 0x460fea
mov eax, dword [eax]
mov dword [ebp - 0x4b0], eax
lea eax, [ebp - 0x484]
push eax
call fcn.00467600
add esp, 4
mov ecx, dword [ebp - 0x484]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x461027
lea eax, [ebp - 0x4a4]
push eax
lea eax, [ebp - 0x4b0]
push eax
push str.PROCESS:__s_finished__exit_code__i_n
push 1
call fcn.004260c0
mov esi, dword [ebp - 0x480]
test esi, esi
je 0x461053
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x461053
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x461053
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push dword [ebp - 0x4c4]
call edi
mov edx, dword [ebp - 0x414]
mov esi, dword [ebp - 0x4a4]
cmp edx, 0x10
jb 0x461097
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46108d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4610de
push edx
push ecx
call fcn.004c7626
add esp, 8
mov edx, dword [ebp - 0x45c]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
cmp edx, 0x10
jb 0x4610ee
mov ecx, dword [ebp - 0x470]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4610e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4610e4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c7626
add esp, 8
mov eax, esi
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.004c75e8
mov esp, ebp
pop ebp
ret
push 0x13e
push str..._tech1utils_src_run_process.cpp
push str._cmd.empty__
call fcn.00462910
call fcn.00404080
call fcn.00403ff0
push str.PROCESS:_failed_to_create_pipe
lea ecx, [ebp - 0x490]
call fcn.00427430
push 0x4f2dc0
lea eax, [ebp - 0x490]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3