Function at 0x1400545c4
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21b0
call fcn.14002fa50
sub rsp, rax
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x21a0], rax
mov rsi, r8
mov qword [rsp + 0x40], r8
mov r15, rdx
mov qword [rsp + 0x60], rdx
mov r12, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x80], r9
xor ebx, ebx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x1a0]
call fcn.140029eb8
test eax, eax
js 0x140054a5a
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x1a0]
call fcn.140057298
test eax, eax
jne 0x140054661
mov eax, 0x80020009
jmp 0x140054a5a
mov rcx, r12
call fcn.1400297ec
lea rdx, [rsp + 0x1a0]
mov rcx, r12
call fcn.140029eb8
test eax, eax
js 0x140054a5a
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x1400549f2
cmp eax, 0x11
je 0x14005483f
cmp eax, 0x13
je 0x1400547de
cmp eax, 0x4008
jne 0x140054a43
lea rax, [rsp + 0x1a0]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1400546b8
mov r14d, 2
add edi, r14d
mov qword [rsp + 0x90], rbx
movsxd rcx, edi
mov edx, r14d
call fcn.14002aee8
cmp rax, 0x100
jbe 0x1400546ff
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.140054acc
mov rdi, qword [rsp + 0x90]
jmp 0x14005470f
lea rdi, [rsp + 0x98]
mov qword [rsp + 0x90], rdi
mov r13, qword [rsp + 0x60]
jmp 0x140054738
test rdi, rdi
je 0x1400547b6
lea rsi, [rsp + 0x1a0]
cmp word [rsp + 0x1a0], bx
je 0x14005478d
mov r15d, 0x30
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x14005477e
cmp word [rax], r15w
jne 0x14005477e
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rsi, rax
jmp 0x140054784
mov word [rdi], cx
add rsi, r14
add rdi, 2
cmp word [rsi], bx
jne 0x140054755
mov word [rdi], bx
mov word [rdi + r14], bx
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x40]
mov rcx, r13
call fcn.140056db8
mov esi, eax
mov rdi, qword [rsp + 0x90]
jmp 0x1400547bb
mov esi, SafeArrayGetDim
lea rax, [rsp + 0x98]
cmp rdi, rax
je 0x140054a36
lea rcx, [rsp + 0x90]
call fcn.14002aeb8
jmp 0x140054a36
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x50], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
lea rcx, [rsp + 0x50]
call fcn.14002ab00
jmp 0x140054a36
lea rax, [rsp + 0x1a0]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x14005484b
mov dword [rsp + 0x38], edi
test dil, 1
je 0x140054868
mov eax, 0x80004005
jmp 0x140054a5a
mov eax, edi
cdq
mov r14d, 2
idiv r14d
movsxd r13, eax
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x90], rbx
mov rsi, r13
mov qword [rsp + 0x78], r13
lea edx, [r14 - 1]
mov rcx, r13
call fcn.14002aee8
cmp rax, 0x100
jbe 0x1400548ba
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.140054acc
mov rcx, qword [rsp + 0x90]
jmp 0x1400548ca
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x90], rcx
jmp 0x140054901
test rcx, rcx
jne 0x140054918
lea rcx, [rsp + 0x90]
call fcn.14002aeb8
jmp 0x14005485e
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov r9d, ebx
movsxd r11, edi
test edi, edi
jle 0x1400549a1
mov r8, rbx
mov r15d, 0x30
mov eax, r9d
cdq
idiv r14d
movsxd r10, eax
add r10, qword [rsp + 0x90]
movzx edx, word [rsp + r8*2 + 0x1a0]
mov eax, edx
cmp edx, r15d
jb 0x14005497d
cmp eax, 0x39
jbe 0x140054978
cmp eax, 0x40
jbe 0x14005497d
cmp eax, 0x46
jbe 0x140054973
add eax, 0xffffff9f
cmp eax, 5
ja 0x14005497d
sub dl, 0x57
jmp 0x14005497f
sub dl, 0x37
jmp 0x14005497f
sub dl, r15b
jmp 0x14005497f
mov dl, bl
mov ecx, r9d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [r10], dl
inc r9d
inc r8
cmp r8, r11
jl 0x140054935
mov dword [rsp + 0x28], r13d
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
lea rax, [rsp + 0x98]
cmp qword [rsp + 0x90], rax
je 0x140054a36
lea rcx, [rsp + 0x90]
call fcn.14002aeb8
jmp 0x140054a36
lea rax, [rsp + 0x1a0]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1400549fe
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x140054a43
mov ecx, esi
call fcn.14002a178
jmp 0x140054a5a
mov rdx, qword [rsp + 0x80]
mov rcx, r12
call fcn.140029eb8
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x21a0]
xor rcx, rsp
call fcn.14002cdb0
add rsp, 0x21b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret