Function at 0x140017aa0
Capabilities:
Create thread
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x140056b28]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15, rcx
lea rcx, [rsp + 0x30]
call fcn.140015e40
nop
mov rdi, qword [rsp + 0x30]
movsxd rbx, dword [rdi - 8]
cmp word [rdi + rbx*2 - 2], 0x22
jne 0x140017b08
lea rcx, [rsp + 0x30]
call fcn.140011060
mov eax, 0x5c
mov rdi, qword [rsp + 0x30]
mov word [rdi + rbx*2 - 2], ax
movabs rax, 0x5c003a0020
mov qword [rsp + 0x48], rax
mov ebx, 0x5a
nop dword [rax]
mov word [rsp + 0x48], bx
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x140017d05
dec ebx
cmp ebx, 0x41
jge 0x140017b20
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor ebp, ebp
mov rbx, rbp
mov qword [rsp + 0x38], rbx
mov ecx, 0x27f6
call fcn.140010ae0
test rax, rax
je 0x140017b76
movzx edx, word [rax]
lea rcx, [rax + 2]
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rbx, rax
mov qword [rsp + 0x38], rax
lea rcx, [0x140045298]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r12, eax
test rbx, rbx
je 0x140017b93
test eax, eax
je 0x140017c88
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
movsxd r14, eax
lea esi, [r14 + r12]
cmp esi, r14d
jl 0x140017cfa
mov edx, esi
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov r13, rax
test rax, rax
je 0x140017cfa
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140017c1f
mov r9, r14
add r9, r9
movsxd rdx, esi
add rdx, rdx
mov r8, rbx
mov rcx, r13
call fcn.140024ea8
test eax, eax
je 0x140017c1f
cmp eax, 0xc
je 0x140017c14
cmp eax, 0x16
je 0x140017c09
cmp eax, 0x22
je 0x140017c09
cmp eax, 0x50
je 0x140017c1f
mov ecx, 0x80004005
call fcn.14000e4f0
int3
mov ecx, 0x80070057
call fcn.14000e4f0
int3
mov ecx, 0x8007000e
call fcn.14000e4f0
int3
lea rdx, [r12 + r12]
lea rcx, [r13 + r14*2]
mov r9, rdx
lea r8, [0x140045298]
call fcn.140024ea8
test eax, eax
je 0x140017c70
cmp eax, 0xc
je 0x140017c65
cmp eax, 0x16
je 0x140017c5a
cmp eax, 0x22
je 0x140017c5a
cmp eax, 0x50
je 0x140017c70
mov ecx, 0x80004005
call fcn.14000e4f0
int3
mov ecx, 0x80070057
call fcn.14000e4f0
int3
mov ecx, 0x8007000e
call fcn.14000e4f0
int3
lea rax, [r12 + r14]
mov word [r13 + rax*2], bp
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsp + 0x38], r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140012870
test eax, eax
jns 0x140017cad
mov ecx, eax
call fcn.14000e4f0
int3
mov rbx, qword [rsp + 0x38]
mov r9, rbx
mov edx, 0x27dd
lea r8d, [rdx + 0x42]
mov rcx, r15
call fcn.140013950
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
lea rcx, [rdi - 0xc]
cmp rcx, qword [0x140056010]
je 0x140017cf0
or ebx, 0xffffffff
lock xadd dword [rcx], ebx
dec ebx
test ebx, ebx
jg 0x140017cf0
call fcn.140025104
mov eax, 1
jmp 0x140017e63
mov ecx, 0x8007000e
call fcn.14000e4f0
nop
xor ebp, ebp
test rdi, rdi
jne 0x140017d10
mov eax, ebp
jmp 0x140017d19
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rdi
mov edx, eax
lea rcx, [r15 + 0xb8]
call fcn.1400115e0
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r12, eax
mov rax, qword [r15 + 0xc0]
lea rcx, [rax - 0xc]
or ebx, 0xffffffff
cmp dword [rcx], 1
jg 0x140017d51
cmp r12d, dword [rax - 4]
jle 0x140017d9c
cmp rcx, qword [0x140056010]
je 0x140017d89
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x140017d76
mov rcx, qword [r15 + 0xc0]
sub rcx, 0xc
call fcn.140025104
mov rax, qword [0x140056018]
mov qword [r15 + 0xc0], rax
mov rdi, qword [rsp + 0x30]
mov edx, r12d
lea rcx, [r15 + 0xc0]
call fcn.140010c20
test eax, eax
je 0x140017e10
lea r13, [r12 + r12]
lea eax, [r12 + 1]
movsxd rdx, eax
add rdx, rdx
mov r9, r13
lea r8, [rsp + 0x48]
mov rcx, qword [r15 + 0xc0]
call fcn.140024ea8
test eax, eax
je 0x140017df8
cmp eax, 0xc
je 0x140017ded
cmp eax, 0x16
je 0x140017de2
cmp eax, 0x22
je 0x140017de2
cmp eax, 0x50
je 0x140017df8
mov ecx, 0x80004005
call fcn.14000e4f0
int3
mov ecx, 0x80070057
call fcn.14000e4f0
int3
mov ecx, 0x8007000e
call fcn.14000e4f0
int3
mov rax, qword [r15 + 0xc0]
mov dword [rax - 8], r12d
mov rax, qword [r15 + 0xc0]
mov word [r13 + rax], bp
mov byte [r15 + 0xc8], bpl
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, r15
lea r8, [0x1400173e0]
xor edx, edx
xor ecx, ecx
call fcn.1400262d4
test rax, rax
je 0x140017e42
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rdi - 0xc]
cmp rcx, qword [0x140056010]
je 0x140017e5e
lock xadd dword [rcx], ebx
dec ebx
test ebx, ebx
jg 0x140017e5e
call fcn.140025104
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140025960
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret