Function at 0x41ebd0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x2d8
mov rax, qword [0x0043e2c8]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rdx, r8
mov qword [rsp + 0x2c8], rbp
xor ebp, ebp
lea r8, [0x0043f910]
lea rcx, [0x00440fa0]
lea r9d, [rbp + 1]
mov qword [rsp + 0x88], 7
mov qword [rsp + 0x80], rbp
mov word [rsp + 0x70], bp
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x64], 0x104
call fcn.00418400
lea rdx, str.hwnd
lea rcx, [0x00440fa0]
call fcn.00418a50
test eax, eax
je 0x41ec6e
lea rdx, str.hwnd
lea rcx, [0x00440fa0]
call fcn.00418de0
mov rcx, rax
call fcn.00421380
movsxd rcx, eax
mov qword [0x00440f90], rcx
lea rdx, str.rdev
lea rcx, [0x00440fa0]
call fcn.00418a50
test eax, eax
je 0x41eca6
call fcn.0041e8c0
cmp qword [rsp + 0x88], 8
jb 0x41ec9f
mov rcx, qword [rsp + 0x70]
call fcn.00421100
xor eax, eax
jmp 0x41f186
lea rdx, str.uninstall
lea rcx, [0x00440fa0]
mov qword [rsp + 0x2b8], rdi
call fcn.00418a50
test eax, eax
je 0x41edd7
lea rdx, str.flags
lea rcx, [0x00440fa0]
call fcn.00418de0
mov rcx, rax
call fcn.00421380
lea rdx, str.driverinf
lea rcx, [0x00440fa0]
mov edi, eax
call fcn.00418de0
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, edi
mov rcx, rax
call qword [sym.imp.DIFXAPI.dll_DriverPackageUninstallW]
lea rdx, str.keypath
lea rcx, [0x00440fa0]
mov dword [rsp + 0x54], eax
call fcn.00418de0
mov qword [rsp + 0x40], rbp
mov rdx, rax
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf023f
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41f14b
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
lea rdx, str.Code
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [rsp + 0x50], ebp
mov rcx, qword [rsp + 0x58]
setne bpl
lea rax, [rsp + 0x60]
lea rdx, str.Reboot
xor r8d, r8d
mov r9d, 4
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41f14b
lea rdx, str.driverinf
lea rcx, [0x00440fa0]
call fcn.00418a50
test eax, eax
je 0x41f164
lea rdx, str.flags
lea rcx, [0x00440fa0]
call fcn.00418a50
test eax, eax
je 0x41f164
lea rdx, str.keypath
lea rcx, [0x00440fa0]
call fcn.00418a50
test eax, eax
je 0x41f164
lea rdx, str.driverinf
lea rcx, [0x00440fa0]
mov qword [rsp + 0x2d0], rbx
mov qword [rsp + 0x2c0], rsi
call fcn.00418de0
mov r8, qword [rsp + 0x88]
mov rsi, rax
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rsi
lea rdx, [rsp + 0x70]
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0x70]
cmp r8, 8
not rcx
cmovae rdx, rdi
cmp rsi, rdx
lea rbx, [rcx - 1]
mov rcx, qword [rsp + 0x80]
jb 0x41eece
cmp r8, 8
lea rax, [rsp + 0x70]
cmovae rax, rdi
lea rax, [rax + rcx*2]
cmp rax, rsi
jbe 0x41eece
cmp r8, 8
lea rax, [rsp + 0x70]
lea rdx, [rsp + 0x68]
cmovae rax, rdi
lea rcx, [rsp + 0x68]
mov r9, rbx
sub rsi, rax
sar rsi, 1
mov r8, rsi
call fcn.0041c880
jmp 0x41ef62
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
jbe 0x41eef7
call fcn.0041fc70
mov r8, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x70]
cmp r8, rbx
jae 0x41efcb
mov r8, rcx
lea rcx, [rsp + 0x68]
mov rdx, rbx
call fcn.0041d910
mov r8, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x70]
test rbx, rbx
je 0x41ef62
cmp r8, 8
lea rdx, [r8 + r8]
lea rcx, [rsp + 0x70]
cmovae rcx, rdi
lea rdi, [rbx + rbx]
mov r8, rsi
mov r9, rdi
call fcn.00421110
cmp qword [rsp + 0x88], 8
lea rax, [rsp + 0x70]
cmovae rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rbx
mov word [rdi + rax], bp
lea rdx, str.flags
lea rcx, [0x00440fa0]
call fcn.00418de0
mov rcx, rax
call fcn.00421380
lea rdx, str.preinstall
lea rcx, [0x00440fa0]
mov edi, eax
call fcn.00418a50
mov rsi, qword [rsp + 0x2c0]
test eax, eax
mov rbx, qword [rsp + 0x2d0]
je 0x41eff1
cmp qword [rsp + 0x88], 8
lea rcx, [rsp + 0x70]
cmovae rcx, qword [rsp + 0x70]
or edi, 1
mov edx, edi
call qword [sym.imp.DIFXAPI.dll_DriverPackagePreinstallW]
mov dword [rsp + 0x54], eax
jmp 0x41f019
test rbx, rbx
jne 0x41ef1d
lea rax, [rsp + 0x70]
cmp r8, 8
mov qword [rsp + 0x80], rbp
cmovae rax, rdi
mov word [rax], bp
jmp 0x41ef62
cmp qword [rsp + 0x88], 8
lea rcx, [rsp + 0x70]
lea r9, [rsp + 0x50]
cmovae rcx, qword [rsp + 0x70]
xor r8d, r8d
mov edx, edi
call qword [sym.imp.DIFXAPI.dll_DriverPackageInstallW]
mov dword [rsp + 0x54], eax
cmp qword [rsp + 0x88], 8
lea rcx, [rsp + 0x70]
lea r8, [rsp + 0x64]
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x90]
call qword [sym.imp.DIFXAPI.dll_DriverPackageGetPathW]
lea rdx, str.keypath
lea rcx, [0x00440fa0]
call fcn.00418de0
mov qword [rsp + 0x40], rbp
xor r9d, r9d
mov rdx, rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf023f
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41f14b
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
lea rdx, str.Code
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [rsp + 0x50], ebp
mov rcx, qword [rsp + 0x58]
setne bpl
lea rax, [rsp + 0x60]
lea rdx, str.Reboot
xor r8d, r8d
mov r9d, 4
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
lea rdi, [rsp + 0x90]
mov rcx, 0xffffffffffffffff
lea rdx, str.StorePath
mov r9d, 1
repne scasw ax, word [rdi]
lea rax, [rsp + 0x90]
xor r8d, r8d
not rcx
sub rcx, 1
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x88], 8
jb 0x41f160
mov rcx, qword [rsp + 0x70]
call fcn.00421100
xor eax, eax
jmp 0x41f17e
cmp qword [rsp + 0x88], 8
jb 0x41f179
mov rcx, qword [rsp + 0x70]
call fcn.00421100
mov eax, 1
mov rdi, qword [rsp + 0x2b8]
mov rbp, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.00420550
add rsp, 0x2d8
ret