Function at 0x41e8c0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
sub rsp, 0xa8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x0043e2c8]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov qword [r11 - 0x18], 7
xor ebp, ebp
mov qword [r11 - 0x20], rbp
mov word [rsp + 0x78], bp
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x54], ebp
lea rdx, str.rdev
lea rcx, [0x00440fa0]
call fcn.00418de0
mov rsi, rax
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
lea rdx, [rsp + 0x78]
mov rdi, qword [rsp + 0x78]
mov r8, qword [rsp + 0x90]
cmp r8, 8
cmovae rdx, rdi
mov rcx, qword [rsp + 0x88]
cmp rsi, rdx
jb 0x41e9b3
lea rax, [rsp + 0x78]
cmp r8, 8
cmovae rax, rdi
lea rax, [rax + rcx*2]
cmp rax, rsi
jbe 0x41e9b3
lea rax, [rsp + 0x78]
cmp r8, 8
cmovae rax, rdi
sub rsi, rax
sar rsi, 1
mov r9, rbx
mov r8, rsi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.0041c880
mov r8, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x78]
jmp 0x41ea80
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
jbe 0x41e9dc
call fcn.0041fc70
mov r8, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x78]
cmp r8, rbx
jae 0x41ea00
mov r8, rcx
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.0041d910
mov r8, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x78]
jmp 0x41ea2c
test rbx, rbx
jne 0x41ea2c
mov qword [rsp + 0x88], rbp
lea rax, [rsp + 0x78]
cmp r8, 8
cmovae rax, rdi
mov word [rax], bx
mov r8, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x78]
jmp 0x41ea80
test rbx, rbx
je 0x41ea80
lea rcx, [rsp + 0x78]
cmp r8, 8
cmovae rcx, rdi
lea rdi, [rbx + rbx]
lea rdx, [r8 + r8]
mov r9, rdi
mov r8, rsi
call fcn.00421110
mov qword [rsp + 0x88], rbx
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rax, qword [rsp + 0x78]
mov word [rdi + rax], 0
mov r8, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
cmp r8, 8
cmovae rcx, rdi
lea rdx, [rsp + 0x50]
call fcn.0041e590
mov dword [rsp + 0x58], eax
test eax, eax
jne 0x41eab8
lea rcx, str.Device_removed_succesfully
call fcn.0041e4c0
mov edx, ebp
cmp dword [rsp + 0x50], ebp
setne dl
mov dword [rsp + 0x54], edx
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0xf023f
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareIntelDifx64
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Code
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Reboot
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rsp + 0x90], 8
jb 0x41eb6d
mov rcx, qword [rsp + 0x78]
call fcn.00421100
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.00420550
mov rbx, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
add rsp, 0xa8
ret