Function at 0x140017ed0
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 0x140018181
cmp dword [rsp + 0x88], 1
jle 0x140018181
mov rdx, qword [rax + 8]
lea rcx, [rsp + 0x20]
call fcn.1400157a0
nop
lea rdx, str._NewDriver
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14002582c
test eax, eax
je 0x14001813c
lea rdx, [0x1400442e8]
mov rcx, rbx
call fcn.14002582c
test eax, eax
je 0x14001813c
mov rdx, qword [r12 + 8]
lea rcx, [rsp + 0x90]
call fcn.1400157a0
nop
mov rbx, qword [rsp + 0x90]
movsxd rdi, dword [rbx - 8]
mov r13d, 0x5c
cmp word [rbx + rdi*2 - 2], 0x22
jne 0x140017fb1
lea rcx, [rsp + 0x90]
call fcn.1400109a0
mov rbx, qword [rsp + 0x90]
mov word [rbx + rdi*2 - 2], r13w
mov eax, dword [rsp + 0x88]
cmp eax, 2
jne 0x140017fd5
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call fcn.140016d70
mov eax, dword [rsp + 0x88]
or ebp, 0xffffffff
cmp eax, 2
jle 0x1400180f0
mov rdx, qword [r12 + 0x10]
lea rcx, [rsp + 0x98]
call fcn.1400157a0
nop
mov rdi, qword [rsp + 0x98]
movsxd rsi, dword [rdi - 8]
cmp word [rdi + rsi*2 - 2], 0x22
jne 0x140018023
lea rcx, [rsp + 0x98]
call fcn.1400109a0
mov rdi, qword [rsp + 0x98]
mov word [rdi + rsi*2 - 2], r13w
xor r13b, r13b
cmp dword [rsp + 0x88], 3
jle 0x1400180ad
mov rdx, qword [r12 + 0x18]
lea rcx, [rsp + 0x28]
call fcn.1400157a0
lea rdx, str._GUI
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call fcn.14002582c
test eax, eax
je 0x14001806a
lea rdx, [0x1400442c8]
mov rcx, rsi
call fcn.14002582c
test eax, eax
jne 0x14001806d
mov r13b, 1
lea rcx, [rsi - 0xc]
cmp rcx, qword [0x140055010]
je 0x1400180ad
mov eax, ebp
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x14001809d
call fcn.140024b64
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
jmp 0x1400180ad
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
movzx r9d, r13b
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.140016d70
nop
lea rcx, [rdi - 0xc]
cmp rcx, qword [0x140055010]
je 0x1400180f0
mov eax, ebp
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x1400180e8
call fcn.140024b64
mov rbx, qword [rsp + 0x90]
jmp 0x1400180f0
mov rbx, qword [rsp + 0x90]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140055010]
je 0x140018119
mov eax, ebp
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x140018119
call fcn.140024b64
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140055010]
je 0x140018181
lock xadd dword [rcx], ebp
dec ebp
test ebp, ebp
jg 0x140018181
call fcn.140024b64
jmp 0x140018181
cmp dword [rsp + 0x88], 3
jne 0x140018153
mov rdx, qword [r12 + 0x10]
mov rcx, r14
call fcn.140017400
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140055010]
je 0x140018181
or ebp, 0xffffffff
lock xadd dword [rcx], ebp
dec ebp
test ebp, ebp
jg 0x140018181
call fcn.140024b64
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret