Function at 0x1400bdae0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov byte [rsp + 0x18], r8b
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov rsi, rdx
mov r12, rcx
xor ebx, ebx
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rbx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x1400bdb34
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400a5790
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov r14d, 7
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov rax, qword [str.Roaming]
mov dword [rsp + 0x40], eax
movzx eax, word [0x140130064]
mov word [rsp + 0x44], ax
movzx eax, byte [0x140130066]
mov byte [rsp + 0x46], al
mov byte [rsp + 0x47], 0
lea r15, [rbp - 0x80]
mov r13, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x68]
cmp rcx, 0xf
cmova r15, r13
mov rdi, qword [rbp - 0x70]
cmp rdi, r14
jb 0x1400bdc6e
lea r12, [rdi + r15]
lea r8, [r12 - 6]
sub r8, r15
lea edx, [r14 + 0x4b]
mov rcx, r15
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400bdc63
nop dword [rax]
nop word [rax + rax]
mov r8, r14
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400bdc16
inc rbx
lea r8, [r12 - 6]
sub r8, rbx
mov edx, 0x52
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x1400bdbe0
jmp 0x1400bdc63
sub rbx, r15
cmp rbx, 0xffffffffffffffff
je 0x1400bdc63
cmp rdi, rbx
jb 0x1400be46a
mov rax, rdi
sub rax, rbx
cmp rax, 7
cmovb r14, rax
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rcx, r13
add rcx, rbx
sub rdi, r14
mov r8, rdi
sub r8, rbx
inc r8
lea rdx, [rcx + r14]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x70], rdi
mov r13, qword [rbp - 0x80]
mov r12, qword [rbp + 0x350]
mov rcx, qword [rbp - 0x68]
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rdi
cmp rax, 0xe
jb 0x1400be470
lea rax, [rbp - 0x80]
cmp rcx, 0xf
cmova rax, r13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], recv
lea r9, str.AppData_path:
lea rcx, [rbp - 0x20]
call fcn.1400a72c0
lea rdx, [rbp - 0x20]
mov ecx, recv
call fcn.1400c9fe0
mov rax, rbx
mov rcx, qword [rbp - 0x70]
sub rax, rcx
cmp byte [rbp + 0x360], 0
je 0x1400be073
cmp rax, 0x41
jb 0x1400be47c
lea r9, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova r9, qword [rbp - 0x80]
mov qword [rsp + 0x30], 0x41
lea rax, str.LocalPackagesMicrosoft.FlightSimulator_8wekyb3d8bbweLocalCache
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call fcn.1400a72c0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.1400a0240
mov rcx, rax
call fcn.1400b96a0
test al, al
je 0x1400be069
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
lea ecx, [rdi + 0x20]
call fcn.14010bac0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], reloc.WS2_32.dll_recv
mov qword [rsp + 0x58], 0x1f
movups xmm0, xmmword [str.Store_path_exist]
movups xmmword [rax], xmm0
mov byte [rax + 0x10], dil
lea rdx, [rsp + 0x40]
lea ecx, [rdi + 0xd]
call fcn.1400c9fe0
mov rcx, qword [rsp + 0x70]
sub rbx, rcx
cmp rbx, 8
jb 0x1400be476
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova r9, qword [rsp + 0x60]
mov qword [rsp + 0x30], 8
lea rax, str.exe.xml
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x60]
call fcn.1400a72c0
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x20]
call fcn.1400a0240
mov rcx, rax
call fcn.1400bf5b0
xorps xmm0, xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
movups xmmword [rsp + 0x40], xmm0
test al, al
je 0x1400bdece
lea ecx, [rdi + 0x20]
call fcn.14010bac0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], reloc.WS2_32.dll_recv
mov qword [rsp + 0x58], 0x1f
movups xmm0, xmmword [str.Store_file_exist]
movups xmmword [rax], xmm0
mov byte [rax + 0x10], dil
lea rdx, [rsp + 0x40]
lea ecx, [rdi + 0xd]
call fcn.1400c9fe0
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rdx, qword [rbp - 0x60]
mov rcx, r12
call fcn.14006a860
cmp dword [r12 + 0x6c], edi
jne 0x1400be05f
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], recv
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.Loaded_store]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x140130110]
mov dword [rsp + 0x48], eax
mov byte [rsp + 0x4c], dil
lea rdx, [rsp + 0x40]
lea ecx, [rdi + 0xd]
call fcn.1400c9fe0
lea rax, [rbp - 0x60]
cmp rsi, rax
je 0x1400be05f
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
mov rcx, rsi
call fcn.140067390
jmp 0x1400be05f
mov ecx, 0x30
call fcn.14010bac0
mov rcx, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0x21
mov qword [rsp + 0x58], 0x2f
movups xmm0, xmmword [str.Store_file_not_exist_creating_new]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140130128]
movups xmmword [rax + 0x10], xmm1
movzx eax, byte [0x140130138]
mov byte [rcx + 0x20], al
mov byte [rcx + 0x21], 0
lea rdx, [rsp + 0x40]
mov ecx, recv
call fcn.1400c9fe0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov ecx, 0x20
call fcn.14010bac0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], reloc.WS2_32.dll_setsockopt
mov qword [rsp + 0x58], 0x1f
movups xmm0, xmmword [str.Data_Settings_exe.xml]
movups xmmword [rax], xmm0
mov ecx, dword [0x140132ab0]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x140132ab4]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.1400d7d10
nop
lea rcx, [rbp]
call fcn.14006a060
nop
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
lea rcx, [rbp]
call fcn.14006a860
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rdx, qword [rbp - 0x60]
lea rcx, [rbp]
call fcn.14006aa00
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rdx, qword [rbp - 0x60]
mov rcx, r12
call fcn.14006a860
cmp dword [r12 + 0x6c], 0
jne 0x1400be04b
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], recv
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.Loaded_store]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x140130110]
mov dword [rsp + 0x48], eax
mov byte [rsp + 0x4c], 0
lea rdx, [rsp + 0x40]
mov ecx, recv
call fcn.1400c9fe0
lea rax, [rbp - 0x60]
cmp rsi, rax
je 0x1400be04b
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
mov rcx, rsi
call fcn.140067390
nop
lea rcx, [rbp]
call fcn.14006a220
nop
lea rcx, [rbp - 0x20]
call fcn.1400672c0
nop
lea rcx, [rbp - 0x60]
call fcn.1400672c0
nop
lea rcx, [rsp + 0x60]
jmp 0x1400be405
cmp rax, 0x22
jb 0x1400be47c
lea r9, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova r9, qword [rbp - 0x80]
mov qword [rsp + 0x30], 0x22
lea rax, str.RoamingMicrosoft_Flight_Simulator
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
call fcn.1400a72c0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.1400a0240
mov rcx, rax
call fcn.1400b96a0
test al, al
je 0x1400be400
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xor edi, edi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
lea ecx, [rdi + 0x20]
call fcn.14010bac0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], reloc.WS2_32.dll_recv
mov qword [rsp + 0x78], 0x1f
movups xmm0, xmmword [str.Steam_path_exist]
movups xmmword [rax], xmm0
mov byte [rax + 0x10], dil
lea rdx, [rsp + 0x60]
lea ecx, [rdi + 0xd]
call fcn.1400c9fe0
mov rcx, qword [rsp + 0x50]
sub rbx, rcx
cmp rbx, 8
jb 0x1400be464
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova r9, qword [rsp + 0x40]
mov qword [rsp + 0x30], 8
lea rax, str.exe.xml
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x40]
call fcn.1400a72c0
nop
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.1400a0240
mov rcx, rax
call fcn.1400bf5b0
xorps xmm0, xmm0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
movups xmmword [rsp + 0x60], xmm0
test al, al
je 0x1400be265
lea ecx, [rdi + 0x20]
call fcn.14010bac0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], reloc.WS2_32.dll_recv
mov qword [rsp + 0x78], 0x1f
movups xmm0, xmmword [str.Steam_file_exist]
movups xmmword [rax], xmm0
mov byte [rax + 0x10], dil
lea rdx, [rsp + 0x60]
lea ecx, [rdi + 0xd]
call fcn.1400c9fe0
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
mov rcx, r12
call fcn.14006a860
cmp dword [r12 + 0x6c], edi
jne 0x1400be3f6
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], recv
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.Loaded_Steam]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [0x1401301a0]
mov dword [rsp + 0x68], eax
mov byte [rsp + 0x6c], dil
lea rdx, [rsp + 0x60]
lea ecx, [rdi + 0xd]
call fcn.1400c9fe0
lea rax, [rbp - 0x40]
cmp rsi, rax
je 0x1400be3f6
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x30]
mov rcx, rsi
call fcn.140067390
jmp 0x1400be3f6
mov ecx, 0x30
call fcn.14010bac0
mov rcx, rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], 0x21
mov qword [rsp + 0x78], 0x2f
movups xmm0, xmmword [str.Steam_file_not_exist_creating_new]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1401301b8]
movups xmmword [rax + 0x10], xmm1
movzx eax, byte [0x1401301c8]
mov byte [rcx + 0x20], al
mov byte [rcx + 0x21], 0
lea rdx, [rsp + 0x60]
mov ecx, recv
call fcn.1400c9fe0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov ecx, 0x20
call fcn.14010bac0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], reloc.WS2_32.dll_setsockopt
mov qword [rsp + 0x78], 0x1f
movups xmm0, xmmword [str.Data_Settings_exe.xml]
movups xmmword [rax], xmm0
mov ecx, dword [0x140132ab0]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x140132ab4]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.1400d7d10
nop
lea rcx, [rbp]
call fcn.14006a060
nop
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
lea rcx, [rbp]
call fcn.14006a860
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
lea rcx, [rbp]
call fcn.14006aa00
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
mov rcx, r12
call fcn.14006a860
cmp dword [r12 + 0x6c], 0
jne 0x1400be3e2
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], recv
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.Loaded_steam]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [0x1401301d8]
mov dword [rsp + 0x68], eax
mov byte [rsp + 0x6c], 0
lea rdx, [rsp + 0x60]
mov ecx, recv
call fcn.1400c9fe0
lea rax, [rbp - 0x40]
cmp rsi, rax
je 0x1400be3e2
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x30]
mov rcx, rsi
call fcn.140067390
nop
lea rcx, [rbp]
call fcn.14006a220
nop
lea rcx, [rbp - 0x20]
call fcn.1400672c0
nop
lea rcx, [rbp - 0x40]
call fcn.1400672c0
nop
lea rcx, [rsp + 0x40]
call fcn.1400672c0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x1400be449
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400be444
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400be444
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010b6e8
mov rbx, qword [rsp + 0x458]
add rsp, 0x410
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400668f0
nop
call fcn.1400a1f90
nop
call fcn.1400668f0
nop
call fcn.1400668f0
nop
call fcn.1400668f0
int3