Function at 0x1400177f0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rbp, rcx
movzx eax, byte [rcx + 0x84]
test al, al
je 0x140017871
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edi, edi
mov ecx, 0x27f5
call fcn.140010590
test rax, rax
je 0x14001784b
movzx edx, word [rax]
lea rcx, [rax + 2]
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rdi, rax
mov r9, rdi
mov edx, 0x27dd
mov r8d, 0xd5
mov rcx, rbp
call fcn.140013250
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x140017ea7
cmp dword [rcx + 0x88], 0
je 0x140017895
mov edx, 0x27dd
lea r9d, [rdx + 0x22]
mov r8d, 0xd5
call fcn.1400130e0
xor eax, eax
jmp 0x140017ea7
xor edi, edi
mov dword [rsp + 0xc0], edi
lea rdx, [rsp + 0xc0]
mov rcx, qword [r8 + 0x10]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
cmp dword [rsp + 0xc0], edi
je 0x140017ea2
test rax, rax
je 0x140017ea2
mov rdx, qword [rax]
lea rcx, [rsp + 0x38]
call fcn.1400157a0
nop
lea rdx, str._unmount
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14002582c
test eax, eax
je 0x140017d4c
lea rdx, [0x140044338]
mov rcx, rbx
call fcn.14002582c
test eax, eax
je 0x140017d4c
lea rdx, str._eject
mov rcx, rbx
call fcn.14002582c
test eax, eax
je 0x140017c6b
lea rdx, [0x140044318]
mov rcx, rbx
call fcn.14002582c
test eax, eax
je 0x140017c6b
lea rdx, str._NewDriver
mov rcx, rbx
call fcn.14002582c
test eax, eax
je 0x140017bf0
lea rdx, [0x1400442e8]
mov rcx, rbx
call fcn.14002582c
test eax, eax
je 0x140017bf0
mov rdx, qword [r12]
lea rcx, [rsp + 0x30]
call fcn.1400157a0
nop
mov rax, qword [rsp + 0x30]
movsxd rbx, dword [rax - 8]
lea r14d, [rdi + 0x5c]
cmp word [rax + rbx*2 - 2], 0x22
jne 0x14001799f
lea rcx, [rsp + 0x30]
call fcn.1400109a0
mov rax, qword [rsp + 0x30]
mov word [rax + rbx*2 - 2], r14w
mov eax, dword [rsp + 0xc0]
cmp eax, 1
jne 0x1400179c5
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, rbp
call fcn.140016d70
mov eax, dword [rsp + 0xc0]
or esi, 0xffffffff
cmp eax, 1
jle 0x140017b97
mov rbx, qword [0x140055018]
mov qword [rsp + 0xd8], rbx
mov r15, qword [r12 + 8]
test r15, r15
jne 0x1400179ef
mov r13d, edi
jmp 0x1400179fb
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r13d, eax
lea rcx, [rbx - 0xc]
cmp dword [rcx], 1
jg 0x140017a0a
cmp r13d, dword [rbx - 4]
jle 0x140017a4f
cmp rcx, qword [0x140055010]
je 0x140017a33
mov eax, esi
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x140017a24
call fcn.140024b64
mov rax, qword [0x140055018]
mov qword [rsp + 0xd8], rax
mov edx, r13d
lea rcx, [rsp + 0xd8]
call fcn.140010680
test eax, eax
je 0x140017abb
mov rbx, qword [rsp + 0xd8]
movsxd rax, r13d
lea rcx, [rax + rax]
mov qword [rsp + 0x68], rcx
lea eax, [r13 + 1]
movsxd rdx, eax
add rdx, rdx
mov r9, rcx
mov r8, r15
mov rcx, rbx
call fcn.140024908
test eax, eax
je 0x140017aac
cmp eax, 0xc
je 0x140017aa1
cmp eax, 0x16
je 0x140017a96
cmp eax, 0x22
je 0x140017a96
cmp eax, 0x50
je 0x140017aac
mov ecx, 0x80004005
call fcn.14000e230
int3
mov ecx, 0x80070057
call fcn.14000e230
int3
mov ecx, 0x8007000e
call fcn.14000e230
int3
mov dword [rbx - 8], r13d
mov rax, qword [rsp + 0x68]
mov word [rax + rbx], di
jmp 0x140017ac3
mov rbx, qword [rsp + 0xd8]
movsxd rdi, dword [rbx - 8]
cmp word [rbx + rdi*2 - 2], 0x22
jne 0x140017aea
lea rcx, [rsp + 0xd8]
call fcn.1400109a0
mov rbx, qword [rsp + 0xd8]
mov word [rbx + rdi*2 - 2], r14w
xor r13b, r13b
cmp dword [rsp + 0xc0], 2
jle 0x140017b64
mov rdx, qword [r12 + 0x10]
lea rcx, [rsp + 0x70]
call fcn.1400157a0
lea rdx, str._GUI
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.14002582c
test eax, eax
je 0x140017b31
lea rdx, [0x1400442c8]
mov rcx, rdi
call fcn.14002582c
test eax, eax
jne 0x140017b34
mov r13b, 1
lea rcx, [rdi - 0xc]
cmp rcx, qword [0x140055010]
je 0x140017b64
mov eax, esi
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x140017b5c
call fcn.140024b64
mov rbx, qword [rsp + 0xd8]
jmp 0x140017b64
mov rbx, qword [rsp + 0xd8]
movzx r9d, r13b
mov r8, rbx
mov rdx, qword [rsp + 0x30]
mov rcx, rbp
call fcn.140016d70
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140055010]
je 0x140017b97
mov eax, esi
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x140017b97
call fcn.140024b64
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140055010]
je 0x140017bc5
mov eax, esi
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x140017bc5
call fcn.140024b64
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140055010]
je 0x140017be6
lock xadd dword [rcx], esi
dec esi
test esi, esi
jg 0x140017be6
call fcn.140024b64
mov eax, 1
jmp 0x140017ea7
cmp dword [rsp + 0xc0], 2
jne 0x140017c09
mov rdx, qword [r12 + 8]
mov rcx, rbp
call fcn.140017400
jmp 0x140017c33
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov r9, rbp
lea r8, [0x140016d40]
xor edx, edx
xor ecx, ecx
call fcn.140025d34
test rax, rax
je 0x140017c33
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140055010]
je 0x140017c61
or esi, 0xffffffff
lock xadd dword [rcx], esi
dec esi
test esi, esi
jg 0x140017c61
call fcn.140024b64
mov eax, 1
jmp 0x140017ea7
or esi, 0xffffffff
cmp dword [rsp + 0xc0], 2
jne 0x140017d17
mov rdx, qword [r12 + 8]
lea rcx, [rsp + 0x50]
call fcn.1400157a0
nop
mov rbx, qword [rsp + 0x50]
movsxd r13, dword [rbx - 8]
cmp word [rbx + r13*2 - 2], 0x22
jne 0x140017cb9
lea rcx, [rsp + 0x50]
call fcn.1400109a0
mov r14d, 0x5c
mov rbx, qword [rsp + 0x50]
mov word [rbx + r13*2 - 2], r14w
mov qword [rsp + 0x60], rdi
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
movzx edx, word [rbx]
call qword [rax + 0x48]
test eax, eax
jne 0x140017cf9
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140017cf9
mov dword [rbp + 0x88], 1
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x60]
mov dword [rbp + 0x88], edi
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140055010]
je 0x140017d17
mov eax, esi
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x140017d17
call fcn.140024b64
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140055010]
je 0x140017d42
lock xadd dword [rcx], esi
dec esi
test esi, esi
jg 0x140017d42
call fcn.140024b64
mov eax, 1
jmp 0x140017ea7
or esi, 0xffffffff
cmp dword [rsp + 0xc0], 2
jne 0x140017e70
mov rdx, qword [r12 + 8]
lea rcx, [rsp + 0x48]
call fcn.1400157a0
nop
mov rbx, qword [rsp + 0x48]
movsxd r13, dword [rbx - 8]
cmp word [rbx + r13*2 - 2], 0x22
jne 0x140017d9a
lea rcx, [rsp + 0x48]
call fcn.1400109a0
mov r14d, 0x5c
mov rbx, qword [rsp + 0x48]
mov word [rbx + r13*2 - 2], r14w
cmp dword [rbx - 8], 3
jne 0x140017dea
cmp word [rbx + 2], 0x3a
jne 0x140017dea
cmp word [rbx + 4], 0x5c
jne 0x140017dea
mov qword [rsp + 0x58], rdi
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
movzx edx, word [rbx]
call qword [rax + 0x48]
test eax, eax
jne 0x140017e52
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140017e52
xor r9d, r9d
mov r8, rbx
mov rcx, rbp
call fcn.1400135f0
jmp 0x140017e52
mov qword [rsp + 0x40], rdi
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
movzx edx, word [rbx]
call qword [rax + 0x48]
test eax, eax
jne 0x140017e52
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140017e52
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x78]
test eax, eax
je 0x140017e34
xor r9d, r9d
mov r8, rbx
mov rdx, qword [rsp + 0x40]
mov rcx, rbp
call fcn.1400135f0
jmp 0x140017e52
mov dword [rbp + 0x88], 1
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x70]
mov dword [rbp + 0x88], edi
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140055010]
je 0x140017e70
mov eax, esi
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x140017e70
call fcn.140024b64
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140055010]
je 0x140017e9b
lock xadd dword [rcx], esi
dec esi
test esi, esi
jg 0x140017e9b
call fcn.140024b64
mov eax, 1
jmp 0x140017ea7
mov eax, 1
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret