Function at 0x14005dcc0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x14030b930]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r15, r9
mov qword [rsp + 0x50], r9
mov r14, r8
mov r12, rdx
mov qword [rsp + 0x58], rdx
mov rdi, qword [rsp + 0x2f0]
xor sil, sil
mov byte [rsp + 0x30], sil
mov rcx, rdi
call fcn.140002894
nop
test r12, r12
je 0x14005e572
mov r13, r12
test r14, r14
je 0x14005dd59
cmp word [r14], 0
je 0x14005dd59
xor ebx, ebx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r14
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
cmove r13, qword [rsp + 0x40]
jmp 0x14005dd5b
xor ebx, ebx
mov qword [rsp + 0x60], r13
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x70], rbx
mov ecx, 0x3e8
call fcn.140003e28
mov r14, rax
xor edx, edx
mov r8d, 0x3e8
mov rcx, rax
call fcn.140217880
mov dword [rsp + 0x3c], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x34], 0x7d0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, r15
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005de87
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x14005de87
test r14, r14
je 0x14005de6c
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x14005de56
test al, 1
jne 0x14005ddf2
shr rax, 1
cmp word [r14 + rax*2 - 2], 0
je 0x14005de5a
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r15
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005dee4
cmp dword [rsp + 0x34], 4
jne 0x14005dee4
mov r8d, dword [rsp + 0x3c]
lea rdx, [0x1402c4824]
mov rcx, rdi
call fcn.140043f20
mov sil, 1
mov byte [rsp + 0x30], sil
jmp 0x14005e55b
mov word [r14], bx
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [r14 + rbx*2], 0
jne 0x14005de61
mov r8d, ebx
mov rdx, r14
mov rcx, rdi
call fcn.140002a88
mov sil, 1
mov byte [rsp + 0x30], sil
jmp 0x14005e55b
test r14, r14
jne 0x14005ddf2
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r15
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005ddf2
cmp dword [rsp + 0x34], 7
jne 0x14005ddf2
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140002a88
mov sil, 1
mov byte [rsp + 0x30], sil
jmp 0x14005e55b
mov dword [rsp + 0x38], 8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r15
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005df40
cmp dword [rsp + 0x34], 0xb
jne 0x14005df40
mov r8, qword [rsp + 0x48]
lea rdx, str._I64
mov rcx, rdi
call fcn.140043f20
mov sil, 1
mov byte [rsp + 0x30], sil
jmp 0x14005e55b
call fcn.14001fe60
cmp dword [rax + 8], 1
jl 0x14005e55b
call fcn.14001fe60
mov r15, rax
lea rcx, [rsp + 0xe0]
call fcn.140018dc0
nop
mov qword [rsp + 0x200], rbx
mov qword [rsp + 0x218], 7
mov qword [rsp + 0x210], 3
mov eax, dword [0x1402bfb38]
mov dword [rsp + 0x200], eax
movzx eax, word [0x1402bfb3c]
mov word [rsp + 0x204], ax
mov word [rsp + 0x206], bx
mov qword [rsp + 0x1e0], rbx
mov r8, rbx
mov qword [rsp + 0x1f0], rbx
mov r9d, 7
mov qword [rsp + 0x1f8], r9
mov word [rsp + 0x1e0], bx
mov edi, ebx
cmp edi, dword [r15 + 0x10]
jge 0x14005e067
cmp edi, 0xa
jge 0x14005e067
mov rax, r9
sub rax, r8
lea rcx, [rsp + 0x1e0]
cmp rax, 2
jb 0x14005e036
lea rdx, [r8 + 2]
mov qword [rsp + 0x1f0], rdx
cmp r9, 8
cmovae rcx, qword [rsp + 0x1e0]
mov eax, dword [0x1402bfb10]
mov dword [rcx + r8*2], eax
mov word [rcx + rdx*2], bx
inc edi
mov r9, qword [rsp + 0x1f8]
mov r8, qword [rsp + 0x1f0]
jmp 0x14005dfd4
mov qword [rsp + 0x20], 2
lea r9, [0x1402bfb10]
mov edx, 2
call fcn.140020f80
inc edi
mov r9, qword [rsp + 0x1f8]
mov r8, qword [rsp + 0x1f0]
jmp 0x14005dfd4
mov qword [rsp + 0x240], rbx
mov qword [rsp + 0x250], rbx
mov qword [rsp + 0x258], 7
mov word [rsp + 0x240], bx
mov qword [rsp + 0x220], rbx
mov qword [rsp + 0x230], rbx
mov qword [rsp + 0x238], 7
mov word [rsp + 0x220], bx
lea r8, [rsp + 0x220]
lea rdx, [rsp + 0x240]
mov rcx, r15
call fcn.14001ffb0
lea r12, [rsp + 0x1e0]
cmp qword [rsp + 0x1f8], 8
cmovae r12, qword [rsp + 0x1e0]
mov edx, 0x2040
lea rcx, [rsp + 0x78]
call fcn.140215384
mov r8, rax
mov rax, qword [rsp + 0xf0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xf0]
add rcx, rax
mov edx, dword [r8 + 8]
call qword [r8]
lea rdx, [rsp + 0x240]
cmp qword [rsp + 0x258], 8
cmovae rdx, qword [rsp + 0x240]
mov r8, qword [rsp + 0x250]
lea rcx, [rsp + 0xf0]
call fcn.1400165e0
mov rdi, rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x88]
call fcn.140215384
mov r15, rax
lea rdx, [0x1402bf648]
mov rcx, rdi
call fcn.140016310
mov rdi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov edx, dword [r15 + 8]
call qword [r15]
mov edx, 6
lea rcx, [rsp + 0x98]
call fcn.1402153ac
mov r8, rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov rdx, qword [r8 + 8]
call qword [r8]
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
mov eax, 0x30
mov word [rcx + rdi + 0x58], ax
lea edx, [rax - 0x2d]
lea rcx, [rsp + 0xa8]
call fcn.140215398
mov r8, rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov rdx, qword [r8 + 8]
call qword [r8]
lea rdx, [rsp + 0x220]
cmp qword [rsp + 0x238], 8
cmovae rdx, qword [rsp + 0x220]
mov r8, qword [rsp + 0x230]
mov rcx, rdi
call fcn.1400165e0
mov rdi, rax
mov edx, 5
lea rcx, [rsp + 0xb8]
call fcn.1402153ac
mov r15, rax
lea rdx, [0x1402bf648]
mov rcx, rdi
call fcn.140016310
mov rdi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov rdx, qword [r15 + 8]
call qword [r15]
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
mov eax, 0x20
mov word [rcx + rdi + 0x58], ax
lea edx, [rax + 0x20]
lea rcx, [rsp + 0xc8]
call fcn.140215384
mov r8, rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov edx, dword [r8 + 8]
call qword [r8]
lea rdx, [rsp + 0x200]
cmp qword [rsp + 0x218], 8
cmovae rdx, qword [rsp + 0x200]
mov r8, qword [rsp + 0x210]
mov rcx, rdi
call fcn.1400165e0
lea rdx, [0x1402bfb40]
mov rcx, rax
call fcn.140016310
mov rdx, r12
mov rcx, rax
call fcn.140016310
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14031b04c], eax
jg 0x14005e5a0
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0xf8]
call fcn.1400199b0
nop
mov rdx, qword [reloc.OLEAUT32.dll_VariantInit]
cmp rdx, 8
jb 0x14005e330
lea rdx, [rdx*2 + 2]
mov rcx, qword [0x14030c5e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e32b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005e5ee
call fcn.140004104
movups xmm0, xmmword [rsp + 0x260]
movups xmmword [0x14030c5e0], xmm0
movups xmm1, xmmword [rsp + 0x270]
movups xmmword [0x14030c5f0], xmm1
mov qword [rsp + 0x270], rbx
mov qword [rsp + 0x278], 7
mov word [rsp + 0x260], bx
mov rdx, qword [rsp + 0x238]
cmp rdx, 8
jb 0x14005e3b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x220]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e3ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005e5f4
call fcn.140004104
mov qword [rsp + 0x230], rbx
mov qword [rsp + 0x238], 7
mov word [rsp + 0x220], bx
mov rdx, qword [rsp + 0x258]
cmp rdx, 8
jb 0x14005e416
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x240]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e411
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005e5fa
call fcn.140004104
mov qword [rsp + 0x250], rbx
mov qword [rsp + 0x258], 7
mov word [rsp + 0x240], bx
mov rdx, qword [rsp + 0x1f8]
cmp rdx, 8
jb 0x14005e47a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e475
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005e600
call fcn.140004104
mov qword [rsp + 0x1f0], rbx
mov qword [rsp + 0x1f8], 7
mov word [rsp + 0x1e0], bx
mov rdx, qword [rsp + 0x218]
cmp rdx, 8
jb 0x14005e4de
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e4d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005e606
call fcn.140004104
mov qword [rsp + 0x210], rbx
mov qword [rsp + 0x218], 7
mov word [rsp + 0x200], bx
lea rcx, [rsp + 0xe0]
call fcn.140018ca0
call fcn.14001fe60
lea rdx, [0x14030c5e0]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x14030c5e0]
mov r8, qword [0x14030c5f0]
mov rcx, rax
call fcn.1400165e0
lea rdx, str.Cant_handle_Registry_value_for:
mov rcx, rax
call fcn.140016310
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.140016310
mov rcx, rax
call fcn.1400174d0
mov r12, qword [rsp + 0x58]
mov rcx, r14
call fcn.1400758a4
cmp r13, r12
je 0x14005e572
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x14005e579
movzx eax, sil
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140212a70
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rcx, [0x14031b04c]
call fcn.140212e94
cmp dword [0x14031b04c], 0xffffffff
jne 0x14005e2d4
mov qword [0x14030c5e0], rbx
movdqa xmm0, xmmword [0x1402c6510]
movdqu xmmword [0x14030c5f0], xmm0
lea rcx, [0x14025f1b0]
call fcn.140212cc8
lea rcx, [0x14031b04c]
call fcn.140212e34
nop
jmp 0x14005e2d4
call fcn.14021b87c
nop
call fcn.14021b87c
nop
call fcn.14021b87c
nop
call fcn.14021b87c
nop
call fcn.14021b87c
int3