Function at 0x180019650
Capabilities:
Query or enumerate registry value

Disassembly:
test ecx, ecx
je 0x18000e839
cmp dword [rdi], 0
jne 0x180019896
mov ebx, reloc.WS2_32.dll_listen
xor r15d, r15d
mov rax, qword [rsp + 0x40]
cmp r12d, 4
je 0x18003db61
mov rcx, qword [rsp + 0x48]
mov qword [rax], r15
call fcn.180008b84
jmp 0x1800198cf
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0xf8]
sub rsp, 0x1e8
mov rax, qword [0x18008a480]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov qword [r11 - 0x18], rbx
mov qword [r11 - 0x30], r13
mov qword [r11 - 0x38], r14
mov rax, r8
xor r8d, r8d
mov r14, rcx
mov rcx, qword [rbp + 0x130]
mov qword [r11 - 0x40], r15
mov r13d, r9d
mov qword [rsp + 0x38], rax
mov r15, rdx
mov edi, 2
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x50], r8
mov rcx, qword [0x18008a130]
lea rbx, [0x18008a130]
cmp rcx, rbx
je 0x1800196d0
test byte [rcx + 0x1c], 4
jne 0x1800452d8
cmp dword [0x18008a0d8], 0
je 0x18001af4d
cmp rcx, rbx
je 0x1800196ec
test byte [rcx + 0x1c], 4
jne 0x180045363
mov qword [rsp + 0x1d8], rsi
lea rdx, [0x18008b1f0]
mov qword [rsp + 0x1d0], r12
cmp r13d, 0x65
ja 0x180045490
mov rbx, r13
add rbx, rbx
cmp qword [rdx + rbx*8], 0
lea rsi, [rdx + rbx*8]
je 0x180045490
mov r12d, dword [rbp + 0x120]
test r15, r15
jne 0x180019aae
test r14, r14
jne 0x18001975a
lea rcx, [rsp + 0x58]
call fcn.1800199b0
mov edi, eax
test eax, eax
jne 0x18003db37
lea r14, [rsp + 0x58]
lea rdx, [0x18008b1f0]
jmp 0x18001975a
mov rcx, qword [r14]
mov r15, qword [rsp + 0x40]
test rcx, rcx
jne 0x1800453bc
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x18001977f
cmp byte [rdx + rbx*8 + 0xf], 0
jne 0x18001a1a5
mov r15, qword [r14 + 0x10]
test r15, r15
je 0x1800198d9
xor r8d, r8d
jmp 0x180019792
mov rsi, qword [rsi]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov rdx, rsi
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x180019dda
mov eax, dword [rsp + 0x30]
cmp r12d, eax
jne 0x18003db32
cmp eax, 1
jne 0x180028322
mov ebx, dword [rsp + 0x38]
mov rdi, qword [0x18008a160]
mov eax, 4
cmp ebx, eax
cmovbe ebx, eax
mov dword [rsp + 0x38], ebx
test rdi, rdi
je 0x180045427
lea rax, [fcn.180008b10]
cmp rdi, rax
jne 0x18004540c
mov ecx, ebx
call fcn.180008b10
mov rdi, rax
test rax, rax
je 0x18004541f
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
xor eax, eax
mov qword [rsp + 0x48], rdi
test rdi, rdi
je 0x18003db4c
mov dword [rdi], eax
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x18000e83e
mov eax, dword [rsp + 0x30]
cmp eax, 1
jne 0x180028347
test byte [rbp + 0x128], 0x10
mov ecx, dword [rsp + 0x38]
jne 0x18000e82c
xor r15d, r15d
test ecx, ecx
je 0x18003db59
mov eax, ecx
shr eax, 1
dec eax
js 0x1800198b4
cdqe
mov word [rdi + rax*2], r15w
mov ecx, dword [rsp + 0x38]
test byte [rbp + 0x128], 1
jne 0x18004543c
cmp r12d, 4
je 0x1800198cf
mov rax, qword [rsp + 0x40]
mov qword [rax], rdi
mov edi, ebx
test ebx, ebx
jne 0x180019dbc
mov r15, qword [rsp + 0x1b8]
mov r13, qword [rsp + 0x1c8]
mov r12, qword [rsp + 0x1d0]
mov rsi, qword [rsp + 0x1d8]
mov rbx, qword [rsp + 0x1e0]
lea rax, [rsp + 0x58]
cmp r14, rax
jne 0x180019916
mov rcx, r14
call fcn.180019950
jmp 0x180019916
mov rcx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x1c0]
test rcx, rcx
jne 0x1800454bb
mov eax, edi
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.180001000
add rsp, 0x1e8
pop rdi
pop rbp
ret
test rax, rax
je 0x180019792
jmp 0x180045389
lea rdx, [0x18008b1f0]
cmp r12d, 4
je 0x1800454a4
mov rax, qword [rsp + 0x40]
mov qword [rax], r15
jmp 0x1800198d9
xor r15d, r15d
jmp 0x1800198cf
mov r8d, dword [rbp + 0x128]
lea rax, [rsp + 0x30]
mov r9d, r12d
mov qword [rsp + 0x28], rax
mov edx, r13d
mov qword [rsp + 0x20], r15
call fcn.18001a1dc
mov edi, eax
test eax, eax
jne 0x18001977f
jmp 0x1800198d9
lea rcx, [0x18008ac20]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
cmp dword [0x18008a0d8], 0
jne 0x18001afe8
lea rcx, [sym.DNSAPI.dll_DnsGlobals]
xor edx, edx
mov r8d, 0x120
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
lea rcx, [rbp - 0x80]
xor edx, edx
mov r8d, 0x11c
mov dword [0x18008a36c], 1
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_2_1.dll_GetVersionExW]
test eax, eax
je 0x18004530e
movzx eax, byte [rbp + 0x9a]
cmp al, 1
jne 0x180023ee8
mov dword [0x18008a370], 1
mov dword [0x18008a0d8], 1
mov rcx, qword [0x18008a130]
cmp rcx, rbx
je 0x18001afe8
test byte [rcx + 0x1c], 4
jne 0x18004532d
lea rcx, [0x18008ac20]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
mov rcx, qword [0x18008a130]
mov rax, qword [rsp + 0x38]
xor r8d, r8d
jmp 0x1800196dd
cmp al, 3
jne 0x180023f18
mov dword [0x18008a374], 1
jmp 0x18001afc8
cmp al, dil
jne 0x18001afc8
mov dword [0x18008a37c], 1
jmp 0x180023eec
cmp eax, 2
jb 0x18003db3f
cmp eax, 3
jbe 0x1800197e7
cmp eax, 4
jne 0x1800453fe
mov rdi, qword [rsp + 0x40]
jmp 0x18001984b
cmp eax, 2
je 0x180019885
cmp eax, 7
je 0x180019885
xor r15d, r15d
jmp 0x1800198c1
mov edi, 0x3f2
xor r15d, r15d
jmp 0x180019dbc
mov edi, 0x57
xor r15d, r15d
jmp 0x180019dbc
mov edi, reloc.WS2_32.dll_ntohl
xor r15d, r15d
jmp 0x180019dbc
mov dword [rdi], r15d
jmp 0x1800198b0
mov rcx, qword [rsp + 0x48]
mov dword [rax], r15d
call fcn.180008b84
jmp 0x1800198cf
mov rcx, qword [rcx + 0x10]
lea r8, [0x180082450]
mov edx, reloc.WS2_32.dll_ntohl
mov r9, r14
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r15
call fcn.18005bd58
mov rcx, qword [0x18008a130]
mov rax, qword [rsp + 0x38]
xor r8d, r8d
jmp 0x1800196d0
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x114
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetVersionExW]
test eax, eax
je 0x18001afe8
jmp 0x18001afc8
mov eax, dword [0x18008a37c]
mov r9d, dword [0x18008a370]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [0x18008a374]
lea r8, [0x180082450]
mov edx, 0xa
mov dword [rsp + 0x20], eax
call fcn.18005b3d8
nop
jmp 0x18001afe8
mov rcx, qword [rcx + 0x10]
lea r8, [0x180082450]
mov edx, reloc.WS2_32.dll_inet_addr
mov r9d, r13d
call fcn.180058fb0
mov rax, qword [rsp + 0x38]
xor r8d, r8d
jmp 0x1800196ec
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, r15
mov rdx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x18003db37
mov r15, qword [rsp + 0x50]
jmp 0x18001978c
cmp byte [rdx + rbx*8 + 0xc], 0
je 0x18001976b
mov r8d, dword [rbp + 0x128]
lea rax, [rsp + 0x30]
mov r9d, r12d
mov qword [rsp + 0x28], rax
mov edx, r13d
mov qword [rsp + 0x20], r15
call fcn.18001a1dc
mov edi, eax
test eax, eax
je 0x1800198d9
lea rdx, [0x18008b1f0]
jmp 0x18001976b
cmp eax, 7
je 0x1800197e7
jmp 0x18003db3f
mov rcx, rdi
call qword [sym.DNSAPI.dll_DnsNotifyResolverClusterIp]
mov ecx, ebx
call rdi
nop
jmp 0x180019820
mov rdi, rax
jmp 0x18001983b
mov edx, ebx
mov ecx, 0x40
call qword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalAlloc]
mov rdi, rax
jmp 0x180019839
add ecx, ecx
call fcn.180008d40
mov rsi, rax
test rax, rax
jne 0x180045453
lea ebx, [rax + 0xe]
jmp 0x18000e841
mov edx, dword [rsp + 0x38]
mov r8, rax
mov rcx, rdi
lea r9d, [rdx + rdx]
shr edx, 1
call fcn.1800771d4
test eax, eax
jne 0x18004547e
mov rcx, rsi
call fcn.180008b84
mov ebx, reloc.WS2_32.dll_listen
jmp 0x18000e841
mov rcx, qword [rsp + 0x48]
call fcn.180008b84
mov rdi, rsi
jmp 0x1800198c1
mov r12d, dword [rbp + 0x120]
mov edi, 0x57
xor r15d, r15d
jmp 0x180019dc3
mov rcx, qword [rsp + 0x40]
mov rax, r13
add rax, rax
mov eax, dword [rdx + rax*8 + 8]
mov dword [rcx], eax
jmp 0x1800198d9
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
jmp 0x18001992c