Function at 0x18005ce10
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x3e8
mov rax, qword [0x1801da5d0]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rsp + 0x1c8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x1d8], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x18005ce54
mov rdx, rax
lea rcx, [rsp + 0x1c8]
call fcn.1800075d0
nop
mov r8d, 0x10
lea rdx, str.GalaxyVehicle_
lea rcx, [rsp + 0x1c8]
call fcn.180018140
lea rdx, [rsp + 0x1c8]
lea rcx, [rsp + 0xa0]
call fcn.180045e60
nop
cmp qword [rsp + 0x130], 0
jne 0x18005cf12
lea rdx, [rsp + 0x1c8]
cmp qword [rsp + 0x1e0], 0x10
cmovae rdx, qword [rsp + 0x1c8]
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
lea rcx, [rsp + 0xb0]
call fcn.18003d110
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
je 0x18005cf04
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x18005cf12
add rcx, rax
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
mov rax, qword [rsp + rcx + 0xe8]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x1f0]
call fcn.18004c8a0
nop
lea r8, [0x1801f2aa0]
mov rcx, rax
call fcn.18004aec0
nop
lea rcx, [rsp + 0x238]
call fcn.18004caa0
mov rcx, qword [rsp + 0x228]
test rcx, rcx
je 0x18005cf9a
mov rax, qword [rcx]
lea rdx, [rsp + 0x1f0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
cmp qword [rsp + 0x130], 0
je 0x18005d09a
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.18002fe00
nop
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
mov rax, qword [rsp + rcx + 0xe8]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x2e0]
call fcn.18004c8a0
nop
lea r8, [rsp + 0x40]
mov rcx, rax
call fcn.18004aec0
nop
lea rcx, [rsp + 0x328]
call fcn.18004caa0
mov rcx, qword [rsp + 0x318]
test rcx, rcx
je 0x18005d03c
mov rax, qword [rcx]
lea rdx, [rsp + 0x2e0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
lea rcx, [rsp + 0xb0]
call fcn.18003e290
test rax, rax
jne 0x18005d072
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
call fcn.18000a950
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x1b0]
call fcn.180008100
nop
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.18002f8d0
nop
lea rcx, [rsp + 0xa0]
call fcn.180045d50
nop
mov rdx, qword [rsp + 0x1e0]
cmp rdx, 0x10
jb 0x18005d0ef
inc rdx
mov rcx, qword [rsp + 0x1c8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005d0e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005d0e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18014f090
nop
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.18014f070
add rsp, 0x3e8
ret
jmp 0x18005ce10