Function at 0x140017e90
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 0x140017f11
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edi, edi
mov ecx, 0x27f5
call fcn.140010ae0
test rax, rax
je 0x140017eeb
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.140013950
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x140018547
cmp dword [rcx + 0x88], 0
je 0x140017f35
mov edx, 0x27dd
lea r9d, [rdx + 0x22]
mov r8d, 0xd5
call fcn.1400137e0
xor eax, eax
jmp 0x140018547
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 0x140018542
test rax, rax
je 0x140018542
mov rdx, qword [rax]
lea rcx, [rsp + 0x38]
call fcn.140015e40
nop
lea rdx, str._unmount
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.140025dcc
test eax, eax
je 0x1400183ec
lea rdx, [0x140045338]
mov rcx, rbx
call fcn.140025dcc
test eax, eax
je 0x1400183ec
lea rdx, str._eject
mov rcx, rbx
call fcn.140025dcc
test eax, eax
je 0x14001830b
lea rdx, [0x140045318]
mov rcx, rbx
call fcn.140025dcc
test eax, eax
je 0x14001830b
lea rdx, str._NewDriver
mov rcx, rbx
call fcn.140025dcc
test eax, eax
je 0x140018290
lea rdx, [0x1400452e8]
mov rcx, rbx
call fcn.140025dcc
test eax, eax
je 0x140018290
mov rdx, qword [r12]
lea rcx, [rsp + 0x30]
call fcn.140015e40
nop
mov rax, qword [rsp + 0x30]
movsxd rbx, dword [rax - 8]
lea r14d, [rdi + 0x5c]
cmp word [rax + rbx*2 - 2], 0x22
jne 0x14001803f
lea rcx, [rsp + 0x30]
call fcn.140011060
mov rax, qword [rsp + 0x30]
mov word [rax + rbx*2 - 2], r14w
mov eax, dword [rsp + 0xc0]
cmp eax, 1
jne 0x140018065
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, rbp
call fcn.140017410
mov eax, dword [rsp + 0xc0]
or esi, 0xffffffff
cmp eax, 1
jle 0x140018237
mov rbx, qword [0x140056018]
mov qword [rsp + 0xd8], rbx
mov r15, qword [r12 + 8]
test r15, r15
jne 0x14001808f
mov r13d, edi
jmp 0x14001809b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r13d, eax
lea rcx, [rbx - 0xc]
cmp dword [rcx], 1
jg 0x1400180aa
cmp r13d, dword [rbx - 4]
jle 0x1400180ef
cmp rcx, qword [0x140056010]
je 0x1400180d3
mov eax, esi
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x1400180c4
call fcn.140025104
mov rax, qword [0x140056018]
mov qword [rsp + 0xd8], rax
mov edx, r13d
lea rcx, [rsp + 0xd8]
call fcn.140010c20
test eax, eax
je 0x14001815b
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.140024ea8
test eax, eax
je 0x14001814c
cmp eax, 0xc
je 0x140018141
cmp eax, 0x16
je 0x140018136
cmp eax, 0x22
je 0x140018136
cmp eax, 0x50
je 0x14001814c
mov ecx, 0x80004005
call fcn.14000e4f0
int3
mov ecx, 0x80070057
call fcn.14000e4f0
int3
mov ecx, 0x8007000e
call fcn.14000e4f0
int3
mov dword [rbx - 8], r13d
mov rax, qword [rsp + 0x68]
mov word [rax + rbx], di
jmp 0x140018163
mov rbx, qword [rsp + 0xd8]
movsxd rdi, dword [rbx - 8]
cmp word [rbx + rdi*2 - 2], 0x22
jne 0x14001818a
lea rcx, [rsp + 0xd8]
call fcn.140011060
mov rbx, qword [rsp + 0xd8]
mov word [rbx + rdi*2 - 2], r14w
xor r13b, r13b
cmp dword [rsp + 0xc0], 2
jle 0x140018204
mov rdx, qword [r12 + 0x10]
lea rcx, [rsp + 0x70]
call fcn.140015e40
lea rdx, str._GUI
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.140025dcc
test eax, eax
je 0x1400181d1
lea rdx, [0x1400452c8]
mov rcx, rdi
call fcn.140025dcc
test eax, eax
jne 0x1400181d4
mov r13b, 1
lea rcx, [rdi - 0xc]
cmp rcx, qword [0x140056010]
je 0x140018204
mov eax, esi
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x1400181fc
call fcn.140025104
mov rbx, qword [rsp + 0xd8]
jmp 0x140018204
mov rbx, qword [rsp + 0xd8]
movzx r9d, r13b
mov r8, rbx
mov rdx, qword [rsp + 0x30]
mov rcx, rbp
call fcn.140017410
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140056010]
je 0x140018237
mov eax, esi
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x140018237
call fcn.140025104
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140056010]
je 0x140018265
mov eax, esi
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x140018265
call fcn.140025104
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140056010]
je 0x140018286
lock xadd dword [rcx], esi
dec esi
test esi, esi
jg 0x140018286
call fcn.140025104
mov eax, 1
jmp 0x140018547
cmp dword [rsp + 0xc0], 2
jne 0x1400182a9
mov rdx, qword [r12 + 8]
mov rcx, rbp
call fcn.140017aa0
jmp 0x1400182d3
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov r9, rbp
lea r8, [0x1400173e0]
xor edx, edx
xor ecx, ecx
call fcn.1400262d4
test rax, rax
je 0x1400182d3
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 [0x140056010]
je 0x140018301
or esi, 0xffffffff
lock xadd dword [rcx], esi
dec esi
test esi, esi
jg 0x140018301
call fcn.140025104
mov eax, 1
jmp 0x140018547
or esi, 0xffffffff
cmp dword [rsp + 0xc0], 2
jne 0x1400183b7
mov rdx, qword [r12 + 8]
lea rcx, [rsp + 0x50]
call fcn.140015e40
nop
mov rbx, qword [rsp + 0x50]
movsxd r13, dword [rbx - 8]
cmp word [rbx + r13*2 - 2], 0x22
jne 0x140018359
lea rcx, [rsp + 0x50]
call fcn.140011060
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 0x140018399
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140018399
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 [0x140056010]
je 0x1400183b7
mov eax, esi
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x1400183b7
call fcn.140025104
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140056010]
je 0x1400183e2
lock xadd dword [rcx], esi
dec esi
test esi, esi
jg 0x1400183e2
call fcn.140025104
mov eax, 1
jmp 0x140018547
or esi, 0xffffffff
cmp dword [rsp + 0xc0], 2
jne 0x140018510
mov rdx, qword [r12 + 8]
lea rcx, [rsp + 0x48]
call fcn.140015e40
nop
mov rbx, qword [rsp + 0x48]
movsxd r13, dword [rbx - 8]
cmp word [rbx + r13*2 - 2], 0x22
jne 0x14001843a
lea rcx, [rsp + 0x48]
call fcn.140011060
mov r14d, 0x5c
mov rbx, qword [rsp + 0x48]
mov word [rbx + r13*2 - 2], r14w
cmp dword [rbx - 8], 3
jne 0x14001848a
cmp word [rbx + 2], 0x3a
jne 0x14001848a
cmp word [rbx + 4], 0x5c
jne 0x14001848a
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 0x1400184f2
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400184f2
xor r9d, r9d
mov r8, rbx
mov rcx, rbp
call fcn.140013cf0
jmp 0x1400184f2
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 0x1400184f2
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400184f2
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x78]
test eax, eax
je 0x1400184d4
xor r9d, r9d
mov r8, rbx
mov rdx, qword [rsp + 0x40]
mov rcx, rbp
call fcn.140013cf0
jmp 0x1400184f2
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 [0x140056010]
je 0x140018510
mov eax, esi
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x140018510
call fcn.140025104
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140056010]
je 0x14001853b
lock xadd dword [rcx], esi
dec esi
test esi, esi
jg 0x14001853b
call fcn.140025104
mov eax, 1
jmp 0x140018547
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