Function at 0x10139a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x01044480]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rcx
lea rcx, [0x01007890]
call fcn.01011d38
xor ebp, ebp
and dword [rsp + 0x40], ebp
and dword [rsp + 0x44], ebp
lea rcx, [rsp + 0x38]
call fcn.01014594
test eax, eax
jne 0x1013afd
lea rcx, [0x010078e0]
call fcn.01011d38
and qword [rsp + 0x48], rbp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x01007960]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1013d81
mov ebx, 0x208
mov dword [rsp + 0x30], ebx
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.01034300
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x010079d0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1013a97
lea rcx, [rdi + 0x10]
lea rdx, [rsp + 0x70]
call fcn.0100fb60
mov dword [rsp + 0x30], ebx
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.01034300
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x010079f0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1013ae8
lea rcx, [rdi + 0x18]
lea rdx, [rsp + 0x70]
call fcn.0100fb60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x38]
jmp 0x1013d86
lea rcx, [0x01007a20]
call fcn.01011d38
lea rcx, [rsp + 0x38]
call fcn.01014324
test eax, eax
je 0x1013d81
lea rcx, [0x01007a90]
call fcn.01011d38
and qword [rsp + 0x58], 0
and dword [rsp + 0x48], 0
xor esi, esi
and dword [rsp + 0x30], esi
xor r8d, r8d
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.0101ffc4
cmp dword [rsp + 0x30], 5
jbe 0x1013c3c
lea rcx, [0x010083a8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1013b7f
lea rdx, [0x010083c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1013b7f
call rax
mov ebx, eax
jmp 0x1013b81
xor ebx, ebx
mov edx, ebx
lea rcx, [0x01007b10]
call fcn.01011d38
lea rdx, [0x01005540]
lea rcx, [rsp + 0x50]
call fcn.0100f9f8
nop
lea rax, [rsp + 0x38]
test rax, rax
je 0x1013bc4
lea r9, [rsp + 0x50]
mov r8d, 5
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.01013df8
jmp 0x1013bc6
xor eax, eax
test eax, eax
je 0x1013bd8
lea rcx, [rdi + 0x10]
lea rdx, [rsp + 0x50]
call fcn.0100faec
lea rdx, [0x01005540]
lea rcx, [rsp + 0x30]
call fcn.0100f9f8
nop
lea rax, [rsp + 0x38]
test rax, rax
je 0x1013c0d
lea r9, [rsp + 0x30]
mov r8d, 7
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.01013df8
jmp 0x1013c0f
xor eax, eax
test eax, eax
je 0x1013c22
lea rcx, [rdi + 0x18]
lea rdx, [rsp + 0x30]
call fcn.0100faec
nop
lea rcx, [rsp + 0x30]
call fcn.0100f940
nop
lea rcx, [rsp + 0x50]
call fcn.0100f940
jmp 0x1013d6a
mov ebx, dword [rsp + 0x40]
test ebx, ebx
je 0x1013c6b
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov r8d, 4
or edx, 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.010146fc
mov r11d, eax
jmp 0x1013c79
mov ecx, 0x2001000a
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r11d, r11d
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1013d6a
test r11d, r11d
je 0x1013c94
cmp dword [rsp + 0x48], esi
jbe 0x1013c94
mov esi, dword [rax]
mov edx, esi
lea rcx, [0x01007ba0]
call fcn.01011d38
test ebx, ebx
je 0x1013cb7
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.01014770
jmp 0x1013cc2
mov ecx, 0x2001000a
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x01005540]
lea rcx, [rsp + 0x30]
call fcn.0100f9f8
nop
lea rax, [rsp + 0x38]
test rax, rax
je 0x1013cf7
lea r9, [rsp + 0x30]
mov r8d, 5
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.01013df8
jmp 0x1013cf9
xor eax, eax
test eax, eax
je 0x1013d0b
lea rcx, [rdi + 0x10]
lea rdx, [rsp + 0x30]
call fcn.0100faec
lea rdx, [0x01005540]
lea rcx, [rsp + 0x50]
call fcn.0100f9f8
nop
lea rax, [rsp + 0x38]
test rax, rax
je 0x1013d40
lea r9, [rsp + 0x50]
mov r8d, 7
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.01013df8
jmp 0x1013d42
xor eax, eax
test eax, eax
je 0x1013d55
lea rcx, [rdi + 0x18]
lea rdx, [rsp + 0x50]
call fcn.0100faec
nop
lea rcx, [rsp + 0x50]
call fcn.0100f940
nop
lea rcx, [rsp + 0x30]
call fcn.0100f940
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1013d86
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
jmp 0x1013d86
mov rbx, qword [rsp + 0x38]
mov r8, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x10]
lea rcx, [0x01007c20]
call fcn.01011d38
mov r11, qword [rdi + 0x10]
cmp qword [r11 - 0x10], 0
je 0x1013db6
mov rcx, qword [rdi + 0x18]
mov eax, 1
cmp qword [rcx - 0x10], 0
cmovne ebp, eax
test rbx, rbx
je 0x1013dc4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebp
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.01028cb0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret