Function at 0x140120b28
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2e0
mov rax, qword [0x1401beaa0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov dword [rsp + 0x38], 0
mov eax, 2
imul rax, rax, 0x11
mov ecx, reloc.WS2_32.dll_WSACleanup
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x18
mov ecx, reloc.WS2_32.dll_WSAGetLastError
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 8
mov ecx, 0x5c
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0xa
mov ecx, 0x69
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 6
mov ecx, 0x52
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 5
mov ecx, 0x41
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0xf
mov ecx, reloc.WS2_32.dll_WSAGetLastError
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x10
mov ecx, 0x66
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x16
mov ecx, reloc.WS2_32.dll_WSASetLastError
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 3
mov ecx, 0x54
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0
mov ecx, 0x53
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 2
mov ecx, 0x46
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 9
mov ecx, Ordinal_79
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x19
mov ecx, 0x67
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0xd
mov ecx, reloc.WS2_32.dll_WSAGetLastError
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x1a
mov ecx, WSACleanup
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x1b
mov ecx, 0x61
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x13
mov ecx, 0x43
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x14
mov ecx, WSACleanup
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 7
mov ecx, 0x45
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x1c
mov ecx, reloc.WS2_32.dll_WSASetLastError
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 1
mov ecx, reloc.WLDAP32.dll_Ordinal_79
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x1d
mov ecx, 0x68
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x1e
mov ecx, 0x79
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x12
mov ecx, 0x5c
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 4
mov ecx, VarDateFromR4
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x17
mov ecx, reloc.WS2_32.dll_WSACleanup
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x1f
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0x40
jae 0x140120db9
jmp 0x140120dbe
call fcn.1400b299c
xor eax, eax
mov rcx, qword [rsp + 0x58]
mov word [rsp + rcx + 0x90], ax
mov eax, 2
imul rax, rax, 0xe
mov ecx, reloc.WS2_32.dll_WSAStartup
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0xc
mov ecx, WSACleanup
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0xb
mov ecx, 0x63
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 0x15
mov ecx, 0x79
mov word [rsp + rax + 0x90], cx
mov eax, 2
imul rax, rax, 3
mov ecx, 0x68
mov word [rsp + rax + 0x70], cx
mov eax, 2
imul rax, rax, 0xa
mov ecx, 0x64
mov word [rsp + rax + 0x70], cx
mov eax, 2
imul rax, rax, 1
mov ecx, 0x61
mov word [rsp + rax + 0x70], cx
mov eax, 2
imul rax, rax, 8
mov ecx, 0x75
mov word [rsp + rax + 0x70], cx
mov eax, 2
imul rax, rax, 0
mov ecx, Ordinal_79
mov word [rsp + rax + 0x70], cx
mov eax, 2
imul rax, rax, 2
mov ecx, 0x63
mov word [rsp + rax + 0x70], cx
mov eax, 2
imul rax, rax, 7
mov ecx, 0x47
mov word [rsp + rax + 0x70], cx
mov eax, 2
imul rax, rax, 5
mov ecx, WSASetLastError
mov word [rsp + rax + 0x70], cx
mov eax, 2
imul rax, rax, 9
mov ecx, 0x69
mov word [rsp + rax + 0x70], cx
mov eax, 2
imul rax, rax, 6
mov ecx, 0x65
mov word [rsp + rax + 0x70], cx
mov eax, 2
imul rax, rax, 4
mov ecx, 0x69
mov word [rsp + rax + 0x70], cx
mov eax, 2
imul rax, rax, 0xb
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0x18
jae 0x140120f0e
jmp 0x140120f13
call fcn.1400b299c
xor eax, eax
mov rcx, qword [rsp + 0x60]
mov word [rsp + rcx + 0x70], ax
call fcn.140025ca4
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14002a694
nop
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x200
rep stosb byte [rdi], al
mov dword [rsp + 0x34], 0x200
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140121047
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140120fbd
mov byte [rsp + 0x30], 1
jmp 0x140121021
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140121021
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140121021
mov byte [rsp + 0x30], 1
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140121047
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.14002a8a8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x2f0]
call fcn.14002a3f8
mov eax, dword [rsp + 0x38]
or eax, 1
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x50]
sub rax, 0x18
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.140026400
mov rax, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400b2870
add rsp, 0x2e0
pop rdi
ret