Function at 0x180059780
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x1801da5d0]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor r14d, r14d
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r14
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x1800597e0
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1800075d0
nop
mov r8d, 0x15
lea rdx, str.GalaxyXML_Vehicles_
lea rcx, [rbp - 0x60]
call fcn.180018140
mov rdi, qword [rbp - 0x50]
lea rbx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rbx, qword [rbp - 0x60]
call fcn.18014e4f4
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.180041880
nop
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call fcn.18005ec90
test eax, eax
jne 0x180059b91
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x1800598a0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005989b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005989b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18014f090
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1800598b3
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x28]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x40], xmm0
test rbx, rbx
je 0x1800598cc
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x28]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
test rbx, rbx
je 0x180059914
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18005990f
mov rbx, qword [rsp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18005990f
mov rbx, qword [rsp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
jmp 0x180059914
mov rbx, qword [rsp + 0x28]
cmp qword [rsp + 0x20], 0
je 0x180059aa9
mov rax, qword [rsp + 0x40]
lea rcx, [rax + 0x20]
cmp qword [rax + 0x38], 8
jb 0x180059934
mov rcx, qword [rax + 0x20]
mov rax, qword [rax + 0x30]
lea r11, [rcx + rax*2]
mov r10, r11
mov rdx, r11
call fcn.18004e970
cmp rax, r11
je 0x18005998b
nop dword [rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x18005995f
cmp cx, 0x2f
jne 0x180059968
add rax, 2
cmp rax, r11
jne 0x180059950
cmp rax, r11
je 0x18005998b
nop dword [rax]
lea rdx, [r10 - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x18005998b
cmp cx, 0x2f
je 0x18005998b
mov r10, rdx
cmp rax, rdx
jne 0x180059970
mov qword [rsp + 0x60], r10
sub r11, r10
sar r11, 1
mov qword [rsp + 0x68], r11
lea rdx, [rsp + 0x60]
lea rcx, [rbp]
call fcn.18005e9b0
nop
lea rdx, [rbp - 0x20]
lea rcx, [rbp]
call fcn.180056d10
nop
mov rdx, qword [0x1801f4018]
cmp rdx, qword [0x1801f4020]
je 0x1800599fd
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], r14
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
add qword [0x1801f4018], 0x20
jmp 0x180059a06
mov r8, rax
call fcn.18005d120
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x180059a41
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180059a3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180059b55
call fcn.18014f090
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], 0xf
mov byte [rbp - 0x20], 0
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x180059a91
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180059a8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180059b5c
call fcn.18014f090
lea rcx, [rsp + 0x40]
call fcn.18005e540
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x180059925
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180059ae8
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180059ae3
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180059ae3
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x180059b1c
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180059b1c
mov rbx, qword [rsp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x180059b1c
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x180059b68
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180059b63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180059b63
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.18014f090
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.18014f070
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea r8, [rbp - 0x40]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.180046f50
int3