Function at 0x140031a80
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rdi, r9
movzx r14d, r8b
mov r12, rdx
mov r15, rcx
xor r13d, r13d
mov dword [rsp + 0x78], r13d
mov rbx, qword [rdx]
mov eax, dword [rbx - 0x10]
test eax, eax
jle 0x140032857
lea edx, [r13 + 0x2f]
mov rcx, rbx
call fcn.14008f928
test rax, rax
je 0x140032857
cmp word [rax], r13w
je 0x140032857
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140032857
call fcn.140002000
mov r10, rax
mov rax, qword [rdi]
lea esi, [r13 - 1]
cmp dword [rax - 0x10], r13d
jg 0x140031b1a
mov rdx, qword [r10]
mov rcx, r10
call qword [rdx + 0x30]
jmp 0x140031b55
mov eax, dword [rax - 8]
mov rcx, qword [rdi]
cmp eax, esi
jne 0x140031b48
mov rax, qword [r10]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, esi
mov r8d, dword [rcx - 0x10]
mov rdx, rcx
mov rcx, r10
call qword [rax + 0x28]
jmp 0x140031b55
cmp r10, qword [rcx - 0x18]
jne 0x140031b24
lock inc dword [rcx - 8]
mov rax, qword [rdi]
mov qword [rsp + 0x68], rax
cmp dword [rax - 0x10], 0
jne 0x140031b6e
lea rdx, [r15 + 0x30]
lea rcx, [rsp + 0x68]
call fcn.1400103b0
lea rcx, [rsp + 0x68]
call fcn.1400166d0
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], r13d
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, esi
mov r8d, esi
lea rdx, str.MimeDatabaseContent_Type_
mov rcx, rax
call qword [r10 + 0x28]
mov qword [rbp - 8], rax
mov r8, r12
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x28]
call fcn.140016f20
mov qword [rbp - 0x10], r13
lea rcx, [rbp + 0x24]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x140031c28
mov ebx, r13d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140031c1a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r13d
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140031c58
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140031c4e
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140031c58
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 8]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140031c88
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140031c7e
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140031c88
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
test ebx, ebx
jne 0x1400327da
test r14b, r14b
je 0x1400321ae
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400327df
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x40]
xor r8d, r8d
lea rdx, str.Extension
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140031ede
cmp dword [rbp - 0x40], 1
jne 0x140031ede
lea r9, [0x1400c5494]
lea r8, str.Extension
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call fcn.140029c70
nop
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], bl
mov byte [rsp + 0x20], bl
mov r9d, esi
mov r8d, esi
mov rdx, qword [rsp + 0x68]
mov rcx, rax
call qword [r10 + 0x28]
mov r9, rax
mov rcx, qword [rbp - 0x60]
test rcx, rcx
jne 0x140031d39
test rax, rax
je 0x140031d35
cmp word [rax], cx
jne 0x140031d8d
mov bl, 1
jmp 0x140031d8d
test r9, r9
jne 0x140031d44
cmp word [rcx], r9w
jmp 0x140031d8a
movzx eax, word [rcx]
cmp ax, word [r9]
jne 0x140031d8d
mov r10d, r13d
cmp ax, r10w
je 0x140031d7a
mov r8, r13
mov rdx, r13
nop dword [rax]
cmp ax, word [rdx + r9]
jne 0x140031d7a
inc r10d
inc r8
lea rdx, [r8 + r8]
movzx eax, word [rcx + rdx]
test ax, ax
jne 0x140031d60
movsxd rax, r10d
lea rdx, [rax + rax]
movzx eax, word [rdx + r9]
cmp word [rcx + rdx], ax
sete bl
lea rdx, [r9 - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140031db9
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140031daf
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140031db9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
test bl, bl
je 0x140031df2
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140031ded
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140031de3
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140031ded
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x140031f45
lea r8, str.Extension
lea rdx, [rbp - 0x20]
mov rcx, r15
call fcn.1400311c0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140031e7e
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x3c]
xor r8d, r8d
mov rdx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140031e38
cmp dword [rbp - 0x3c], 1
je 0x140031e7e
mov rbx, qword [rbp - 0x60]
mov rdi, qword [rbp - 0x20]
cmp qword [rsp + 0x50], 0
je 0x140031e7e
test rbx, rbx
je 0x140031e7e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140031eae
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140031ea4
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140031eae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140031ede
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140031ed4
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140031ede
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
cmp qword [rsp + 0x68], 0
jne 0x140031f03
test rcx, rcx
je 0x1400327df
lea rdx, str.Extension
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x140031f45
test rcx, rcx
je 0x1400327df
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Extension
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400327df
lea rax, [rbp + 0x14]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.CLSID
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003218e
cmp dword [rbp - 0x38], 1
jne 0x14003218e
lea r9, [0x1400c5494]
lea r8, str.CLSID
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x50]
call fcn.140029c70
nop
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, esi
mov r8d, esi
xor edx, edx
mov rcx, rax
call qword [r10 + 0x28]
mov r9, rax
xor bl, bl
mov rcx, qword [rbp - 0x58]
test rcx, rcx
jne 0x140031fe6
test rax, rax
je 0x140031fe2
cmp word [rax], cx
jne 0x14003203d
mov bl, 1
jmp 0x14003203d
test r9, r9
jne 0x140031ff1
cmp word [rcx], r9w
jmp 0x14003203a
movzx eax, word [rcx]
cmp ax, word [r9]
jne 0x14003203d
mov r10d, r13d
cmp ax, r10w
je 0x14003202a
mov r8, r13
mov rdx, r13
nop dword [rax]
cmp ax, word [r9 + rdx]
jne 0x14003202a
inc r10d
inc r8
lea rdx, [r8 + r8]
movzx eax, word [rcx + rdx]
test ax, ax
jne 0x140032010
movsxd rax, r10d
lea rdx, [rax + rax]
movzx eax, word [r9 + rdx]
cmp word [rcx + rdx], ax
sete bl
lea rdx, [r9 - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140032069
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14003205f
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140032069
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
test bl, bl
je 0x1400320a2
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14003209d
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140032093
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003209d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x1400327da
lea r8, str.CLSID
lea rdx, [rbp - 0x18]
mov rcx, r15
call fcn.1400311c0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003212e
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x34]
xor r8d, r8d
mov rdx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400320e8
cmp dword [rbp - 0x34], 1
je 0x14003212e
mov rbx, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x18]
cmp qword [rsp + 0x50], 0
je 0x14003212e
test rbx, rbx
je 0x14003212e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14003215e
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140032154
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003215e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14003218e
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140032184
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003218e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400327df
lea rdx, str.CLSID
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1400327da
cmp qword [rsp + 0x50], 0
je 0x1400327cd
lea r8, str.Extension
lea rdx, [rbp - 0x50]
mov rcx, r15
call fcn.1400311c0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140032491
lea rax, [rbp + 0x1c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x30]
xor r8d, r8d
mov rdx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140032491
cmp dword [rbp - 0x30], 1
jne 0x140032491
mov r14, qword [rbp - 0x50]
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, esi
mov r8d, esi
lea rdx, [0x1400c5494]
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x78], 4
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003240b
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x70], r13d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x74]
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003240b
mov ecx, dword [rsp + 0x74]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140032383
cmp ecx, 4
jne 0x14003240b
mov dword [rsp + 0x64], r13d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140032367
mov dword [rbp - 0x2c], 4
mov dword [rbp - 0x68], 0xffffffff
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x68]
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400322f6
mov dword [rsp + 0x64], r13d
jmp 0x140032367
mov eax, dword [rbp - 0x68]
cmp eax, 4
je 0x140032367
mov dword [rsp + 0x64], r13d
cmp eax, 1
jne 0x140032367
lea r9, [0x1400c5494]
mov r8, r14
lea rdx, [rbp]
lea rcx, [rsp + 0x50]
call fcn.140029c70
nop
mov rax, qword [rbp]
cmp dword [rax - 0x10], 0
jle 0x14003233b
mov rcx, rax
call fcn.140017960
mov dword [rsp + 0x64], eax
mov rax, qword [rbp]
lea rdx, [rax - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140032367
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14003235d
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140032367
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
movsxd rdx, dword [rsp + 0x64]
mov r9d, 0xa
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.140013580
jmp 0x140032407
mov edi, dword [rsp + 0x70]
inc rdi
shr rdi, 1
lea edx, [rdi + 1]
mov r9b, 1
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.140010590
mov rbx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x74]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rcx, edi
mov word [rbx + rcx*2], r13w
mov rax, qword [rbp - 0x78]
test rax, rax
jne 0x1400323dd
mov edx, r13d
jmp 0x1400323f4
mov rdx, rax
movzx ecx, word [rdx]
add rdx, 2
test cx, cx
jne 0x1400323e0
sub rdx, rax
sar rdx, 1
dec edx
mov dword [rax - 0x10], edx
mov ecx, dword [rax - 8]
cmp ecx, 0xffffffff
jne 0x140032407
mov ecx, 1
xchg dword [rax - 8], ecx
mov rbx, qword [rbp - 0x78]
cmp qword [rsp + 0x50], 0
je 0x140032460
test rbx, rbx
je 0x14003244c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Extension
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140032460
mov rdx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x78], r13d
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140032491
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140032487
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140032491
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400324c1
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400324b7
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400324c1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
cmp qword [rsp + 0x50], 0
je 0x1400327cd
lea r8, str.CLSID
lea rdx, [rbp - 0x48]
mov rcx, r15
call fcn.1400311c0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003279d
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x28]
xor r8d, r8d
mov rdx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003279d
cmp dword [rbp - 0x28], 1
jne 0x14003279d
mov r14, qword [rbp - 0x48]
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, esi
mov r8d, esi
lea rdx, [0x1400c5494]
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x78], 8
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003271b
mov dword [rbp - 0x80], 1
mov dword [rsp + 0x7c], r13d
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x80]
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003271b
mov ecx, dword [rbp - 0x80]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140032693
cmp ecx, 4
jne 0x14003271b
mov dword [rsp + 0x60], r13d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140032677
mov dword [rbp - 0x24], 4
mov dword [rbp - 0x64], 0xffffffff
lea rax, [rbp - 0x24]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x64]
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140032606
mov dword [rsp + 0x60], r13d
jmp 0x140032677
mov eax, dword [rbp - 0x64]
cmp eax, 4
je 0x140032677
mov dword [rsp + 0x60], r13d
cmp eax, 1
jne 0x140032677
lea r9, [0x1400c5494]
mov r8, r14
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x50]
call fcn.140029c70
nop
mov rax, qword [rbp + 8]
cmp dword [rax - 0x10], 0
jle 0x14003264b
mov rcx, rax
call fcn.140017960
mov dword [rsp + 0x60], eax
mov rax, qword [rbp + 8]
lea rdx, [rax - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140032677
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14003266d
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140032677
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
movsxd rdx, dword [rsp + 0x60]
mov r9d, 0xa
xor r8d, r8d
lea rcx, [rbp - 0x70]
call fcn.140013580
jmp 0x140032717
mov edi, dword [rsp + 0x7c]
inc rdi
shr rdi, 1
lea edx, [rdi + 1]
mov r9b, 1
xor r8d, r8d
lea rcx, [rbp - 0x70]
call fcn.140010590
mov rbx, rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x80]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rcx, edi
mov word [rbx + rcx*2], r13w
mov rax, qword [rbp - 0x70]
test rax, rax
jne 0x1400326ec
mov edx, r13d
jmp 0x140032704
mov rdx, rax
nop
movzx ecx, word [rdx]
add rdx, 2
test cx, cx
jne 0x1400326f0
sub rdx, rax
sar rdx, 1
dec edx
mov dword [rax - 0x10], edx
mov ecx, dword [rax - 8]
cmp ecx, 0xffffffff
jne 0x140032717
mov ecx, 1
xchg dword [rax - 8], ecx
mov rbx, qword [rbp - 0x70]
cmp qword [rsp + 0x50], 0
je 0x140032771
test rbx, rbx
je 0x14003275c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.CLSID
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140032771
mov rdx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14003279d
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140032793
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003279d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400327cd
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400327c3
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400327cd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.1400313a0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400327ef
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], r13d
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140032825
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14003281b
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140032825
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140032853
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140032849
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140032853
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov al, 1
jmp 0x14003288c
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14003288a
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140032880
mov esi, 0xffffffff
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14003288a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
xor al, al
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret