Function at 0x1400575e4
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2190
call fcn.140027860
sub rsp, rax
mov rax, qword [0x1400dc7a8]
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 + 0x68], r9
xor ebx, ebx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x180]
call fcn.14005afac
test eax, eax
js 0x140057a05
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x180]
call fcn.14005ee2c
test eax, eax
jne 0x140057668
mov eax, 0x80020009
jmp 0x140057a05
mov rcx, r15
call fcn.14005df90
lea rdx, [rsp + 0x180]
mov rcx, r15
call fcn.14005afac
test eax, eax
js 0x140057a05
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x140057999
cmp eax, 0x11
je 0x140057846
cmp eax, 0x13
je 0x1400577c1
cmp eax, 0x4008
jne 0x1400579f1
lea rax, [rsp + 0x180]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1400576bf
mov r14d, 2
add edi, r14d
mov qword [rsp + 0x70], rbx
movsxd rcx, edi
mov edx, r14d
call fcn.1400543d4
cmp rax, 0x100
jbe 0x1400576fd
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140057a84
mov rdi, qword [rsp + 0x70]
jmp 0x140057707
lea rdi, [rsp + 0x78]
mov qword [rsp + 0x70], rdi
jmp 0x140057723
test rdi, rdi
je 0x14005779f
lea rsi, [rsp + 0x180]
cmp word [rsp + 0x180], bx
je 0x14005777e
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x14005776f
cmp word [rax], 0x30
jne 0x14005776f
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rsi, rax
jmp 0x140057775
mov word [rdi], cx
add rsi, r14
add rdi, 2
cmp word [rsi], bx
jne 0x14005773a
mov word [rdi], bx
mov word [rdi + r14], bx
mov r8, qword [rsp + 0x70]
mov rdx, r13
mov rcx, r12
call fcn.14005dd78
mov esi, eax
mov rdi, qword [rsp + 0x70]
jmp 0x1400577a4
mov esi, SafeArrayGetDim
lea rax, [rsp + 0x78]
cmp rdi, rax
je 0x1400579e4
lea rcx, [rsp + 0x70]
call fcn.1400595a8
jmp 0x1400579e4
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]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x1400577ff
lea rcx, [rsp + 0x40]
call fcn.1400560d8
mov eax, edi
jmp 0x140057a05
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]
nop dword [rax + rax]
mov esi, eax
lea rcx, [rsp + 0x40]
call fcn.1400560d8
jmp 0x1400579e4
lea rax, [rsp + 0x180]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140057852
mov dword [rsp + 0x38], edi
test dil, 1
jne 0x1400578f2
mov eax, edi
cdq
mov r14d, 2
idiv r14d
movsxd r14, eax
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x70], rbx
mov rsi, r14
mov qword [rsp + 0x60], r14
mov edx, 1
mov rcx, r14
call fcn.1400543d4
cmp rax, 0x100
jbe 0x1400578b3
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140057a84
mov rcx, qword [rsp + 0x70]
jmp 0x1400578bd
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x70], rcx
jmp 0x1400578e3
test rcx, rcx
jne 0x1400578fc
lea rcx, [rsp + 0x70]
call fcn.1400595a8
mov eax, 0x80004005
jmp 0x140057a05
mov r8, rsi
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r11d, ebx
movsxd r10, edi
test edi, edi
jle 0x140057954
mov r9, rbx
movzx ecx, word [rsp + r9*2 + 0x180]
call fcn.140057f00
movzx r8d, al
mov ecx, r11d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl r8d, cl
mov edx, r11d
shr rdx, 1
mov rcx, qword [rsp + 0x70]
or byte [rdx + rcx], r8b
inc r11d
inc r9
cmp r9, r10
jl 0x140057913
mov dword [rsp + 0x28], r14d
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]
nop dword [rax + rax]
mov esi, eax
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400579e4
lea rcx, [rsp + 0x70]
call fcn.1400595a8
jmp 0x1400579e4
lea rax, [rsp + 0x180]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1400579a5
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]
nop dword [rax + rax]
mov esi, eax
test esi, esi
je 0x1400579f1
mov ecx, esi
call fcn.1400273b8
jmp 0x140057a05
mov rdx, qword [rsp + 0x68]
mov rcx, r15
call fcn.14005afac
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x2180]
xor rcx, rsp
call fcn.140024bd0
add rsp, 0x2190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret