Function at 0x140008160
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14003b010]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x80]
xor esi, esi
test rcx, rcx
je 0x1400081b3
call qword [sym.imp.USER32.dll_UnregisterDeviceNotification]
mov qword [rbx + 0x80], rsi
mov qword [rbp - 0x25], 5
mov dword [rbp - 0xd], esi
mov dword [rbp - 0x29], 0x20
movups xmm0, xmmword [0x140031f70]
movups xmmword [rbp - 0x1d], xmm0
mov r8d, 1
lea rdx, [rbp - 0x29]
mov rcx, qword [rbx + 0x90]
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov rdi, rax
test rax, rax
jne 0x1400081f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 0x80], rdi
test rdi, rdi
jne 0x14000820f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [rdi + 2]
jmp 0x140008447
cmp dword [rbx + 0x120], esi
je 0x14000831b
mov qword [rbp - 5], 5
mov dword [rbp + 0x13], esi
mov dword [rbp - 9], 0x20
movups xmm0, xmmword [0x140032c58]
movups xmmword [rbp + 3], xmm0
mov r8d, 1
lea rdx, [rbp - 9]
mov rcx, qword [rbx + 0x90]
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov rdi, rax
test rax, rax
jne 0x14000825d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 0x78], rdi
test rdi, rdi
jne 0x140008274
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [rdi + 3]
jmp 0x140008447
cmp dword [rbx + 0x11c], esi
je 0x1400082e4
mov qword [rbp + 0x1b], 5
mov dword [rbp + 0x33], esi
mov dword [rbp + 0x17], 0x20
movups xmm0, xmmword [0x140032c38]
movups xmmword [rbp + 0x23], xmm0
mov r8d, 1
lea rdx, [rbp + 0x17]
mov rcx, qword [rbx + 0x90]
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov rdi, rax
test rax, rax
jne 0x1400082be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 0x88], rdi
test rdi, rdi
jne 0x1400082d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [rdi + 4]
jmp 0x140008447
lea rcx, [rbx + 0xc0]
call fcn.14000df40
mov eax, dword [rbx + 0xd8]
mov dword [rbx], eax
test eax, eax
je 0x14000831b
mov dword [rbp - 0x41], esi
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x140007c10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x588], rax
test byte [rbx + 0x25c], 1
je 0x140008447
lea rax, [rbp - 0x49]
mov qword [rbp - 0x39], rax
call fcn.140001230
mov rcx, rax
test rax, rax
je 0x140008470
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x49], rax
lea rdx, str.SOFTWARESonySysEffect
mov rsi, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x140008374
movzx edx, dx
lea rcx, [rbp - 0x49]
call fcn.140002e30
jmp 0x140008397
mov rax, rsi
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140008380
mov r8d, eax
lea rcx, [rbp - 0x49]
call fcn.1400030e0
nop
lea rax, [rbp - 0x49]
mov qword [rbp - 0x39], rax
mov rax, qword [rbp - 0x49]
lea rcx, [rax - 0x18]
mov rdi, qword [rbx + 0x598]
sub rdi, 0x18
cmp rcx, rdi
je 0x14000840a
cmp dword [rdi + 0x10], 0
jl 0x1400083f3
mov rdx, qword [rdi]
cmp qword [rcx], rdx
jne 0x1400083f3
call fcn.140002fc0
mov r15, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
sub ecx, 1
jg 0x1400083e6
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r15 + 0x18]
mov qword [rbx + 0x598], rax
jmp 0x140008406
mov r8d, dword [rax - 0x10]
mov rdx, rax
lea rcx, [rbx + 0x598]
call fcn.1400030e0
mov rax, qword [rbp - 0x49]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140008421
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rbx + 0x5d0], 1
lea rcx, [rbx + 0x598]
call fcn.140005980
test eax, eax
je 0x140008447
lea rcx, [rbx + 0xc0]
call fcn.14000e9c0
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140011000
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400014c0
int3