Function at 0x140017400
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 [0x140055b28]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15, rcx
lea rcx, [rsp + 0x30]
call fcn.1400157a0
nop
mov rdi, qword [rsp + 0x30]
movsxd rbx, dword [rdi - 8]
cmp word [rdi + rbx*2 - 2], 0x22
jne 0x140017468
lea rcx, [rsp + 0x30]
call fcn.1400109a0
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 0x140017665
dec ebx
cmp ebx, 0x41
jge 0x140017480
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.140010590
test rax, rax
je 0x1400174d6
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, [0x140044298]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r12, eax
test rbx, rbx
je 0x1400174f3
test eax, eax
je 0x1400175e8
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
movsxd r14, eax
lea esi, [r14 + r12]
cmp esi, r14d
jl 0x14001765a
mov edx, esi
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov r13, rax
test rax, rax
je 0x14001765a
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x14001757f
mov r9, r14
add r9, r9
movsxd rdx, esi
add rdx, rdx
mov r8, rbx
mov rcx, r13
call fcn.140024908
test eax, eax
je 0x14001757f
cmp eax, 0xc
je 0x140017574
cmp eax, 0x16
je 0x140017569
cmp eax, 0x22
je 0x140017569
cmp eax, 0x50
je 0x14001757f
mov ecx, 0x80004005
call fcn.14000e230
int3
mov ecx, 0x80070057
call fcn.14000e230
int3
mov ecx, 0x8007000e
call fcn.14000e230
int3
lea rdx, [r12 + r12]
lea rcx, [r13 + r14*2]
mov r9, rdx
lea r8, [0x140044298]
call fcn.140024908
test eax, eax
je 0x1400175d0
cmp eax, 0xc
je 0x1400175c5
cmp eax, 0x16
je 0x1400175ba
cmp eax, 0x22
je 0x1400175ba
cmp eax, 0x50
je 0x1400175d0
mov ecx, 0x80004005
call fcn.14000e230
int3
mov ecx, 0x80070057
call fcn.14000e230
int3
mov ecx, 0x8007000e
call fcn.14000e230
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.1400121a0
test eax, eax
jns 0x14001760d
mov ecx, eax
call fcn.14000e230
int3
mov rbx, qword [rsp + 0x38]
mov r9, rbx
mov edx, 0x27dd
lea r8d, [rdx + 0x42]
mov rcx, r15
call fcn.140013250
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
lea rcx, [rdi - 0xc]
cmp rcx, qword [0x140055010]
je 0x140017650
or ebx, 0xffffffff
lock xadd dword [rcx], ebx
dec ebx
test ebx, ebx
jg 0x140017650
call fcn.140024b64
mov eax, 1
jmp 0x1400177c3
mov ecx, 0x8007000e
call fcn.14000e230
nop
xor ebp, ebp
test rdi, rdi
jne 0x140017670
mov eax, ebp
jmp 0x140017679
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rdi
mov edx, eax
lea rcx, [r15 + 0xb8]
call fcn.140010f20
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 0x1400176b1
cmp r12d, dword [rax - 4]
jle 0x1400176fc
cmp rcx, qword [0x140055010]
je 0x1400176e9
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x1400176d6
mov rcx, qword [r15 + 0xc0]
sub rcx, 0xc
call fcn.140024b64
mov rax, qword [0x140055018]
mov qword [r15 + 0xc0], rax
mov rdi, qword [rsp + 0x30]
mov edx, r12d
lea rcx, [r15 + 0xc0]
call fcn.140010680
test eax, eax
je 0x140017770
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.140024908
test eax, eax
je 0x140017758
cmp eax, 0xc
je 0x14001774d
cmp eax, 0x16
je 0x140017742
cmp eax, 0x22
je 0x140017742
cmp eax, 0x50
je 0x140017758
mov ecx, 0x80004005
call fcn.14000e230
int3
mov ecx, 0x80070057
call fcn.14000e230
int3
mov ecx, 0x8007000e
call fcn.14000e230
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, [0x140016d40]
xor edx, edx
xor ecx, ecx
call fcn.140025d34
test rax, rax
je 0x1400177a2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rdi - 0xc]
cmp rcx, qword [0x140055010]
je 0x1400177be
lock xadd dword [rcx], ebx
dec ebx
test ebx, ebx
jg 0x1400177be
call fcn.140024b64
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400253c0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret