Function at 0x18000c700
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0xc8]
sub rsp, 0x1c8
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor eax, eax
mov edi, r9d
mov r12, rcx
mov qword [rsp + 0x50], r8
xor ecx, ecx
mov qword [rsp + 0x38], rax
cmp dword [0x1800b7ec0], eax
mov r14, rdx
mov rdx, qword [rbp + 0x120]
lea ebx, [rax + 0xa]
xorps xmm0, xmm0
mov qword [rsp + 0x48], rdx
mov esi, eax
mov qword [rsp + 0x70], rcx
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x40], rax
je 0x180037f26
mov qword [rsp + 0x1c0], r13
mov qword [rsp + 0x1b8], r15
cmp edi, 0x6d
ja 0x180038187
mov r13, rdi
lea r9, [0x180000000]
add r13, r13
mov r15, qword [r9 + r13*8 + 0x9a560]
test r15, r15
je 0x180038187
test r14, r14
jne 0x18000c9a5
test r8, r8
jne 0x18000c9db
test r12, r12
je 0x180038066
mov rcx, qword [r12]
test rcx, rcx
jne 0x180038092
mov rcx, qword [r12 + 0x10]
test rcx, rcx
je 0x18000c842
cmp byte [r9 + r13*8 + 0x9a56e], 0
je 0x18000c842
mov dword [rsp + 0x30], eax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rdx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x1800380c9
test byte [0x1800b78f0], 4
jne 0x1800380e5
test esi, esi
je 0x18003816f
mov rdx, qword [rsp + 0x48]
lea r9, [0x180000000]
xor eax, eax
mov r11, qword [r12 + 8]
mov qword [rsp + 0x38], r11
test r11, r11
je 0x18000c860
cmp byte [r9 + r13*8 + 0x9a56d], 0
jne 0x18000c8f3
mov r14, qword [rsp + 0x40]
mov esi, 2
test esi, esi
je 0x18000c8aa
xor r10d, r10d
lea r15, [0x180000000]
mov edx, r10d
nop dword [rax + rax]
cmp ebx, edi
je 0x18000c951
inc edx
lea rcx, [rdx + rdx*2]
mov ebx, dword [r15 + rcx*4 + 0xa15d0]
cmp ebx, 0xffffffff
jne 0x18000c880
mov rcx, qword [rsp + 0x48]
mov eax, dword [r15 + r13*8 + 0x9a568]
mov dword [rcx], eax
lea rax, [rsp + 0x60]
cmp r12, rax
je 0x180038179
test r14, r14
jne 0x18000ca00
mov eax, esi
mov r15, qword [rsp + 0x1b8]
mov r13, qword [rsp + 0x1c0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.18002d5c0
add rsp, 0x1c8
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rsp + 0x58], eax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, r11
mov rdx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x180038102
test byte [0x1800b78f0], 4
jne 0x18003811e
test esi, esi
je 0x18003816f
mov r11, qword [rsp + 0x38]
jmp 0x18000c860
mov eax, edx
lea rcx, [rax + rax*2]
mov r9d, dword [r15 + rcx*4 + 0xa15d4]
mov ebx, dword [r15 + rcx*4 + 0xa15d8]
cmp r9d, 0xffffffff
je 0x18000c89b
test r12, r12
lea rax, [rsp + 0x58]
mov r8, r10
mov qword [rsp + 0x20], rax
cmove r8, qword [rsp + 0x50]
mov rdx, r10
cmove rdx, r11
mov rcx, r12
call fcn.18000c700
mov esi, eax
test eax, eax
jne 0x18000c89b
jmp 0x180038148
mov r11, r14
mov qword [rsp + 0x38], r14
mov r14, rsi
test r11, r11
je 0x18000c86a
mov r8, rdx
mov rcx, r11
mov rdx, r15
call fcn.18001c1d4
mov esi, eax
test eax, eax
je 0x18000c8aa
mov r11, qword [rsp + 0x38]
jmp 0x18000c86a
xor edx, edx
mov rcx, r8
call fcn.180025050
mov qword [rsp + 0x38], rax
mov r11, rax
test rax, rax
je 0x18003803c
mov rdx, qword [rsp + 0x48]
mov r14, rax
jmp 0x18000c9b0
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x18000c8c1
lea rcx, [0x1800b7d60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [0x1800b7ec0], esi
jne 0x180038018
xor edx, edx
lea rcx, [sym.DNSAPI.dll_DnsGlobals]
mov r8d, 0x140
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
xor edx, edx
mov dword [0x1800b79cc], 1
mov r8d, 0x118
lea rcx, [rbp - 0x7c]
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x11c
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
jne 0x180037fac
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x114
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
jne 0x180037fdf
jmp 0x180038018
movzx eax, byte [rbp + 0x9a]
cmp al, 1
jne 0x180037fc3
mov dword [0x1800b79d0], 1
jmp 0x180037fdf
cmp al, 3
je 0x180037fd5
cmp al, 2
jne 0x180037fdf
mov dword [0x1800b79dc], 1
mov dword [0x1800b79d4], 1
mov dword [0x1800b7ec0], 1
test byte [0x1800b78f0], 4
je 0x180038018
mov eax, dword [0x1800b79dc]
lea rdx, [0x18009f188]
mov r9d, dword [0x1800b79d4]
mov ecx, ebx
mov r8d, dword [0x1800b79d0]
mov dword [rsp + 0x20], eax
call fcn.180087cfc
lea rcx, [0x1800b7d60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rdx, qword [rsp + 0x48]
xor eax, eax
mov r8, qword [rsp + 0x50]
jmp 0x18000c76f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r11, qword [rsp + 0x38]
mov esi, eax
mov r14, qword [rsp + 0x40]
test eax, eax
jne 0x18000c86a
mov esi, 0x3f3
jmp 0x18000c86a
lea rcx, [rsp + 0x60]
call fcn.18001b810
mov esi, eax
test eax, eax
jne 0x18003813b
mov rdx, qword [rsp + 0x48]
lea r12, [rsp + 0x60]
xor eax, eax
lea r9, [0x180000000]
jmp 0x18000c7c1
cmp byte [r9 + r13*8 + 0x9a56c], 0
je 0x18000c7ce
mov r8, rdx
mov rdx, r15
call fcn.18001c1d4
mov esi, eax
test eax, eax
je 0x18003816f
mov rdx, qword [rsp + 0x48]
lea r9, [0x180000000]
xor eax, eax
jmp 0x18000c7ce
cmp dword [rsp + 0x30], 4
jne 0x1800380db
cmp dword [rsp + 0x58], 4
je 0x18000c82c
mov esi, 0x3f2
jmp 0x18000c81f
mov ecx, 0xb
lea rdx, [0x18009f440]
mov r9d, esi
mov r8, r15
call fcn.180087538
nop
jmp 0x18000c82c
cmp dword [rsp + 0x58], 4
jne 0x180038114
cmp dword [rsp + 0x30], 4
je 0x18000c93f
mov esi, 0x3f2
jmp 0x18000c932
mov ecx, 0xb
lea rdx, [0x18009f440]
mov r9d, esi
mov r8, r15
call fcn.180087538
nop
jmp 0x18000c93f
mov r11, qword [rsp + 0x38]
mov r14, r11
jmp 0x18000c86a
test ebx, ebx
je 0x18003815d
cmp dword [rsp + 0x58], 0
mov r10d, 0
sete r10b
jmp 0x180038162
mov r10d, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
mov dword [rcx], r10d
jmp 0x18000c8aa
mov r14, qword [rsp + 0x40]
jmp 0x18000c8aa
mov rcx, r12
call fcn.18001bb68
nop
jmp 0x18000c8c1
mov dword [rdx], eax
mov eax, 0x57
jmp 0x18000c8c3