Function at 0x140005820
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140125998]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rsi, rdx
mov r14, rcx
mov qword [rbp + 0x40], rdx
lea r9, str.Core::GetLEDataPath
lea r8, [0x1400ea16c]
mov edx, 1
lea rcx, [0x140126850]
call fcn.140029bd0
lea rdx, [rbp + 0x18]
mov rcx, r14
call fcn.140005e40
nop
cmp qword [rbp + 0x28], 0
je 0x140005918
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x48]
call fcn.14002c9b0
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400058a1
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea r9, str.Core::GetLEDataPath
lea r8, str.__s__Found_Reg_Val:__s
mov edx, 1
lea rcx, [0x140126850]
call fcn.140029bd0
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140005904
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400058ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400058ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2238
movups xmm0, xmmword [rbp + 0x18]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp + 0x28]
movups xmmword [rsi + 0x10], xmm1
jmp 0x140005e18
lea rcx, str.SystemDrive
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor edi, edi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], dil
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140005946
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000bf20
nop
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140005999
lea rax, [rcx + 1]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x38]
mov word [rax + rcx], 0x5c
lea rax, [rsp + 0x38]
jmp 0x1400059be
mov qword [rsp + 0x20], 1
lea r9, [0x1400ea4b8]
movzx r8d, byte [rsp + 0x30]
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140001760
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rax, qword [rsp + 0x78]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp - 0x78]
mov qword [rbp + 0x48], rax
xor r8d, r8d
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x28]
call fcn.140001420
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x140005a56
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005a51
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2238
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], 0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140005aa7
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005aa2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005aa2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2238
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
lea r9, [rbp + 0x55]
mov r8d, 0x17
nop dword [rax]
nop dword [rax + rax]
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 0x140005ad0
mov qword [rbp - 8], rdi
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], 0xf
mov byte [rbp - 8], dl
lea rax, [rbp + 0x55]
cmp r9, rax
je 0x140005b2a
lea r8, [rbp + 0x55]
sub r8, r9
mov rdx, r9
lea rcx, [rbp - 8]
call fcn.14000bf20
nop
mov r9d, 5
lea r8, str.FIFA
xor edx, edx
lea rcx, [rbp - 8]
call fcn.14000ca60
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 0xc
jb 0x140005bc2
lea rax, [rcx + 0xc]
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x58]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x58]
add rbx, rcx
mov r8d, 0xc
lea rdx, str._Live_Editor
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xc], 0
lea rax, [rsp + 0x58]
jmp 0x140005be7
mov qword [rsp + 0x20], 0xc
lea r9, str._Live_Editor
movzx r8d, byte [rsp + 0x30]
mov edx, 0xc
lea rcx, [rsp + 0x58]
call fcn.140001760
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rax, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rax, qword [rbp - 0x68]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x48], rax
xor r8d, r8d
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x48]
call fcn.140001420
nop
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.140003ae0
nop
lea rcx, [rbp - 0x48]
call fcn.14000bc60
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140005c92
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005c8d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2238
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140005ce2
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005cdd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005cdd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2238
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x140005d33
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005d2e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2238
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.140002ba0
lea rdx, [rbp - 0x48]
mov rcx, r14
call fcn.1400092e0
test al, al
jne 0x140005d6f
lea r9, str.Core::GetLEDataPath
lea r8, str.__s__SetLEDataPathRegVal_failed
mov edx, 2
lea rcx, [0x140126850]
call fcn.140029bd0
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.14002c9b0
nop
cmp qword [rax + 0x18], 0x10
jb 0x140005d87
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea r9, str.Core::GetLEDataPath
lea r8, str.__s__Default:__s
mov edx, 1
lea rcx, [0x140126850]
call fcn.140029bd0
nop
lea rcx, [rbp - 0x48]
call fcn.140003660
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movdqa xmm0, xmmword [0x1400eab00]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], di
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x140005e18
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005e13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2238
mov rax, rsi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400e25b0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret