Function at 0x1400080d0
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 0x140008123
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 [0x140031f40]
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 0x140008165
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 0x80], rdi
test rdi, rdi
jne 0x14000817f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [rdi + 2]
jmp 0x1400083b7
cmp dword [rbx + 0x120], esi
je 0x14000828b
mov qword [rbp - 5], 5
mov dword [rbp + 0x13], esi
mov dword [rbp - 9], 0x20
movups xmm0, xmmword [0x140032c28]
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 0x1400081cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 0x78], rdi
test rdi, rdi
jne 0x1400081e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [rdi + 3]
jmp 0x1400083b7
cmp dword [rbx + 0x11c], esi
je 0x140008254
mov qword [rbp + 0x1b], 5
mov dword [rbp + 0x33], esi
mov dword [rbp + 0x17], 0x20
movups xmm0, xmmword [0x140032c08]
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 0x14000822e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 0x88], rdi
test rdi, rdi
jne 0x140008248
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [rdi + 4]
jmp 0x1400083b7
lea rcx, [rbx + 0xc0]
call fcn.14000df90
mov eax, dword [rbx + 0xd8]
mov dword [rbx], eax
test eax, eax
je 0x14000828b
mov dword [rbp - 0x41], esi
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x140007b80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x590], rax
test byte [rbx + 0x25c], 1
je 0x1400083b7
lea rax, [rbp - 0x49]
mov qword [rbp - 0x39], rax
call fcn.140001230
mov rcx, rax
test rax, rax
je 0x1400083e0
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 0x1400082e4
movzx edx, dx
lea rcx, [rbp - 0x49]
call fcn.140002e30
jmp 0x140008307
mov rax, rsi
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400082f0
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 + 0x5a0]
sub rdi, 0x18
cmp rcx, rdi
je 0x14000837a
cmp dword [rdi + 0x10], 0
jl 0x140008363
mov rdx, qword [rdi]
cmp qword [rcx], rdx
jne 0x140008363
call fcn.140002fc0
mov r15, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
sub ecx, 1
jg 0x140008356
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 + 0x5a0], rax
jmp 0x140008376
mov r8d, dword [rax - 0x10]
mov rdx, rax
lea rcx, [rbx + 0x5a0]
call fcn.1400030e0
mov rax, qword [rbp - 0x49]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140008391
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rbx + 0x5d8], 1
lea rcx, [rbx + 0x5a0]
call fcn.140005980
test eax, eax
je 0x1400083b7
lea rcx, [rbx + 0xc0]
call fcn.14000ea10
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140011050
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