Function at 0x18005d250
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x3c8
mov rax, qword [0x1801da600]
xor rax, rsp
mov qword [rsp + 0x3b0], 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 + 0x1b0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x1c0], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x18005ccb4
mov rdx, rax
lea rcx, [rsp + 0x1b0]
call fcn.180007550
nop
mov r8d, 0x15
lea rdx, str.GalaxyXML_Vehicles_
lea rcx, [rsp + 0x1b0]
call fcn.180017d10
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0xa0]
call fcn.180045a70
nop
cmp qword [rsp + 0x130], 0
jne 0x18005cd72
lea rdx, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], 0xf
cmova rdx, qword [rsp + 0x1b0]
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
lea rcx, [rsp + 0xb0]
call fcn.18003cc60
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
je 0x18005cd64
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 0x18005cd72
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 + 0x98], 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 + 0x60]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x1d0]
call fcn.18004c610
nop
lea r8, [0x1801f2b10]
mov rcx, rax
call fcn.18004ab20
nop
lea rcx, [rsp + 0x218]
call fcn.18004c810
mov rcx, qword [rsp + 0x208]
test rcx, rcx
je 0x18005cdfa
mov rax, qword [rcx]
lea rdx, [rsp + 0x1d0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
cmp qword [rsp + 0x130], 0
je 0x18005cef7
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.18002f660
nop
mov qword [rsp + 0x98], 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 + 0x60]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x2c0]
call fcn.18004c610
nop
lea r8, [rsp + 0x48]
mov rcx, rax
call fcn.18004ab20
nop
lea rcx, [rsp + 0x308]
call fcn.18004c810
mov rcx, qword [rsp + 0x2f8]
test rcx, rcx
je 0x18005ce9c
mov rax, qword [rcx]
lea rdx, [rsp + 0x2c0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
lea rcx, [rsp + 0xb0]
call fcn.18003de10
test rax, rax
jne 0x18005ced2
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.18000a910
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.1800080c0
nop
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.18002f130
nop
lea rcx, [rsp + 0xa0]
call fcn.180045960
nop
mov rdx, qword [rsp + 0x1c8]
cmp rdx, 0xf
jbe 0x18005cf4c
inc rdx
mov rcx, qword [rsp + 0x1b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005cf46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005cf46
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18014e8b0
nop
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.18014e890
add rsp, 0x3c8
ret
jmp 0x18005cc70