Function at 0x1400052a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x140125998]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rbx, rdx
mov qword [rsp + 0x38], rdx
cmp qword [0x140126660], 0
je 0x1400052f6
lea rdx, [0x140126650]
mov rcx, rbx
call fcn.140002ba0
jmp 0x140005555
mov dword [rsp + 0x44], 1
xor esi, esi
mov qword [rsp + 0x38], rsi
lea r9, [rsp + 0x65]
mov r8d, 0x17
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x140005310
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], dl
lea rax, [rsp + 0x65]
cmp r9, rax
je 0x14000536f
lea r8, [rsp + 0x65]
sub r8, r9
mov rdx, r9
lea rcx, [rsp + 0x70]
call fcn.14000bf20
nop
mov ecx, 0x20
call fcn.1400e21fc
mov qword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0x1f
movups xmm0, xmmword [str.SOFTWAREEA_SportsFIFA]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1400ea1a8]
movsd qword [rax + 0x10], xmm1
mov byte [rax + 0x18], 0
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x50]
movzx edx, byte [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.1400028d0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140005405
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400053ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2238
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140005444
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000543f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000543f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2238
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rdx, qword [rbp - 0x70]
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x14000548b
mov dword [rsp + 0x20], eax
lea r9, str.Core::GetGameInstallDir
lea r8, str.__s__RegOpenKey_failed__d
mov edx, 3
lea rcx, [0x140126850]
call fcn.140029bd0
mov dword [rsp + 0x40], 0x400
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.Install_Dir
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x140005580
mov dword [rsp + 0x20], edi
lea r9, str.Core::GetGameInstallDir
lea r8, str.__s__RegQueryValueEx_failed__d
mov edx, 3
lea rcx, [0x140126850]
call fcn.140029bd0
lea rax, [0x1400e9c88]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rsi
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140001420
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140005555
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005550
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400055e9
call fcn.1400e2238
mov rax, rbx
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400e25b0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rax, [rbp - 0x50]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x50]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140005594
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140001420
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140005555
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005550
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005550
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3