Function at 0x14004f538
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21a0
call fcn.14002ee30
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rsp + 0x2190], rax
mov r12, r8
mov qword [rsp + 0x60], r8
mov r13, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x70], r9
xor ebx, ebx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x190]
call fcn.140028f64
test eax, eax
js 0x14004f9be
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x190]
call fcn.14005301c
test eax, eax
jne 0x14004f5ca
mov eax, 0x80020009
jmp 0x14004f9be
mov rcx, r15
call fcn.140029100
lea rdx, [rsp + 0x190]
mov rcx, r15
call fcn.140028f64
test eax, eax
js 0x14004f9be
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x14004f958
cmp eax, 0x11
je 0x14004f7ae
cmp eax, 0x13
je 0x14004f735
cmp eax, 0x4008
jne 0x14004f9aa
lea rax, [rsp + 0x190]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x14004f621
mov r14d, 2
add edi, r14d
mov qword [rsp + 0x80], rbx
movsxd rcx, edi
mov edx, r14d
call fcn.1400293c0
cmp rax, 0x100
jbe 0x14004f668
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14004fa38
mov rdi, qword [rsp + 0x80]
jmp 0x14004f678
lea rdi, [rsp + 0x88]
mov qword [rsp + 0x80], rdi
jmp 0x14004f697
test rdi, rdi
je 0x14004f70d
lea rsi, [rsp + 0x190]
cmp word [rsp + 0x190], bx
je 0x14004f6e6
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 0x14004f6d7
cmp word [rax], 0x30
jne 0x14004f6d7
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 0x14004f6dd
mov word [rdi], cx
add rsi, r14
add rdi, 2
cmp word [rsi], bx
jne 0x14004f6ae
mov word [rdi], bx
mov word [rdi + r14], bx
mov r8, qword [rsp + 0x80]
mov rdx, r12
mov rcx, r13
call fcn.140052a9c
mov esi, eax
mov rdi, qword [rsp + 0x80]
jmp 0x14004f712
mov esi, SafeArrayGetDim
lea rax, [rsp + 0x88]
cmp rdi, rax
je 0x14004f99d
lea rcx, [rsp + 0x80]
call fcn.140028144
jmp 0x14004f99d
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x190]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test eax, eax
jns 0x14004f76d
lea rcx, [rsp + 0x40]
call fcn.1400285d4
mov eax, edi
jmp 0x14004f9be
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, r12
mov rcx, qword [r13]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
lea rcx, [rsp + 0x40]
call fcn.1400285d4
jmp 0x14004f99d
lea rax, [rsp + 0x190]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x14004f7ba
mov dword [rsp + 0x38], edi
test dil, 1
je 0x14004f7d7
mov eax, 0x80004005
jmp 0x14004f9be
mov eax, edi
cdq
mov r14d, 2
idiv r14d
movsxd r12, eax
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x80], rbx
mov rsi, r12
mov qword [rsp + 0x68], r12
lea edx, [r14 - 1]
mov rcx, r12
call fcn.1400293c0
cmp rax, 0x100
jbe 0x14004f829
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14004fa38
mov rcx, qword [rsp + 0x80]
jmp 0x14004f839
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x80], rcx
jmp 0x14004f86b
test rcx, rcx
jne 0x14004f882
lea rcx, [rsp + 0x80]
call fcn.140028144
jmp 0x14004f7cd
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov r9d, ebx
movsxd r11, edi
test edi, edi
jle 0x14004f90b
mov r8, rbx
mov eax, r9d
cdq
idiv r14d
movsxd r10, eax
add r10, qword [rsp + 0x80]
movzx edx, word [rsp + r8*2 + 0x190]
cmp dx, 0x30
jb 0x14004f8e7
cmp dx, 0x39
jbe 0x14004f8e2
cmp dx, 0x40
jbe 0x14004f8e7
cmp dx, 0x46
jbe 0x14004f8dd
cmp dx, 0x60
jbe 0x14004f8e7
cmp dx, 0x66
ja 0x14004f8e7
sub dl, 0x57
jmp 0x14004f8e9
sub dl, 0x37
jmp 0x14004f8e9
sub dl, 0x30
jmp 0x14004f8e9
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 0x14004f899
mov dword [rsp + 0x28], r12d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [r13]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
lea rax, [rsp + 0x88]
cmp qword [rsp + 0x80], rax
je 0x14004f99d
lea rcx, [rsp + 0x80]
call fcn.140028144
jmp 0x14004f99d
lea rax, [rsp + 0x190]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x14004f964
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x190]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r13]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x14004f9aa
mov ecx, esi
call fcn.14002920c
jmp 0x14004f9be
mov rdx, qword [rsp + 0x70]
mov rcx, r15
call fcn.140028f64
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x2190]
xor rcx, rsp
call fcn.14002c150
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret