Function at 0x140018570
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r14, rcx
mov dword [rsp + 0x88], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x88]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
test rax, rax
je 0x140018821
cmp dword [rsp + 0x88], 1
jle 0x140018821
mov rdx, qword [rax + 8]
lea rcx, [rsp + 0x20]
call fcn.140015e40
nop
lea rdx, str._NewDriver
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.140025dcc
test eax, eax
je 0x1400187dc
lea rdx, [0x1400452e8]
mov rcx, rbx
call fcn.140025dcc
test eax, eax
je 0x1400187dc
mov rdx, qword [r12 + 8]
lea rcx, [rsp + 0x90]
call fcn.140015e40
nop
mov rbx, qword [rsp + 0x90]
movsxd rdi, dword [rbx - 8]
mov r13d, 0x5c
cmp word [rbx + rdi*2 - 2], 0x22
jne 0x140018651
lea rcx, [rsp + 0x90]
call fcn.140011060
mov rbx, qword [rsp + 0x90]
mov word [rbx + rdi*2 - 2], r13w
mov eax, dword [rsp + 0x88]
cmp eax, 2
jne 0x140018675
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call fcn.140017410
mov eax, dword [rsp + 0x88]
or ebp, 0xffffffff
cmp eax, 2
jle 0x140018790
mov rdx, qword [r12 + 0x10]
lea rcx, [rsp + 0x98]
call fcn.140015e40
nop
mov rdi, qword [rsp + 0x98]
movsxd rsi, dword [rdi - 8]
cmp word [rdi + rsi*2 - 2], 0x22
jne 0x1400186c3
lea rcx, [rsp + 0x98]
call fcn.140011060
mov rdi, qword [rsp + 0x98]
mov word [rdi + rsi*2 - 2], r13w
xor r13b, r13b
cmp dword [rsp + 0x88], 3
jle 0x14001874d
mov rdx, qword [r12 + 0x18]
lea rcx, [rsp + 0x28]
call fcn.140015e40
lea rdx, str._GUI
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call fcn.140025dcc
test eax, eax
je 0x14001870a
lea rdx, [0x1400452c8]
mov rcx, rsi
call fcn.140025dcc
test eax, eax
jne 0x14001870d
mov r13b, 1
lea rcx, [rsi - 0xc]
cmp rcx, qword [0x140056010]
je 0x14001874d
mov eax, ebp
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x14001873d
call fcn.140025104
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
jmp 0x14001874d
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
movzx r9d, r13b
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.140017410
nop
lea rcx, [rdi - 0xc]
cmp rcx, qword [0x140056010]
je 0x140018790
mov eax, ebp
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x140018788
call fcn.140025104
mov rbx, qword [rsp + 0x90]
jmp 0x140018790
mov rbx, qword [rsp + 0x90]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140056010]
je 0x1400187b9
mov eax, ebp
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x1400187b9
call fcn.140025104
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140056010]
je 0x140018821
lock xadd dword [rcx], ebp
dec ebp
test ebp, ebp
jg 0x140018821
call fcn.140025104
jmp 0x140018821
cmp dword [rsp + 0x88], 3
jne 0x1400187f3
mov rdx, qword [r12 + 0x10]
mov rcx, r14
call fcn.140017aa0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140056010]
je 0x140018821
or ebp, 0xffffffff
lock xadd dword [rcx], ebp
dec ebp
test ebp, ebp
jg 0x140018821
call fcn.140025104
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret