Function at 0x438a70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4c8
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x68], 0
nop
mov rax, qword [rbp + 0x38]
test rax, rax
jne 0x438c31
xor rbx, rbx
mov rcx, qword [rbp + 0x30]
mov edx, ebx
lea r8, [rbp + 0x2ae]
mov r9d, 0x20a
call sub.advapi32.dll_RegEnumKeyW
mov esi, eax
test esi, esi
je 0x438ae2
cmp esi, 0x103
jne 0x438c2b
xor rsi, rsi
jmp 0x438c2b
cmp word [rbp + 0x2ae], 0x2e
je 0x438c09
lea rax, [rbp + 0x2ae]
test rax, rax
je 0x438b0f
lea rax, [rbp + 0x2ae]
mov rcx, rax
call fcn.0040aa60
mov edi, eax
jmp 0x438b12
xor rdi, rdi
lea rcx, [rbp + 0x2ae]
lea rdx, [0x00438e64]
call fcn.00429d90
lea rcx, [rbp + 0xa4]
lea rdx, [0x00438e8c]
call fcn.00429d70
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x2ae]
lea r8, [rbp + 0x4b8]
call sub.advapi32.dll_RegOpenKeyW
mov esi, eax
test esi, esi
jne 0x438bae
mov edi, edi
mov word [rbp + rdi*2 + 0x2ae], 0
mov dword [rbp + 0xa0], 0x20a
mov rcx, qword [rbp + 0x4b8]
lea rdx, [0x00438ecc]
xor r8, r8
lea r9, [rbp + 0x9c]
lea rax, [rbp + 0xa4]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
mov esi, eax
mov rcx, qword [rbp + 0x4b8]
call sub.advapi32.dll_RegCloseKey_1
test esi, esi
jne 0x438c09
mov ecx, 2
mov eax, dword [rbp + 0xa0]
xor edx, edx
div ecx
mov eax, eax
mov word [rbp + rax*2 + 0xa2], 0
lea rax, [rbp + 0x2ae]
mov qword [rbp + 0x70], rax
mov byte [rbp + 0x78], 0xa
lea rax, [rbp + 0xa4]
mov qword [rbp + 0x80], rax
mov byte [rbp + 0x88], 0xa
lea rcx, [0x00438ece]
lea rdx, [rbp + 0x70]
mov r8d, 1
call fcn.004354a0
mov rax, qword [0x004898f8]
cmp dword [rax], 0
je 0x438c23
mov eax, 1
mov dword [rbp + 0x44], eax
jmp 0x438def
add ebx, 1
jmp 0x438aaf
nop
jmp 0x438deb
mov rax, qword [rbp + 0x38]
cmp word [rax], 0x2e
jne 0x438c7b
lea rcx, [rbp + 0x68]
mov rdx, qword [0x00489be8]
call fcn.0040eed0
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x58], rax
mov byte [rbp + 0x60], 0xa
mov rcx, qword [rbp + 0x68]
mov edx, 1
lea r8, [rbp + 0x58]
xor r9, r9
call fcn.0043cde0
mov eax, 0x7b
mov dword [rbp + 0x44], eax
jmp 0x438def
mov rcx, qword [rbp + 0x38]
xor rdx, rdx
call fcn.0043d840
mov rcx, rax
mov qword [rbp + 0x38], rcx
mov dx, 0x20
call fcn.00429ce0
test rax, rax
je 0x438ca1
mov word [rax], 0
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x58], rax
mov byte [rbp + 0x60], 0xa
lea rcx, [rbp + 0x2ae]
lea rdx, [0x00438ede]
lea r8, [rbp + 0x58]
xor r9, r9
call fcn.00429e90
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x2ae]
lea r8, [rbp + 0x4b8]
call sub.advapi32.dll_RegOpenKeyW
mov esi, eax
test esi, esi
je 0x438d1e
lea rcx, [rbp + 0x50]
mov rdx, qword [0x00489be8]
call fcn.0040eed0
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x58], rax
mov byte [rbp + 0x60], 0xa
mov rcx, qword [rbp + 0x50]
mov edx, 1
lea r8, [rbp + 0x58]
xor r9, r9
call fcn.0043cde0
mov dword [rbp + 0x44], esi
jmp 0x438def
mov dword [rbp + 0xa0], 0x20a
mov rcx, qword [rbp + 0x4b8]
lea rdx, [0x00438ecc]
xor r8, r8
lea r9, [rbp + 0x9c]
lea rax, [rbp + 0xa4]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
mov esi, eax
test esi, esi
jne 0x438db9
mov ecx, 2
mov eax, dword [rbp + 0xa0]
xor edx, edx
div ecx
mov eax, eax
mov word [rbp + rax*2 + 0xa2], 0
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x70], rax
mov byte [rbp + 0x78], 0xa
lea rax, [rbp + 0xa4]
mov qword [rbp + 0x80], rax
mov byte [rbp + 0x88], 0xa
lea rcx, [0x00438ece]
lea rdx, [rbp + 0x70]
mov r8d, 1
call fcn.004354a0
jmp 0x438deb
lea rcx, [rbp + 0x48]
mov rdx, qword [0x00489be8]
call fcn.0040eed0
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x58], rax
mov byte [rbp + 0x60], 0xa
mov rcx, qword [rbp + 0x48]
mov edx, 1
lea r8, [rbp + 0x58]
xor r9, r9
call fcn.0043cde0
mov dword [rbp + 0x44], esi
nop
lea rcx, [rbp + 0x48]
mov edx, 2
call fcn.0040a350
lea rcx, [rbp + 0x68]
call fcn.0040a270
mov eax, dword [rbp + 0x44]
lea rsp, [rbp + 0x4c8]
pop rbx
pop rsi
pop rdi
pop rbp
ret