Function at 0x14005f980
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, rcx
mov rcx, rdx
mov r12, r8
mov rbp, rdx
call fcn.1400ee7d0
mov rdi, qword [r12]
mov r13, qword [r12 + 8]
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov rsi, rax
movzx eax, byte [rax]
lea ecx, [rax - 0x62]
cmp cl, 0x17
ja 0x14005f9f5
mov eax, 1
shl rax, cl
mov r14, rax
and r14d, 0x889081
jne 0x14005fc88
test eax, 0x440000
jne 0x14005fc20
mov dword [rsp + 0x80], 1
cmp byte [rsi], 0x73
je 0x14005fcf0
mov rcx, rbp
xor r8d, r8d
xor edx, edx
call fcn.1400f1dc0
mov ecx, 0x18
mov rdx, rax
mov eax, dword [rax + 8]
mov rbp, qword [rdx]
lea r12d, [rax + 1]
call fcn.1400e6130
mov qword [rsp + 0x88], rbp
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x38]
mov r8d, 1
mov rdx, rbx
call fcn.14005f210
lea rdx, [rsp + 0x60]
movdqa xmm0, xmmword [rsp + 0x80]
mov rcx, rax
mov r14, rax
movaps xmmword [rsp + 0x60], xmm0
call fcn.14005d540
mov rcx, qword [rdi + 0x30]
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r15d, r15d
jne 0x14005faa0
xor eax, eax
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [r14]
mov eax, dword [rdx + 8]
shl eax, 0xa
sar eax, 0x12
test ax, ax
jle 0x14005fab5
add byte [rdx + 8], 1
mov r14, qword [r14 + 0x18]
test r14, r14
jne 0x14005faa0
xor eax, eax
cmp byte [rbx], 0x2f
sete al
add rbx, rax
mov rcx, rbx
call fcn.1400e4a90
movzx edx, byte [rax]
mov rbx, rax
test dl, dl
je 0x140355e80
xor r10d, r10d
nop word [rax + rax]
cmp dl, 0x2f
jne 0x14005faf3
mov byte [rax], 0x5c
mov r10, rax
movzx edx, byte [rax + 1]
add rax, 1
test dl, dl
jne 0x14005fae8
mov byte [r10], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, rbx
mov qword [rsp + 0x58], r10
call fcn.1402b3210
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
mov r15, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov rdx, r15
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov r10, qword [rsp + 0x58]
test eax, eax
jne 0x14005fd20
lea r13, [r10 + 1]
mov rcx, r15
call fcn.14034efb0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, r13
call fcn.1402b3210
mov r15, rax
movzx eax, byte [rsi]
sub eax, 0x62
cmp al, 0x17
ja 0x14005fba0
mov edx, 0xcc9081
bt rdx, rax
jb 0x14005fbc6
mov rcx, rbp
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
call fcn.1402b3210
mov rcx, rax
mov rbp, rax
call sub.msvcrt.dll_wcslen
mov r14, rbp
lea r12d, [rax + rax + 2]
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov rcx, qword [rsp + 0x78]
mov rdx, r15
mov qword [rsp + 0x20], rbp
mov r9d, dword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14005fd70
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.14034efb0
mov rcx, r15
call fcn.14034efb0
mov rcx, r14
call fcn.14034efb0
jmp 0x14005fa81
mov dword [rsp + 0x80], 0xb
mov ecx, 8
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x14005fe2d
mov rcx, rbp
mov qword [rsp + 0x88], rax
call fcn.1400ee7d0
movzx eax, byte [rax]
cmp al, 0x74
je 0x14005fd60
cmp al, 0x78
jne 0x14005fcc0
mov rcx, rbp
call fcn.1400ee260
mov r14, rax
mov qword [r12], r14
mov rbp, qword [rsp + 0x88]
mov r12d, 8
jmp 0x14005fa35
mov dword [rsp + 0x80], 4
mov rcx, rbp
call fcn.1400ee7d0
movzx eax, byte [rax]
sub eax, 0x62
cmp al, 0x17
ja case.0x14005fcba.1
lea rdx, [0x140376224]
movzx eax, al
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov qword [rsp + 0x20], 0
lea r9, str.g_variant_get_as_qword
mov r8d, 0x132
lea rdx, str..._gio_gregistrysettingsbackend.c
lea rcx, [0x14037593a]
call fcn.1400d7d20
jmp 0x14005fc6b
mov rcx, rbp
lea rdx, [rsp + 0x78]
call fcn.1400ef4f0
mov rcx, rax
call fcn.1400e4a90
mov qword [rsp + 0x88], rax
mov rbp, rax
mov eax, dword [rsp + 0x78]
lea r12d, [rax + 1]
jmp 0x14005fa35
mov ecx, eax
lea r8, [rbx + 1]
lea rdx, str.gregistrybackend:_opening_key__s_failed
call fcn.14005f740
mov eax, dword [rsp + 0x80]
cmp eax, 1
je 0x14005fd90
cmp eax, 0xb
je 0x14005fd90
mov rcx, r15
call fcn.14034efb0
mov rcx, rbx
call fcn.14034efb0
jmp 0x14005fa81
mov rcx, rbp
call fcn.1400ee350
mov r14, rax
jmp 0x14005fc6b
mov r8, qword [rdi + 0x20]
mov qword [rsp + 0x20], r13
mov r9, rbx
mov ecx, eax
lea rdx, str.gregistrybackend:_setting_value__s_s_s_failed._n
call fcn.14005f740
jmp 0x14005fbf1
mov rcx, qword [rsp + 0x88]
call fcn.14034efb0
jmp 0x14005fd43
mov qword [rsp + 0x20], 0
lea r9, str.g_variant_get_as_dword
mov r8d, 0x123
lea rdx, str..._gio_gregistrysettingsbackend.c
lea rcx, [0x14037593a]
call fcn.1400d7d20
xor eax, eax
nop dword [rax + rax]
mov dword [rsp + 0x88], eax
lea rbp, [rsp + 0x88]
mov r12d, 4
jmp 0x14005fa35
mov rcx, rbp
call fcn.1400eddb0
movzx eax, al
jmp 0x14005fdd0
mov rcx, rbp
call fcn.1400edb90
jmp 0x14005fdd0
mov rcx, rbp
call fcn.1400ee080
jmp 0x14005fdd0
mov rcx, rbp
call fcn.1400edea0
cwde
jmp 0x14005fdd0
mov rcx, rbp
call fcn.1400edf90
movzx eax, ax
jmp 0x14005fdd0
mov rcx, rbp
call fcn.1400ee170
jmp 0x14005fdd0
mov qword [rsp + 0x20], 8
lea r9, [0x1403760a7]
lea r8, [0x140375a28]
mov edx, 4
lea rcx, [0x140375a4a]
call fcn.1400d2190
jmp 0x14005fe55
mov byte [0], 0
ud2