Function at 0x140059234
Capabilities:
Set registry value

Disassembly:
push rbp
sub rsp, 0x220
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1b0], rcx
mov qword [rbp + 0x1b8], rdx
mov qword [rbp + 0x1c0], r8
mov qword [rbp + 0x1c8], r9
mov qword [rbp + 0x198], 0
call fcn.1400bbfe0
mov rax, qword [rbp + 0x1b0]
mov rdx, rax
lea rcx, [rbp + 0x1b0]
call fcn.1400bc3a0
mov rdx, qword [rbp + 0x1b8]
lea rax, [rbp + 0x1b8]
mov rcx, rax
call fcn.1400bc3a0
mov rdx, qword [rbp + 0x1c0]
lea rax, [rbp + 0x1c0]
mov rcx, rax
call fcn.1400bc3a0
mov rdx, qword [rbp + 0x1d0]
lea rax, [rbp + 0x1d0]
mov rcx, rax
call fcn.1400bc3a0
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 8], 0
mov qword [rbp], 0
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x48], 0
mov rax, qword [rbp + 0x1b0]
mov rcx, rax
call fcn.140059b0f
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x1d0]
mov qword [rbp + 0x188], rax
lea rax, [0x140679d5c]
mov qword [rbp + 0x180], rax
mov rdx, qword [rbp + 0x188]
mov rax, qword [rbp + 0x180]
mov rcx, rax
call fcn.1400bc410
test eax, eax
je 0x140059470
mov eax, dword [0x1406a35dc]
test eax, eax
je 0x140059412
mov rax, qword [0x1406a35c8]
mov qword [rbp + 0x108], rax
mov rax, qword [0x1406a31b0]
mov qword [rbp + 0x100], rax
mov eax, dword [0x1406a3604]
or eax, 0xf003f
cdqe
mov qword [rbp + 0xf8], rax
mov rax, rbp
mov qword [rbp + 0xf0], rax
mov r8, qword [rbp + 0xf8]
mov rdx, qword [rbp + 0x100]
mov rax, qword [rbp + 0x108]
mov rcx, qword [rbp + 0xf0]
mov qword [rsp + 0x20], rcx
mov r9, r8
mov r8d, 0
mov rcx, rax
call sub.ADVAPI32.dll_RegOpenKeyExW
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xe8]
mov qword [rbp - 0x28], rax
nop
jmp 0x140059580
nop
mov rax, qword [0x1406a35c8]
mov qword [rbp + 0x128], rax
mov rax, qword [0x1406a31b0]
mov qword [rbp + 0x120], rax
mov rax, rbp
mov qword [rbp + 0x118], rax
mov rcx, qword [rbp + 0x118]
mov rdx, qword [rbp + 0x120]
mov rax, qword [rbp + 0x128]
mov r8, rcx
mov rcx, rax
call sub.ADVAPI32.dll_RegOpenKeyW
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x110]
mov qword [rbp - 0x28], rax
jmp 0x140059580
nop
mov rax, qword [0x1406a35c8]
mov qword [rbp + 0x178], rax
lea rax, [rbp - 8]
mov qword [rbp + 0x170], rax
mov rax, qword [rbp + 0x1d0]
mov rcx, rax
mov rdx, qword [rbp + 0x170]
mov rax, qword [rbp + 0x178]
mov r8, rdx
mov rdx, rax
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [rbp + 0x16c], eax
mov eax, dword [rbp + 0x16c]
cdqe
mov qword [rbp - 0x40], rax
mov eax, dword [0x1406a35dc]
test eax, eax
je 0x140059538
mov rax, qword [0x1406a31b0]
mov qword [rbp + 0x148], rax
mov eax, dword [0x1406a3604]
or eax, 0xf003f
cdqe
mov qword [rbp + 0x140], rax
mov rax, rbp
mov qword [rbp + 0x138], rax
mov rax, qword [rbp - 8]
mov r8, qword [rbp + 0x140]
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x138]
mov qword [rsp + 0x20], rcx
mov r9, r8
mov r8d, 0
mov rcx, rax
call sub.ADVAPI32.dll_RegOpenKeyExW
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov qword [rbp - 0x28], rax
jmp 0x140059580
nop
mov rax, qword [0x1406a31b0]
mov qword [rbp + 0x160], rax
mov rax, rbp
mov qword [rbp + 0x158], rax
mov rax, qword [rbp - 8]
mov rcx, qword [rbp + 0x158]
mov rdx, qword [rbp + 0x160]
mov r8, rcx
mov rcx, rax
call sub.ADVAPI32.dll_RegOpenKeyW
mov qword [rbp + 0x150], rax
mov rax, qword [rbp + 0x150]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
test rax, rax
jne 0x14005994e
mov qword [rbp - 0x10], 0x400
call fcn.1400bc050
call fcn.1400bc050
call fcn.1400bc0b0
mov edx, eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400b9f50
call fcn.1400bc0b0
mov edx, eax
lea rax, [rbp + 0x18]
mov rcx, rax
call fcn.1400bc290
mov rax, qword [rbp + 0x1c8]
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 2
jne 0x14005966e
mov rax, qword [rbp + 0x1c0]
mov rcx, rax
call fcn.1400b8f40
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xd0]
add rax, rax
add rax, 1
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0x1b8]
mov rcx, rax
mov rax, qword [rbp]
mov rdx, qword [rbp + 0xc0]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0xc8]
mov qword [rsp + 0x20], rdx
mov r9d, 2
mov r8d, 0
mov rdx, rcx
mov rcx, rax
call sub.ADVAPI32.dll_RegSetValueExW
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
mov qword [rbp - 0x28], rax
jmp 0x140059929
cmp qword [rbp + 0xd8], 1
jne 0x140059709
mov rax, qword [rbp + 0x1c0]
mov rcx, rax
call fcn.1400b8f40
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xb0]
add rax, rax
add rax, 1
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0x1b8]
mov rcx, rax
mov rax, qword [rbp]
mov rdx, qword [rbp + 0xa0]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0xa8]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
mov rdx, rcx
mov rcx, rax
call sub.ADVAPI32.dll_RegSetValueExW
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
mov qword [rbp - 0x28], rax
jmp 0x140059929
cmp qword [rbp + 0xd8], 4
jne 0x140059790
mov rax, qword [rbp + 0x1c0]
mov rcx, rax
call fcn.1400b8cf0
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x38]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x1b8]
mov rcx, rax
mov rax, qword [rbp]
mov qword [rsp + 0x28], 4
mov rdx, qword [rbp + 0x88]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0
mov rdx, rcx
mov rcx, rax
call sub.ADVAPI32.dll_RegSetValueExW
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp - 0x28], rax
jmp 0x140059929
cmp qword [rbp + 0xd8], 3
jne 0x140059928
mov rax, qword [rbp + 0x1c0]
mov rcx, rax
call fcn.1400b8f40
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov rdx, rax
shr rdx, 0x3f
add rax, rdx
sar rax, 1
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rcx, rax
call fcn.1400ba480
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
mov qword [rbp - 0x30], rax
mov qword [rbp + 0x10], 0
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x10]
cmp rdx, rax
jle 0x1400598c2
call fcn.1400bc050
call fcn.1400bc050
mov rax, qword [rbp + 0x10]
add rax, rax
add rax, 1
mov qword [rbp + 0x48], rax
call fcn.1400bc0b0
mov ecx, eax
mov rax, qword [rbp + 0x1c0]
mov rdx, qword [rbp + 0x48]
mov r9d, ecx
mov r8d, 2
mov rcx, rax
call fcn.1400b9130
call fcn.1400bc0b0
mov edx, eax
lea rax, [rbp - 0x18]
mov rcx, rax
call fcn.1400bc290
call fcn.1400bc050
call fcn.1400bc050
lea rcx, [0x14067996a]
call fcn.1400bc470
mov rax, qword [rbp - 0x18]
mov rcx, rax
call fcn.1400bc470
call fcn.1400bc200
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov rcx, rax
call fcn.1400b8cf0
mov qword [rbp + 0x38], rax
call fcn.1400bc120
mov rax, qword [rbp + 0x38]
mov qword [rbp - 0x48], rax
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp + 0x30], rax
mov rdx, qword [rbp - 0x48]
mov rax, qword [rbp + 0x30]
mov rcx, rax
call fcn.1400ba890
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x10]
add rax, 1
mov qword [rbp + 0x10], rax
jmp 0x1400597e6
nop
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0x68], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x1b8]
mov rcx, rax
mov rax, qword [rbp]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9d, 3
mov r8d, 0
mov rdx, rcx
mov rcx, rax
call sub.ADVAPI32.dll_RegSetValueExW
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
mov rcx, rax
call fcn.1400ba4d0
mov qword [rbp + 0x50], rax
jmp 0x140059929
nop
mov rax, qword [rbp]
mov rcx, rax
call sub.ADVAPI32.dll_RegCloseKey
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x20], 1
mov rax, qword [rbp - 0x20]
mov qword [rbp + 0x198], rax
jmp 0x140059976
nop
mov rax, qword [rbp]
mov rcx, rax
call sub.ADVAPI32.dll_RegCloseKey
mov qword [rbp + 0xe0], rax
mov qword [rbp - 0x20], 0
mov rax, qword [rbp - 0x20]
mov qword [rbp + 0x198], rax
nop
mov rax, qword [rbp + 0x1d0]
mov rcx, rax
call fcn.1400bc370
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.1400bc370
mov rax, qword [rbp - 0x18]
mov rcx, rax
call fcn.1400bc370
mov rax, qword [rbp + 0x1b0]
mov rcx, rax
call fcn.1400bc370
mov rax, qword [rbp + 0x1c0]
mov rcx, rax
call fcn.1400bc370
mov rax, qword [rbp + 0x1b8]
mov rcx, rax
call fcn.1400bc370
mov rax, qword [rbp + 0x198]
add rsp, 0x220
pop rbp
ret