Function at 0x140051bc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rbx
push rdi
push r14
lea rbp, [r11 - 0x268]
sub rsp, 0x348
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rbp + 0x228], rax
mov rax, qword [rcx + 0x48]
xor bl, bl
mov qword [rsp + 0x50], r8
mov rdi, rdx
mov qword [rsp + 0x48], rdx
mov r14, rcx
mov byte [rsp + 0x40], bl
test rax, rax
je 0x140052126
cmp qword [rcx + 0x50], 0
je 0x140052126
cmp qword [rcx + 0x58], 0
je 0x140052126
cmp qword [rcx + 0x60], 0
je 0x140052126
cmp qword [rcx + 0x38], 0
je 0x140052126
cmp qword [rcx + 0x40], 0
je 0x140052126
cmp qword [rcx + 0x68], 0
je 0x140052126
cmp qword [rcx + 0x70], 0
je 0x140052126
mov qword [r11 + 0x20], rsi
xor r8d, r8d
xor esi, esi
mov qword [r11 - 0x38], r15
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
xor ecx, ecx
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 4]
call qword [0x1400fac68]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140051eea
mov rcx, rax
mov dword [rsp + 0x78], 0x20
mov rax, qword [r14 + 0x50]
lea r8, [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x44], esi
call qword [0x1400fac68]
test eax, eax
je 0x140051edd
mov qword [rsp + 0x340], r12
xor ebx, ebx
mov qword [rsp + 0x338], r13
nop dword [rax + rax]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x64]
mov rax, qword [r14 + 0x70]
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x28], ebx
mov r8d, 1
mov rcx, r15
mov qword [rsp + 0x20], rbx
mov r13, rbx
call qword [0x1400fac68]
test eax, eax
jne 0x140051d5f
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x140051d5f
mov ecx, dword [rsp + 0x58]
call fcn.1400c26fc
mov r13, rax
lea r9, [rsp + 0x64]
lea rax, [rsp + 0x58]
mov r8d, 1
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x78]
mov eax, dword [rsp + 0x58]
mov rcx, r15
mov dword [rsp + 0x28], eax
mov rax, qword [r14 + 0x70]
mov qword [rsp + 0x20], r13
call qword [0x1400fac68]
test eax, eax
je 0x140051d10
lea rax, [rsp + 0x5c]
mov dword [rsp + 0x5c], ebx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x68]
mov rax, qword [r14 + 0x70]
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x28], ebx
mov r8d, 2
mov rcx, r15
mov qword [rsp + 0x20], rbx
mov r12, rbx
call qword [0x1400fac68]
test eax, eax
jne 0x140051def
nop word [rax + rax]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x140051def
mov ecx, dword [rsp + 0x5c]
call fcn.1400c26fc
mov r12, rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x5c]
mov r8d, 2
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x78]
mov eax, dword [rsp + 0x5c]
mov rcx, r15
mov dword [rsp + 0x28], eax
mov rax, qword [r14 + 0x70]
mov qword [rsp + 0x20], r12
call qword [0x1400fac68]
test eax, eax
je 0x140051da0
test r13, r13
je 0x140051e3c
test rdi, rdi
je 0x140051e3c
cmp word [r13], 0
mov rbx, r13
je 0x140051e3a
mov rdx, rdi
mov rcx, rbx
call fcn.1400d94d8
test eax, eax
je 0x140051f02
mov rax, 0xffffffffffffffff
nop
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140051e20
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x140051e04
xor ebx, ebx
test r12, r12
je 0x140051e8c
test rdi, rdi
je 0x140051e8c
cmp word [r12], 0
mov rbx, r12
je 0x140051e8a
mov rdx, rdi
mov rcx, rbx
call fcn.1400d94d8
test eax, eax
je 0x140051f02
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140051e70
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x140051e51
xor ebx, ebx
test r13, r13
je 0x140051e99
mov rcx, r13
call fcn.1400c2470
test r12, r12
je 0x140051ea6
mov rcx, r12
call fcn.1400c2470
mov rax, qword [r14 + 0x50]
lea r8, [rsp + 0x78]
inc esi
mov rcx, r15
mov edx, esi
mov dword [rsp + 0x44], esi
call qword [0x1400fac68]
test eax, eax
jne 0x140051cd0
movzx ebx, byte [rsp + 0x40]
mov r13, qword [rsp + 0x338]
mov r12, qword [rsp + 0x340]
mov rax, qword [r14 + 0x40]
mov rcx, r15
call qword [0x1400fac68]
mov r15, qword [rsp + 0x330]
movzx eax, bl
mov rsi, qword [rsp + 0x388]
jmp 0x140052128
xor ebx, ebx
lea r9, [rsp + 0x6c]
xor eax, eax
mov dword [rsp + 0x60], ebx
mov qword [rbp + 0x220], rax
lea rdx, [rsp + 0x78]
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea r8d, [rbx + 9]
mov rax, qword [r14 + 0x70]
mov rcx, r15
mov dword [rsp + 0x28], ebx
mov edi, ebx
mov qword [rsp + 0x20], rbx
movups xmmword [rbp + 0x200], xmm0
movups xmmword [rbp + 0x210], xmm0
call qword [0x1400fac68]
test eax, eax
jne 0x140052072
nop word [rax + rax]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x140051faf
mov ecx, dword [rsp + 0x60]
call fcn.1400c26fc
mov rdi, rax
lea r9, [rsp + 0x6c]
lea rax, [rsp + 0x60]
mov r8d, 9
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x78]
mov eax, dword [rsp + 0x60]
mov rcx, r15
mov dword [rsp + 0x28], eax
mov rax, qword [r14 + 0x70]
mov qword [rsp + 0x20], rdi
call qword [0x1400fac68]
test eax, eax
je 0x140051f60
test rdi, rdi
je 0x140052072
mov rcx, 0xffffffffffffffff
mov rax, rcx
cmp word [rdi + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140051fc2
lea ebx, [rax + 0x28]
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.1400c26fc
lea r9, str.SYSTEMCurrentControlSetControlClass
mov dword [rsp + 0x74], 0
lea r8, str._s_s
mov dword [rsp + 0x70], 0x28
mov edx, ebx
mov qword [rsp + 0x20], rdi
mov rcx, rax
mov rsi, rax
call fcn.140017d20
lea rax, [rsp + 0x70]
mov r9d, 2
mov qword [rsp + 0x30], rax
lea r8, str.InfPath
lea rax, [rbp + 0x200]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov rcx, 0xffffffff80000002
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
xor ebx, ebx
test eax, eax
je 0x14005205e
mov word [rbp + 0x200], bx
mov rcx, rsi
call fcn.1400c2470
mov rcx, rdi
call fcn.1400c2470
mov esi, dword [rsp + 0x44]
mov rax, qword [r14 + 0x58]
lea r8, [rbp - 0x68]
mov r9d, reloc.WS2_32.dll_recv
mov dword [rbp - 0x68], 8
lea rdx, [rsp + 0x78]
mov dword [rbp - 0x64], 5
mov rcx, r15
mov qword [rbp - 0x60], 1
call qword [0x1400fac68]
test eax, eax
je 0x1400520fa
mov rax, qword [r14 + 0x38]
lea r8, [rsp + 0x78]
mov rdx, r15
mov ecx, 5
call qword [0x1400fac68]
test eax, eax
je 0x1400520fa
mov rax, qword [r14 + 0x60]
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x78]
mov dword [rbp - 0x50], 0x248
mov rcx, r15
call qword [0x1400fac68]
test eax, eax
je 0x1400520f5
test dword [rbp - 0x4c], 0x180
je 0x1400520f5
mov rax, qword [rsp + 0x50]
mov byte [rax], 1
mov byte [rsp + 0x40], 1
cmp word [rbp + 0x200], 0
je 0x14005211c
mov rax, qword [r14 + 0x68]
lea rcx, [rbp + 0x200]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [0x1400fac68]
mov rdi, qword [rsp + 0x48]
jmp 0x140051e8c
xor al, al
mov rcx, qword [rbp + 0x228]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x348
pop r14
pop rdi
pop rbx
pop rbp
ret