Function at 0x14005e210
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x14030c918]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r13, r9
mov rdi, r8
mov r14, rdx
mov qword [rsp + 0x50], rdx
mov rbx, qword [rsp + 0x2e0]
xor r15d, r15d
xor sil, sil
mov byte [rsp + 0x30], sil
mov rcx, rbx
call fcn.1400028b4
nop
test r14, r14
je 0x14005eaaf
mov r12, r14
test rdi, rdi
je 0x14005e2a3
cmp word [rdi], r15w
je 0x14005e2a3
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005e2a3
mov r12, qword [rsp + 0x40]
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x68], r15
mov ecx, 0x3e8
call fcn.140003e48
mov rdi, rax
xor edx, edx
mov r8d, 0x3e8
mov rcx, rax
call fcn.140217dc0
mov dword [rsp + 0x3c], r15d
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x34], 0x7d0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, r13
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005e3c7
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x14005e3c7
test rdi, rdi
je 0x14005e3bf
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x14005e39f
test al, 1
jne 0x14005e33b
shr rax, 1
cmp word [rdi + rax*2 - 2], 0
je 0x14005e3a3
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, r13
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005e426
cmp dword [rsp + 0x34], 4
jne 0x14005e426
mov r8d, dword [rsp + 0x3c]
lea rdx, [0x1402c58e4]
mov rcx, rbx
call fcn.140044350
mov sil, 1
mov byte [rsp + 0x30], sil
jmp 0x14005ea98
mov word [rdi], r15w
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14005e3b0
mov r8d, eax
jmp 0x14005e40e
mov eax, r15d
mov r8d, eax
jmp 0x14005e40e
test rdi, rdi
jne 0x14005e33b
mov dword [rsp + 0x38], r15d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r13
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005e33b
cmp dword [rsp + 0x34], 7
jne 0x14005e33b
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call fcn.140002aa8
mov sil, 1
mov byte [rsp + 0x30], sil
jmp 0x14005ea98
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, r13
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005e482
cmp dword [rsp + 0x34], 0xb
jne 0x14005e482
mov r8, qword [rsp + 0x48]
lea rdx, str._I64
mov rcx, rbx
call fcn.140044350
mov sil, 1
mov byte [rsp + 0x30], sil
jmp 0x14005ea98
call fcn.14001fcc0
cmp dword [rax + 8], 1
jl 0x14005ea98
call fcn.14001fcc0
mov r14, rax
lea rcx, [rsp + 0xd0]
call fcn.140018c50
nop
mov qword [rsp + 0x1f0], r15
mov qword [rsp + 0x208], 7
mov qword [rsp + 0x200], 3
mov eax, dword [0x1402c0b68]
mov dword [rsp + 0x1f0], eax
movzx eax, word [0x1402c0b6c]
mov word [rsp + 0x1f4], ax
mov word [rsp + 0x1f6], r15w
mov qword [rsp + 0x1d0], r15
mov rdx, r15
mov qword [rsp + 0x1e0], rdx
mov r8d, 7
mov qword [rsp + 0x1e8], r8
mov word [rsp + 0x1d0], r15w
mov ebx, r15d
nop dword [rax]
cmp ebx, dword [r14 + 0x10]
jge 0x14005e5b4
cmp ebx, 0xa
jge 0x14005e5b4
mov rax, r8
sub rax, rdx
lea rcx, [rsp + 0x1d0]
cmp rax, 2
jb 0x14005e583
lea rax, [rdx + 2]
mov qword [rsp + 0x1e0], rax
cmp r8, 8
cmovae rcx, qword [rsp + 0x1d0]
mov eax, dword [0x1402c0b40]
mov dword [rcx + rdx*2], eax
mov word [rcx + rdx*2 + 4], r15w
inc ebx
mov r8, qword [rsp + 0x1e8]
mov rdx, qword [rsp + 0x1e0]
jmp 0x14005e520
mov qword [rsp + 0x20], 2
lea r9, [0x1402c0b40]
mov edx, 2
call fcn.140020db0
inc ebx
mov r8, qword [rsp + 0x1e8]
mov rdx, qword [rsp + 0x1e0]
jmp 0x14005e520
mov qword [rsp + 0x230], r15
mov qword [rsp + 0x240], r15
mov qword [rsp + 0x248], 7
mov word [rsp + 0x230], r15w
mov qword [rsp + 0x210], r15
mov qword [rsp + 0x220], r15
mov qword [rsp + 0x228], 7
mov word [rsp + 0x210], r15w
lea r8, [rsp + 0x210]
lea rdx, [rsp + 0x230]
mov rcx, r14
call fcn.14001fe10
lea r15, [rsp + 0x1d0]
cmp qword [rsp + 0x1e8], 8
cmovae r15, qword [rsp + 0x1d0]
mov edx, 0x2040
lea rcx, [rsp + 0x70]
call fcn.1402158b8
mov rcx, qword [rsp + 0xe0]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + 0xe0]
add rcx, rdx
mov edx, dword [rax + 8]
call qword [rax]
lea rdx, [rsp + 0x230]
cmp qword [rsp + 0x248], 8
cmovae rdx, qword [rsp + 0x230]
mov r8, qword [rsp + 0x240]
lea rcx, [rsp + 0xe0]
call fcn.140016420
mov rbx, rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x80]
call fcn.1402158b8
mov r14, rax
lea rdx, [0x1402c0678]
mov rcx, rbx
call fcn.140016160
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov edx, dword [r14 + 8]
call qword [r14]
mov edx, 6
lea rcx, [rsp + 0x90]
call fcn.1402158e0
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call qword [rax]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov eax, 0x30
mov word [rcx + rbx + 0x58], ax
lea edx, [rax - 0x2d]
lea rcx, [rsp + 0xa0]
call fcn.1402158cc
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call qword [rax]
lea rdx, [rsp + 0x210]
cmp qword [rsp + 0x228], 8
cmovae rdx, qword [rsp + 0x210]
mov r8, qword [rsp + 0x220]
mov rcx, rbx
call fcn.140016420
mov rbx, rax
mov edx, 5
lea rcx, [rsp + 0xb0]
call fcn.1402158e0
mov r14, rax
lea rdx, [0x1402c0678]
mov rcx, rbx
call fcn.140016160
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov rdx, qword [r14 + 8]
call qword [r14]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov eax, 0x20
mov word [rcx + rbx + 0x58], ax
lea edx, [rax + 0x20]
lea rcx, [rsp + 0xc0]
call fcn.1402158b8
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov edx, dword [rax + 8]
call qword [rax]
lea rdx, [rsp + 0x1f0]
cmp qword [rsp + 0x208], 8
cmovae rdx, qword [rsp + 0x1f0]
mov r8, qword [rsp + 0x200]
mov rcx, rbx
call fcn.140016420
lea rdx, [0x1402c0b70]
mov rcx, rax
call fcn.140016160
mov rdx, r15
mov rcx, rax
call fcn.140016160
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14031c02c], eax
jg 0x14005eadd
xor ebx, ebx
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0xe8]
call fcn.140019820
nop
mov rdx, qword [reloc.OLEAUT32.dll_VariantInit]
cmp rdx, 8
jb 0x14005e86f
lea rdx, [rdx*2 + 2]
mov rcx, qword [0x14030d5d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e86a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005eb2c
call fcn.14000410c
movups xmm0, xmmword [rsp + 0x250]
movups xmmword [0x14030d5d0], xmm0
movups xmm1, xmmword [rsp + 0x260]
movups xmmword [0x14030d5e0], xmm1
mov qword [rsp + 0x260], rbx
mov qword [rsp + 0x268], 7
mov word [rsp + 0x250], bx
mov rdx, qword [rsp + 0x228]
cmp rdx, 8
jb 0x14005e8f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x210]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e8ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005eb32
call fcn.14000410c
mov qword [rsp + 0x220], rbx
mov qword [rsp + 0x228], 7
mov word [rsp + 0x210], bx
mov rdx, qword [rsp + 0x248]
cmp rdx, 8
jb 0x14005e955
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x230]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e950
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005eb38
call fcn.14000410c
mov qword [rsp + 0x240], rbx
mov qword [rsp + 0x248], 7
mov word [rsp + 0x230], bx
mov rdx, qword [rsp + 0x1e8]
cmp rdx, 8
jb 0x14005e9b9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e9b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005eb3e
call fcn.14000410c
mov qword [rsp + 0x1e0], rbx
mov qword [rsp + 0x1e8], 7
mov word [rsp + 0x1d0], bx
mov rdx, qword [rsp + 0x208]
cmp rdx, 8
jb 0x14005ea1d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ea18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005eb44
call fcn.14000410c
mov qword [rsp + 0x200], rbx
mov qword [rsp + 0x208], 7
mov word [rsp + 0x1f0], bx
lea rcx, [rsp + 0xd0]
call fcn.140018b40
call fcn.14001fcc0
lea rdx, [0x14030d5d0]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x14030d5d0]
mov r8, qword [0x14030d5e0]
mov rcx, rax
call fcn.140016420
lea rdx, str.Cant_handle_Registry_value_for:
mov rcx, rax
call fcn.140016160
mov rdx, r13
mov rcx, rax
call fcn.140016160
mov rcx, rax
call fcn.140017370
mov r14, qword [rsp + 0x50]
mov rcx, rdi
call fcn.140075f74
cmp r12, r14
je 0x14005eaaf
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x14005eab6
movzx eax, sil
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140212f90
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rcx, [0x14031c02c]
call fcn.1402133b4
xor ebx, ebx
cmp dword [0x14031c02c], 0xffffffff
jne 0x14005e813
mov qword [0x14030d5d0], rbx
movdqa xmm0, xmmword [0x1402c75d0]
movdqu xmmword [0x14030d5e0], xmm0
lea rcx, [0x14025fa00]
call fcn.1402131e8
lea rcx, [0x14031c02c]
call fcn.140213354
jmp 0x14005e813
call fcn.14021bfcc
nop
call fcn.14021bfcc
nop
call fcn.14021bfcc
nop
call fcn.14021bfcc
nop
call fcn.14021bfcc
int3