Function at 0x140054344
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x21b0
call fcn.140030b10
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.14002ae58
test eax, eax
js 0x1400547da
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x1a0]
call fcn.1400570b8
test eax, eax
jne 0x1400543e1
mov eax, 0x80020009
jmp 0x1400547da
mov rcx, r12
call fcn.14002a78c
lea rdx, [rsp + 0x1a0]
mov rcx, r12
call fcn.14002ae58
test eax, eax
js 0x1400547da
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x140054772
cmp eax, 0x11
je 0x1400545bf
cmp eax, 0x13
je 0x14005455e
cmp eax, 0x4008
jne 0x1400547c3
lea rax, [rsp + 0x1a0]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140054438
mov r14d, 2
add edi, r14d
mov qword [rsp + 0x90], rbx
movsxd rcx, edi
mov edx, r14d
call fcn.14002be88
cmp rax, 0x100
jbe 0x14005447f
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14005484c
mov rdi, qword [rsp + 0x90]
jmp 0x14005448f
lea rdi, [rsp + 0x98]
mov qword [rsp + 0x90], rdi
mov r13, qword [rsp + 0x60]
jmp 0x1400544b8
test rdi, rdi
je 0x140054536
lea rsi, [rsp + 0x1a0]
cmp word [rsp + 0x1a0], bx
je 0x14005450d
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 0x1400544fe
cmp word [rax], r15w
jne 0x1400544fe
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 0x140054504
mov word [rdi], cx
add rsi, r14
add rdi, 2
cmp word [rsi], bx
jne 0x1400544d5
mov word [rdi], bx
mov word [rdi + r14], bx
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x40]
mov rcx, r13
call fcn.140056bd8
mov esi, eax
mov rdi, qword [rsp + 0x90]
jmp 0x14005453b
mov esi, SafeArrayGetDim
lea rax, [rsp + 0x98]
cmp rdi, rax
je 0x1400547b6
lea rcx, [rsp + 0x90]
call fcn.14002be58
jmp 0x1400547b6
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.14002baa0
jmp 0x1400547b6
lea rax, [rsp + 0x1a0]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1400545cb
mov dword [rsp + 0x38], edi
test dil, 1
je 0x1400545e8
mov eax, 0x80004005
jmp 0x1400547da
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.14002be88
cmp rax, 0x100
jbe 0x14005463a
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14005484c
mov rcx, qword [rsp + 0x90]
jmp 0x14005464a
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x90], rcx
jmp 0x140054681
test rcx, rcx
jne 0x140054698
lea rcx, [rsp + 0x90]
call fcn.14002be58
jmp 0x1400545de
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov r9d, ebx
movsxd r11, edi
test edi, edi
jle 0x140054721
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 0x1400546fd
cmp eax, 0x39
jbe 0x1400546f8
cmp eax, 0x40
jbe 0x1400546fd
cmp eax, 0x46
jbe 0x1400546f3
add eax, 0xffffff9f
cmp eax, 5
ja 0x1400546fd
sub dl, 0x57
jmp 0x1400546ff
sub dl, 0x37
jmp 0x1400546ff
sub dl, r15b
jmp 0x1400546ff
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 0x1400546b5
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 0x1400547b6
lea rcx, [rsp + 0x90]
call fcn.14002be58
jmp 0x1400547b6
lea rax, [rsp + 0x1a0]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x14005477e
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 0x1400547c3
mov ecx, esi
call fcn.14002b118
jmp 0x1400547da
mov rdx, qword [rsp + 0x80]
mov rcx, r12
call fcn.14002ae58
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x21a0]
xor rcx, rsp
call fcn.14002dd40
add rsp, 0x21b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret