Function at 0x140058d9c
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2190
call fcn.1400c29d0
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1401a2e90]
xor rax, rsp
mov qword [rsp + 0x2180], rax
mov r15, r8
mov qword [rsp + 0x40], r8
mov r13, rdx
mov r12, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x60], r9
xor ebx, ebx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x180]
call fcn.140058c14
test eax, eax
js 0x140059252
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x180]
call fcn.140058b14
test eax, eax
jne 0x140058e2e
mov eax, 0x80020009
jmp 0x140059252
mov rcx, qword [r12]
movzx eax, word [rcx]
cmp eax, 0x20
ja 0x140058e56
movabs rdx, 0x100002600
bt rdx, rax
jae 0x140058e56
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r12], rax
jmp 0x140058e2e
lea rdx, [rsp + 0x180]
mov rcx, r12
call fcn.140058c14
test eax, eax
js 0x140059252
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x1400591ec
cmp eax, 0x11
je 0x140059056
cmp eax, 0x13
je 0x140059002
cmp eax, 0x4008
jne 0x14005923e
lea rcx, [rsp + 0x180]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp word [rcx + rax*2], bx
jne 0x140058ea8
add eax, 2
mov qword [rsp + 0x70], rbx
movsxd rcx, eax
test eax, eax
je 0x140058ef1
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 2
jb 0x140058ee7
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x140058ef1
lea rcx, [rsp + 0x70]
call fcn.14005a978
jmp 0x140058efb
mov ecx, 0x80070216
call fcn.140001874
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140058f17
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x140058fde
lea r14, [rsp + 0x180]
cmp word [rsp + 0x180], bx
je 0x140058f7c
mov r15d, 0x30
mov rcx, r14
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [r14]
cmp cx, 0x5c
jne 0x140058f6b
cmp word [rax], r15w
jne 0x140058f6b
mov word [rdi], bx
add rdi, 2
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov r14, rax
jmp 0x140058f76
mov word [rdi], cx
add rdi, 2
add r14, 2
cmp word [r14], bx
jne 0x140058f3d
mov dword [rdi], 0
mov eax, ebx
mov rdx, qword [rsp + 0x70]
test rdx, rdx
setne al
test eax, eax
jne 0x140058f98
lea edi, [rax + 0xd]
jmp 0x140058fe3
mov r9d, ebx
mov r8, rdx
mov rcx, rsi
inc rcx
cmp word [r8 + rcx*2], bx
jne 0x140058fa1
inc ecx
lea r8, [r8 + rcx*2]
lea r9d, [r9 + rcx*2]
cmp ecx, 1
jne 0x140058f9e
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdx
lea r9d, [rcx + 6]
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x140058fe3
mov edi, 0xe
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140059231
lea rcx, [rsp + 0x70]
call fcn.14005a970
jmp 0x140059231
mov qword [rsp + 0x48], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x180]
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, r15
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x140059231
lea rax, [rsp + 0x180]
or rsi, 0xffffffffffffffff
mov rdi, rsi
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140059065
mov dword [rsp + 0x38], edi
test dil, 1
je 0x140059082
mov eax, 0x80004005
jmp 0x140059252
mov eax, edi
cdq
sub eax, edx
sar eax, 1
movsxd r14, eax
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x70], rbx
mov rcx, r14
test eax, eax
jne 0x1400590a2
mov rcx, rbx
jmp 0x1400590ba
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 1
jae 0x1400590ba
mov ecx, 0x80070216
call fcn.140001874
cmp rcx, 0x100
jbe 0x1400590d2
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.14005a978
jmp 0x1400590dc
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov rsi, qword [rsp + 0x40]
jmp 0x1400590fd
mov rcx, qword [rsp + 0x70]
test rcx, rcx
jne 0x140059126
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140059078
lea rcx, [rsp + 0x70]
call fcn.14005a970
jmp 0x140059078
movsxd r8, r14d
xor edx, edx
call fcn.1400c2d60
mov r8d, ebx
mov r9, rbx
movsxd r11, edi
test edi, edi
jle 0x1400591ad
mov r15d, 0x30
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
movsxd r10, eax
add r10, qword [rsp + 0x70]
movzx edx, word [rsp + r9*2 + 0x180]
mov eax, edx
cmp edx, r15d
jl 0x140059189
cmp eax, 0x39
jle 0x140059184
cmp eax, 0x40
jle 0x140059189
cmp eax, 0x46
jle 0x14005917f
add eax, 0xffffff9f
cmp eax, 5
ja 0x140059189
sub dl, 0x57
jmp 0x14005918b
sub dl, 0x37
jmp 0x14005918b
sub dl, r15b
jmp 0x14005918b
mov dl, bl
mov ecx, r8d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [r10], dl
inc r8d
inc r9
cmp r9, r11
jl 0x140059143
mov dword [rsp + 0x28], r14d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140059231
lea rcx, [rsp + 0x70]
call fcn.14005a970
jmp 0x140059231
lea rax, [rsp + 0x180]
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rax + rsi*2], bx
jne 0x1400591f8
lea eax, [rsi*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x180]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x14005923e
mov ecx, edi
call fcn.140058178
jmp 0x140059252
mov rdx, qword [rsp + 0x60]
mov rcx, r12
call fcn.140058c14
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x2180]
xor rcx, rsp
call fcn.1400bd920
add rsp, 0x2190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret