Function at 0x180007a60
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x11a8
call fcn.180041f20
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x18009b4d0]
xor rax, rbp
mov qword [rbp + 0x1160], rax
mov r15, r8
mov qword [rbp + 0x20], r8
mov r14, rdx
mov qword [rbp + 0x18], rdx
mov rsi, rcx
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 8], r8
mov qword [rbp + 0x38], r9
xor r13d, r13d
mov word [rbp], r13w
lea rdx, [rbp + 0x160]
call fcn.180005540
test eax, eax
js 0x180007f52
lea rdx, [rbp]
lea rcx, [rbp + 0x160]
call fcn.180005270
test eax, eax
jne 0x180007af3
mov eax, 0x80020009
jmp 0x180007f52
mov rcx, qword [rsi]
mov al, byte [rcx]
cmp al, 9
jl 0x180007b13
cmp al, 0xa
jle 0x180007b08
cmp al, 0xd
je 0x180007b08
cmp al, 0x20
jne 0x180007b13
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [rsi], rax
jmp 0x180007af3
lea rdx, [rbp + 0x160]
mov rcx, rsi
call fcn.180005540
test eax, eax
js 0x180007f52
movzx eax, word [rbp]
cmp eax, 8
je 0x180007efa
cmp eax, 0x11
je 0x180007d9f
cmp eax, 0x13
je 0x180007c71
cmp eax, 0x4008
jne 0x180007f3d
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov qword [rbp + 0x50], r13
movsxd rcx, eax
test eax, eax
je 0x180007ba3
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x180007b88
mov ecx, 0x80070057
call fcn.180003100
cmp rcx, 0x100
jbe 0x180007ba3
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.180005b90
mov rbx, qword [rbp + 0x50]
jmp 0x180007bab
lea rbx, [rbp + 0x58]
mov qword [rbp + 0x50], rbx
jmp 0x180007bc0
test rbx, rbx
je 0x180007c51
lea rdi, [rbp + 0x160]
cmp byte [rbp + 0x160], 0
je 0x180007c33
nop dword [rax]
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
movzx ecx, byte [rdi]
cmp cl, 0x5c
jne 0x180007c0a
cmp byte [rax], 0x30
jne 0x180007c0a
mov byte [rbx], 0
inc rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rdi, rax
jmp 0x180007c2e
mov byte [rbx], cl
movzx ecx, byte [rdi]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x180007c28
inc rbx
inc rdi
movzx eax, byte [rdi]
test al, al
je 0x180007c33
mov byte [rbx], al
inc rbx
inc rdi
cmp byte [rdi], 0
jne 0x180007be0
mov byte [rbx], 0
mov byte [rbx + 1], 0
mov r8, qword [rbp + 0x50]
mov rdx, r15
mov rcx, r14
call fcn.180004fb0
mov edi, eax
mov rbx, qword [rbp + 0x50]
jmp 0x180007c56
mov edi, InitCommonControls
lea rax, [rbp + 0x58]
cmp rbx, rax
je 0x180007f30
lea rcx, [rbp + 0x50]
call fcn.180005b30
jmp 0x180007f30
mov rbx, r13
mov qword [rbp + 0x18], rbx
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd r12, eax
add r12, r12
mov eax, 0x80000000
add rax, r12
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x180007d80
cmp r12d, 0x400
jg 0x180007ce1
movsxd rdi, r12d
mov rcx, rdi
call fcn.180005cd0
test al, al
je 0x180007ce1
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x180007cce
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.180041f20
sub rsp, rax
lea rcx, [rsp + 0x30]
jmp 0x180007d12
movsxd rdi, r12d
or rax, 0xffffffffffffffff
sub rax, rdi
cmp rax, 0x10
jb 0x180007d75
lea rcx, [rdi + 0x10]
call fcn.180022da8
test rax, rax
jne 0x180007d08
mov rcx, r13
jmp 0x180007d12
mov qword [rax], r13
mov rbx, rax
lea rcx, [rax + 0x10]
shr rdi, 1
mov r9d, 3
mov r8d, edi
lea rdx, [rbp + 0x160]
call fcn.1800048e0
test rax, rax
je 0x180007d80
lea r9, [rbp]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov r8d, dword [rbp]
mov rdx, r15
mov rcx, r14
call fcn.180004f00
mov edi, eax
test rbx, rbx
je 0x180007f30
nop dword [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.18002220c
test rbx, rbx
jne 0x180007d60
jmp 0x180007f30
mov ecx, 0x80070057
call fcn.180003100
nop
test rbx, rbx
je 0x180007d95
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.18002220c
test rbx, rbx
jne 0x180007d85
mov eax, 0x8007000e
jmp 0x180007f52
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [rbp + 0x10], eax
test al, 1
je 0x180007dbf
mov eax, 0x80004005
jmp 0x180007f52
cdq
sub eax, edx
sar eax, 1
movsxd r12, eax
mov dword [rbp], r12d
mov qword [rbp + 0x50], r13
mov rcx, r12
test eax, eax
je 0x180007e0a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x180007def
mov ecx, 0x80070057
call fcn.180003100
cmp rcx, 0x100
jbe 0x180007e0a
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.180005bc0
mov rcx, qword [rbp + 0x50]
jmp 0x180007e12
lea rcx, [rbp + 0x58]
mov qword [rbp + 0x50], rcx
jmp 0x180007e36
test rcx, rcx
jne 0x180007e57
lea rax, [rbp + 0x58]
test rax, rax
je 0x180007e4d
lea rcx, [rbp + 0x50]
call fcn.180005b40
mov eax, 0x80004005
jmp 0x180007f52
movsxd r8, r12d
xor edx, edx
call fcn.1800220a0
mov r14d, r13d
mov r15, r13
movsxd rax, ebx
test ebx, ebx
jle 0x180007ebb
mov r12, rax
mov eax, r14d
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
mov rbx, qword [rbp + 0x50]
movzx ecx, byte [rbp + r15 + 0x160]
call fcn.180005370
movzx r11d, al
mov ecx, r14d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
movzx ecx, al
shl r11b, cl
or byte [rdi + rbx], r11b
inc r14d
inc r15
cmp r15, r12
jl 0x180007e71
mov r12d, dword [rbp]
mov dword [rsp + 0x28], r12d
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x18]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x50], rax
je 0x180007f30
lea rcx, [rbp + 0x50]
call fcn.180005b40
jmp 0x180007f30
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x180007f3d
mov ecx, edi
call fcn.180004b50
jmp 0x180007f52
mov rdx, qword [rbp + 0x38]
mov rcx, rsi
call fcn.180005540
test eax, eax
cmovs r13d, eax
mov eax, r13d
mov rcx, qword [rbp + 0x1160]
xor rcx, rbp
call fcn.180022070
lea rsp, [rbp + 0x1178]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret