Function at 0x14003c410
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x788]
sub rsp, 0x870
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140104508]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov rsi, rcx
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rbx
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], ebx
mov r9d, 0x20019
lea r8, [0x1400d3aa8]
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x38]
call fcn.140013ed0
test eax, eax
je 0x14003c531
mov r9d, 0x20019
lea r8, [0x1400d3aa8]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.140013ed0
test eax, eax
je 0x14003c531
lea rcx, [0x1400d3ad8]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov edx, edi
mov rcx, rsi
call fcn.140021d50
test eax, eax
je 0x14003c527
mov rax, rdi
add rax, 1
mov rdi, qword [rsi]
jne 0x14003c4ec
test rdi, rdi
jne 0x14003c51a
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 0xffffffff
lea r8, [0x1400d3ad8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x14003c51a
dec eax
movsxd r8, eax
mov word [rdi + r8*2], bx
mov edx, 0xffffffff
mov rcx, rsi
call fcn.140039aa0
mov rdi, qword [rsp + 0x38]
jmp 0x14003c5cd
mov dword [rsp + 0x30], 0x3ff
mov dword [rsp + 0x34], ebx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x1400cd920]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003c5bc
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14003c618
mov ecx, dword [rsp + 0x34]
test ecx, ecx
je 0x14003c5b7
cmp ecx, 2
jbe 0x14003c609
cmp ecx, 7
jne 0x14003c5b7
test al, 1
jne 0x14003c5b7
mov ecx, eax
shr ecx, 1
cmp ecx, 1
jb 0x14003c5b7
mov edx, eax
shr rdx, 1
cmp word [rsp + rdx*2 + 0x5e], 0
jne 0x14003c5b7
cmp ecx, 1
jbe 0x14003c61d
cmp word [rsp + rdx*2 + 0x5c], 0
je 0x14003c61d
mov word [rsp + 0x60], bx
test rdi, rdi
je 0x14003c5cd
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rbx
test rdi, rdi
je 0x14003c5db
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.1400bf680
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
test al, 1
jne 0x14003c5b7
shr rax, 1
cmp word [rsp + rax*2 + 0x5e], 0
jmp 0x14003c5b5
mov word [rsp + 0x60], bx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r15, eax
mov edx, r15d
mov rcx, rsi
call fcn.140021d50
test eax, eax
je 0x14003c684
lea r14, [r15 + r15]
lea ecx, [r15 + 1]
movsxd r8, ecx
add r8, r8
mov rcx, qword [rsi]
test r14, r14
je 0x14003c678
test rcx, rcx
jne 0x14003c663
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], socket
jmp 0x14003c6a1
cmp r8, r14
jb 0x14003c68e
mov r8, r14
lea rdx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsi]
mov dword [rcx - 8], r15d
mov rax, qword [rsi]
mov word [r14 + rax], bx
mov ebx, 1
jmp 0x14003c5cd
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x80070057
call fcn.140001ac0
int3