Function at 0x404280
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
sub rsp, 0xb8
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax - 8], rbx
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
mov rax, qword [0x00460ad8]
mov qword [rsp + 0x80], rax
mov rbp, rcx
call fcn.0043a268
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
call fcn.0043a268
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rcx, rbp
call fcn.00403f10
mov rbx, 0xffffffffffffffff
test eax, eax
je 0x404461
xor eax, eax
mov rcx, rbx
lea rdi, str.System32DriversHdaudbus.sys
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.System32DriversHdaudbus.sys
lea rcx, [rsp + 0x30]
call fcn.00401c90
mov rdi, qword [rsp + 0x30]
add rdi, 0xffffffffffffffe8
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x404349
cmp rax, qword [rdi]
jne 0x404349
mov rsi, rdi
lock inc dword [rdi + 0x10]
jmp 0x404383
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rdi + 8]
call qword [rax]
mov rsi, rax
test rax, rax
jne 0x404365
call fcn.004015a0
int3
mov eax, dword [rdi + 8]
mov dword [rsi + 8], eax
mov eax, dword [rdi + 8]
inc eax
movsxd rdx, eax
lea r8, [rdi + 0x18]
lea rcx, [rsi + 0x18]
mov r9, rdx
call fcn.00418060
lea rax, [rsi + 0x18]
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.00403420
mov r8, qword [rax]
lea rdx, [0x00447888]
lea rcx, [rsp + 0x68]
call fcn.00418c30
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x4043d1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
lea rdx, [rbp + 0x290]
lea r8, str.RealtekInstallShield
lea rcx, [rsp + 0x58]
call fcn.004024c0
lea r8, [rsp + 0x38]
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
sete dil
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x404423
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
test dil, dil
je 0x404461
mov dword [rsp + 0x28], 0x14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.BUSDrvVersion
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x404481
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x40449e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rcx, qword [rsp + 0x80]
call fcn.004306c0
mov rbx, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
add rsp, 0xb8
ret