Function at 0x1400151c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREArenaNetGuild_Wars_2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140015445
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x28], rax
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x47]
xor r8d, r8d
lea rdx, str.Path
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140015253
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140015445
cmp dword [rbp + 0x47], 1
jne 0x140015244
mov ebx, dword [rbp + 0x1f]
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
mov qword [rbp + 0x37], rdi
mov qword [rbp + 0x3f], 0xf
cmp rbx, 0xf
ja 0x14001528e
mov qword [rbp + 0x37], rbx
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x27]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + rbx + 0x27], dil
jmp 0x1400152ff
mov rsi, rbx
or rsi, 0xf
mov eax, 0x16
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x1400152da
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001546a
mov rcx, rax
call fcn.140043fc0
test rax, rax
je 0x140015439
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400152e2
call fcn.140043fc0
mov rdi, rax
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x37], rbx
mov qword [rbp + 0x3f], rsi
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov byte [rdi + rbx], 0
lea rax, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0xf
cmova rax, qword [rbp + 0x27]
lea rcx, [rbp + 0x1f]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Path
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rbp + 0x17]
test eax, eax
je 0x140015345
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140015407
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbp + 0x37]
lea r9, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0xf
cmova r9, qword [rbp + 0x27]
mov rax, qword [0x140054178]
cmp rdi, rax
ja 0x140015397
lea rbx, [0x140054160]
cmp rax, 0xf
cmova rbx, qword [0x140054160]
mov qword [0x140054170], rdi
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x1400153a6
mov rdx, rdi
lea rcx, [0x140054160]
call fcn.14001bcb0
call fcn.14001ae10
lea rdx, [rbp - 9]
call fcn.140002050
mov rdx, rax
lea rcx, [0x140054140]
call fcn.14001a610
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x140015407
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015401
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015401
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004423c
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x140015445
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015440
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015440
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004423c
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140043fa0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140001150
int3