Function at 0x1400e3a50
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x120], rbx
mov r12, rdx
mov rsi, rcx
mov rdi, qword [rdx]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x1400e3aa5
cmp rax, qword [rdi - 0x18]
jne 0x1400e3aa5
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x1400e3ae3
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x1400e3ac1
call fcn.1400c5210
int3
mov eax, dword [rdi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.14015cd30
lea rax, [rbx + 0x18]
mov qword [rsp + 0x138], rax
lea r8, [rsp + 0x138]
lea rdx, [rsp + 0x130]
mov rcx, rsi
call fcn.1400e43c0
nop
mov rbx, qword [rsp + 0x130]
mov ebp, dword [rbx - 0x10]
test ebp, ebp
jne 0x1400e3b5a
lea rdx, [rbx - 0x18]
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1400e3b36
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400e3b53
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400e3d7f
mov rcx, qword [rsi + 0x20]
mov eax, dword [rcx + 0x1d8]
or rsi, 0xffffffffffffffff
cmp eax, 1
je 0x1400e3bc7
cmp eax, 3
je 0x1400e3bc7
cmp eax, 4
jne 0x1400e3b98
lea rdx, str.__SHOW_MIC
lea rcx, [rsp + 0x130]
call fcn.1400407c0
mov rbx, qword [rsp + 0x130]
jmp 0x1400e3c50
cmp eax, 8
je 0x1400e3ba6
cmp eax, 9
jne 0x1400e3c50
lea rdx, str.__SHOW_SPDIF
lea rcx, [rsp + 0x130]
call fcn.1400407c0
mov rbx, qword [rsp + 0x130]
jmp 0x1400e3c50
xor eax, eax
mov rcx, rsi
lea r14, str.__SHOW_AUDIO
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov r13, r14
sub r13, rbx
sar r13, 1
lea edi, [rbp + rcx - 1]
mov edx, 1
sub edx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, edx
jge 0x1400e3c15
mov edx, edi
lea rcx, [rsp + 0x130]
call fcn.140001df0
mov rbx, qword [rsp + 0x130]
cmp r13, rbp
ja 0x1400e3c1e
lea r14, [rbx + r13*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rbx + rbp*2]
mov r9, rdx
mov r8, r14
call fcn.14015cd30
test edi, edi
js 0x1400e3d74
cmp edi, dword [rbx - 0xc]
jg 0x1400e3d74
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
cmp dword [rbx - 8], 1
jle 0x1400e3c6e
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x130]
call fcn.140001e50
mov rbx, qword [rsp + 0x130]
test rbx, rbx
jne 0x1400e3c7c
xor ebp, ebp
mov ecx, ebp
jmp 0x1400e3d1b
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x70]
call fcn.140160e90
mov dword [rsp + 0x70], 0x68
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor ebp, ebp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400e3cea
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400e3d05
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, 1
xor eax, eax
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x1400e3d69
cmp ecx, dword [rbx - 0xc]
jg 0x1400e3d69
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], 0
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400e3d48
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400e3d65
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebp
jmp 0x1400e3d7f
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
nop
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret