Function at 0x410c30
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.0042a710
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x0043e2a8]
xor rax, rbp
mov qword [rbp + 0x1160], rax
mov r14, r8
mov qword [rbp + 0x18], r8
mov r15, rdx
mov qword [rbp + 0x10], rdx
mov rsi, rcx
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 8], r8
mov qword [rbp + 0x38], r9
lea rdx, [rbp + 0x160]
call fcn.0040f7f0
test eax, eax
js 0x4111bc
mov eax, dword [0x0043f860]
test al, 1
jne 0x410d0c
or eax, 1
mov dword [0x0043f860], eax
lea rax, [0x0042b654]
mov qword [0x0043f820], rax
mov word [0x0043f828], 8
lea rax, [0x0042b650]
mov qword [0x0043f830], rax
mov word [0x0043f838], 0x4008
lea rax, [0x0042b64c]
mov qword [0x0043f840], rax
mov word [0x0043f848], 0x13
lea rax, str.BDMS
mov qword [0x0043f850], rax
mov word [0x0043f858], 0x11
xor r12d, r12d
mov ebx, r12d
lea r13, [0x0043f820]
mov rdi, r13
nop
mov rdx, qword [rdi]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x410d4a
add ebx, 1
add rdi, 0x10
cmp ebx, 4
jb 0x410d20
mov eax, 0x80020009
jmp 0x4111bc
movsxd rax, ebx
shl rax, 4
movzx ebx, word [rax + r13 + 8]
mov rcx, qword [rsi]
mov al, byte [rcx]
cmp al, 9
jl 0x410d77
cmp al, 0xa
jle 0x410d6c
cmp al, 0xd
je 0x410d6c
cmp al, 0x20
jne 0x410d77
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [rsi], rax
jmp 0x410d57
lea rdx, [rbp + 0x160]
mov rcx, rsi
call fcn.0040f7f0
test eax, eax
js 0x4111bc
movzx eax, bx
cmp eax, 8
je 0x411163
cmp eax, 0x11
je 0x41100f
cmp eax, 0x13
je 0x410ed6
cmp eax, 0x4008
jne 0x4111a7
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov qword [rbp + 0x50], r12
movsxd rcx, eax
test eax, eax
je 0x410e06
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x410deb
mov ecx, 0x80070057
call fcn.00401050
cmp rcx, 0x100
jbe 0x410e06
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.0040fa30
mov rbx, qword [rbp + 0x50]
jmp 0x410e0e
lea rbx, [rbp + 0x58]
mov qword [rbp + 0x50], rbx
jmp 0x410e23
test rbx, rbx
je 0x410eb6
lea rdi, [rbp + 0x160]
cmp byte [rbp + 0x160], 0
je 0x410e98
nop
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
movzx ecx, byte [rdi]
cmp cl, 0x5c
jne 0x410e6b
cmp byte [rax], 0x30
jne 0x410e6b
mov byte [rbx], 0
add rbx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rdi, rax
jmp 0x410e93
mov byte [rbx], cl
movzx ecx, byte [rdi]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x410e8b
add rbx, 1
add rdi, 1
movzx eax, byte [rdi]
test al, al
je 0x410e98
mov byte [rbx], al
add rbx, 1
add rdi, 1
cmp byte [rdi], 0
jne 0x410e40
mov byte [rbx], 0
mov byte [rbx + 1], 0
mov r8, qword [rbp + 0x50]
mov rdx, r14
mov rcx, r15
call fcn.0040f5f0
mov edi, eax
mov rbx, qword [rbp + 0x50]
jmp 0x410ebb
mov edi, 0xe
lea rax, [rbp + 0x58]
cmp rbx, rax
je 0x41119a
lea rcx, [rbp + 0x50]
call fcn.0040fa20
jmp 0x41119a
call qword [0x0043f790]
mov r14d, eax
mov rbx, r12
mov qword [rbp + 0x10], rbx
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
movsxd r13, eax
add r13, r13
mov eax, 0x80000000
lea rcx, [r13 + rax]
mov eax, 0xffffffff
cmp rcx, rax
ja 0x410ff0
cmp r13d, 0x400
jg 0x410f52
movsxd rdi, r13d
mov rcx, rdi
call fcn.00401170
test al, al
je 0x410f52
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x410f3f
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.0042a710
sub rsp, rax
lea rcx, [rsp + 0x30]
jmp 0x410f83
movsxd rdi, r13d
or rax, 0xffffffffffffffff
sub rax, rdi
cmp rax, 0x10
jb 0x410fe5
lea rcx, [rdi + 0x10]
call fcn.0041a9d0
test rax, rax
jne 0x410f79
mov rcx, r12
jmp 0x410f83
mov qword [rax], r12
mov rbx, rax
lea rcx, [rax + 0x10]
shr rdi, 1
mov r9d, r14d
mov r8d, edi
lea rdx, [rbp + 0x160]
call fcn.00401000
test rax, rax
je 0x410ff0
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, qword [rbp + 0x18]
mov rcx, r15
call fcn.0040f5b0
mov edi, eax
test rbx, rbx
je 0x41119a
nop
nop
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.0041aaa0
test rbx, rbx
jne 0x410fd0
jmp 0x41119a
mov ecx, 0x80070057
call fcn.00401050
nop
test rbx, rbx
je 0x411005
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.0041aaa0
test rbx, rbx
jne 0x410ff5
mov eax, 0x8007000e
jmp 0x4111bc
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [rbp + 0x20], eax
test al, 1
je 0x41102f
mov eax, 0x80004005
jmp 0x4111bc
cdq
sub eax, edx
sar eax, 1
movsxd r13, eax
mov dword [rbp], r13d
mov qword [rbp + 0x50], r12
mov rcx, r13
test eax, eax
je 0x41107a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x41105f
mov ecx, 0x80070057
call fcn.00401050
cmp rcx, 0x100
jbe 0x41107a
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.0040fa30
mov rcx, qword [rbp + 0x50]
jmp 0x411082
lea rcx, [rbp + 0x58]
mov qword [rbp + 0x50], rcx
jmp 0x4110a6
test rcx, rcx
jne 0x4110c7
lea rax, [rbp + 0x58]
test rax, rax
je 0x4110bd
lea rcx, [rbp + 0x50]
call fcn.0040fa20
mov eax, 0x80004005
jmp 0x4111bc
movsxd r8, r13d
xor edx, edx
call fcn.0041cda0
mov r14d, r12d
mov r15, r12
movsxd rax, ebx
test ebx, ebx
jle 0x411124
mov r13, 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.0040f760
mov edx, r14d
and edx, 1
shl edx, 2
mov ecx, 4
sub ecx, edx
shl al, cl
or byte [rdi + rbx], al
add r14d, 1
add r15, 1
cmp r15, r13
jl 0x4110e1
mov r13d, dword [rbp]
mov dword [rsp + 0x28], r13d
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x50], rax
je 0x41119a
lea rcx, [rbp + 0x50]
call fcn.0040fa20
jmp 0x41119a
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r14
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x4111a7
mov ecx, edi
call fcn.0040f4e0
jmp 0x4111bc
mov rdx, qword [rbp + 0x38]
mov rcx, rsi
call fcn.0040f7f0
test eax, eax
cmovs r12d, eax
mov eax, r12d
mov rcx, qword [rbp + 0x1160]
xor rcx, rbp
call fcn.0041b280
lea rsp, [rbp + 0x1178]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret