Function at 0x14004e450
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2190
call fcn.140017cd0
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1400866a0]
xor rax, rsp
mov qword [rsp + 0x2180], rax
mov r13, r8
mov r12, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x60], r9
xor ebx, ebx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x180]
call fcn.14004f8f4
test eax, eax
js 0x14004e87b
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x180]
call fcn.140051720
test eax, eax
jne 0x14004e4dd
mov eax, 0x80020009
jmp 0x14004e87b
mov rcx, r15
call fcn.1400512a4
lea rdx, [rsp + 0x180]
mov rcx, r15
call fcn.14004f8f4
test eax, eax
js 0x14004e87b
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x14004e815
cmp eax, 0x11
je 0x14004e69b
cmp eax, 0x13
je 0x14004e622
cmp eax, 0x4008
jne 0x14004e867
lea rax, [rsp + 0x180]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x14004e534
mov r14d, 2
add edi, r14d
mov qword [rsp + 0x70], rbx
movsxd rcx, edi
mov edx, r14d
call fcn.140040260
cmp rax, 0x100
jbe 0x14004e56d
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14004e900
jmp 0x14004e577
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14004e58e
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x14004e5fe
lea rsi, [rsp + 0x180]
cmp word [rsp + 0x180], bx
je 0x14004e5e2
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 0x14004e5d3
cmp word [rax], 0x30
jne 0x14004e5d3
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 0x14004e5d9
mov word [rdi], cx
add rsi, r14
add rdi, 2
cmp word [rsi], bx
jne 0x14004e5aa
mov word [rdi], bx
mov word [rdi + r14], bx
mov r8, qword [rsp + 0x70]
mov rdx, r13
mov rcx, r12
call fcn.1400511ac
mov edi, eax
jmp 0x14004e603
mov edi, 0xe
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14004e85a
lea rcx, [rsp + 0x70]
call fcn.14004f730
jmp 0x14004e85a
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x180]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test eax, eax
jns 0x14004e65a
lea rcx, [rsp + 0x40]
call fcn.140040290
mov eax, edi
jmp 0x14004e87b
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, r13
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
lea rcx, [rsp + 0x40]
call fcn.140040290
jmp 0x14004e85a
lea rax, [rsp + 0x180]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x14004e6a7
mov dword [rsp + 0x38], edi
test dil, 1
je 0x14004e6c4
mov eax, 0x80004005
jmp 0x14004e87b
mov eax, edi
cdq
mov r14d, 2
idiv r14d
movsxd rsi, eax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x70], rbx
mov rcx, rsi
lea edx, [r14 - 1]
call fcn.140040260
cmp rax, 0x100
jbe 0x14004e6ff
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14004e900
jmp 0x14004e709
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14004e728
mov rcx, qword [rsp + 0x70]
test rcx, rcx
jne 0x14004e751
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14004e6ba
lea rcx, [rsp + 0x70]
call fcn.14004f730
jmp 0x14004e6ba
movsxd r8, esi
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r9d, ebx
movsxd r10, edi
test edi, edi
jle 0x14004e7d7
mov r8, rbx
mov eax, r9d
cdq
idiv r14d
movsxd r11, eax
add r11, qword [rsp + 0x70]
movzx edx, word [rsp + r8*2 + 0x180]
cmp dx, 0x30
jb 0x14004e7b3
cmp dx, 0x39
jbe 0x14004e7ae
cmp dx, 0x40
jbe 0x14004e7b3
cmp dx, 0x46
jbe 0x14004e7a9
cmp dx, 0x60
jbe 0x14004e7b3
cmp dx, 0x66
ja 0x14004e7b3
sub dl, 0x57
jmp 0x14004e7b5
sub dl, 0x37
jmp 0x14004e7b5
sub dl, 0x30
jmp 0x14004e7b5
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 [r11], dl
inc r9d
inc r8
cmp r8, r10
jl 0x14004e768
mov dword [rsp + 0x28], esi
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14004e85a
lea rcx, [rsp + 0x70]
call fcn.14004f730
jmp 0x14004e85a
lea rax, [rsp + 0x180]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x14004e821
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x180]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x14004e867
mov ecx, edi
call fcn.14004ea20
jmp 0x14004e87b
mov rdx, qword [rsp + 0x60]
mov rcx, r15
call fcn.14004f8f4
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x2180]
xor rcx, rsp
call fcn.140015a80
add rsp, 0x2190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret