Function at 0x1400896f0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x278]
sub rsp, 0x360
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1401c8c00]
xor rax, rsp
mov qword [rbp + 0x240], rax
xor r15d, r15d
mov dword [rsp + 0x60], r15d
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], r15
mov qword [rbp + 0xa8], r15
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r15b
jne 0x140089760
mov rdx, rax
lea rcx, [rbp + 0x90]
call fcn.140004860
nop
movabs r14, 0x7fffffffffffffff
mov rax, r14
mov rcx, qword [rbp + 0xa0]
sub rax, rcx
cmp rax, 1
jb 0x14008a0ec
lea r9, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0xf
cmova r9, qword [rbp + 0x90]
mov esi, 1
mov qword [rsp + 0x30], rsi
lea rax, [0x14016af6c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x90]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp + 0x30]
call fcn.140005120
nop
lea r8d, [rsi + 7]
lea rdx, [0x14016af60]
lea rcx, [rbp + 0x30]
call fcn.140004430
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r15
mov qword [rbp + 8], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or esi, 2
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x140089864
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008985f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008985f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
movdqa xmm0, xmmword [0x1401a6e30]
movdqu xmmword [rbp + 0x40], xmm0
mov byte [rbp + 0x30], 0
mov rbx, qword [rbp]
lea rdi, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rdi, qword [rbp - 0x10]
call fcn.140130c20
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rbx
lea r8, [rbp - 0x20]
mov edx, eax
lea rcx, [rbp + 0x10]
call fcn.140001eb0
or esi, 0xc
mov r8d, 3
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x50]
call fcn.140002970
movsd xmm0, qword [rax]
movsd qword [rsp + 0x50], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x20], ecx
lea rax, [0x1401c8c88]
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x20], xmm0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14008992a
cmp eax, 1
sete dil
mov rdx, qword [rbp + 0x28]
cmp rdx, 7
jbe 0x14008993c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089937
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140089937
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dil, 1
test ecx, ecx
jne 0x14008a0de
jmp 0x1400898ec
call fcn.140131bf4
test dil, dil
je 0x1400899e2
mov rbx, qword [rbp]
lea rdi, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rdi, qword [rbp - 0x10]
call fcn.140130c20
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rbx
lea r8, [rbp - 0x20]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140001eb0
or esi, 0x3000
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rcx, qword [rsp + 0x68]
call fcn.140131124
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14008a0f2
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x1400899e2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400899dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400899dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
mov rax, qword [rbp]
sub r14, rax
cmp r14, 0x10
jb 0x14008a108
lea r9, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova r9, qword [rbp - 0x10]
mov qword [rsp + 0x30], reloc.WS2_32.dll_recv
lea rcx, str.login_data.json
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x10]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp + 0x110]
call fcn.140005120
or esi, 0x10
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x130]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x130]
call fcn.1400197c0
nop
cmp qword [rbp + 0x1c0], 0
je 0x140089f27
mov qword [rsp + 0x50], r15
mov word [rsp + 0x58], 1
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx + 0x178]
mov qword [rbp - 0x20], rcx
test rcx, rcx
sete byte [rbp - 0x18]
mov byte [rbp - 0x17], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x40], xmm1
movaps xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0x50], xmm0
movaps xmm6, xmmword [rsp + 0x50]
test rcx, rcx
je 0x140089ae5
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140089ad4
mov byte [rbp + 0x59], al
mov rax, qword [rbp + 0x50]
mov byte [rbp + 0x58], 1
movaps xmm0, xmmword [rbp + 0x50]
jmp 0x140089aea
mov rax, r15
mov qword [rbp + 0x50], rax
mov byte [rbp + 0x58], 1
movaps xmm0, xmmword [rbp + 0x50]
jmp 0x140089aea
movq rax, xmm0
test rax, rax
movq rax, xmm6
jne 0x140089c39
test rax, rax
je 0x140089c42
movdqa xmmword [rbp + 0x50], xmm6
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rbp + 0x50]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x30]
call fcn.140092dd0
nop
mov qword [rbp - 0x28], r15
lea r8, [rbp - 0x60]
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.14008efc0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
lea rdx, [rbp + 0x10]
call fcn.1400220e0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
lea rdx, [rbp + 0xf0]
call fcn.1400222d0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
mov r8d, 8
lea rdx, str.username
lea rcx, [rsp + 0x68]
call fcn.140004860
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x20]
call fcn.14000c830
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
movdqa xmm1, xmmword [0x1401a6e30]
movdqu xmmword [rbp + 0x60], xmm1
mov byte [rbp + 0x50], 0
bts esi, 8
mov dword [rsp + 0x60], esi
cmp byte [rax], 3
jne 0x14008a10e
mov rdx, qword [rax + 8]
lea rcx, [rbp + 0x50]
call fcn.1400068d0
btr esi, 8
or esi, 0xc0
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x10]
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0xd0]
call fcn.140022a10
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x140089c5d
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089c58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140089c58
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rax, rax
je 0x140089b01
movdqa xmm0, xmmword [0x1401a6e30]
movdqu xmmword [rbp + 0x40], xmm0
mov byte [rbp + 0x30], 0
jmp 0x140089b1f
call fcn.140131bf4
movdqa xmm0, xmmword [0x1401a6e30]
movdqu xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], r15
mov r8d, 8
lea rdx, [0x14016b5a0]
lea rcx, [rbp - 0x60]
call fcn.140004860
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x20]
call fcn.14000c830
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movdqa xmm1, xmmword [0x1401a6e30]
movdqu xmmword [rsp + 0x78], xmm1
mov byte [rsp + 0x68], 0
bts esi, 0xb
mov dword [rsp + 0x60], esi
cmp byte [rax], 3
jne 0x14008a09e
mov rdx, qword [rax + 8]
lea rcx, [rsp + 0x68]
call fcn.1400068d0
nop
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x10]
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0xb0]
call fcn.140022a10
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140089d3d
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089d38
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140089d38
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
movdqa xmm0, xmmword [0x1401a6e30]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 0xf
cmova rdx, qword [rbp + 0xb0]
lea rcx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0xf
cmova rcx, qword [rbp + 0xd0]
call fcn.14009deb0
test al, al
je 0x140089d98
mov dword [0x140256704], 2
mov byte [0x1402560ad], 1
lea rcx, [rbp + 0x140]
call fcn.14001a200
test rax, rax
jne 0x140089dcc
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x130]
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]
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0xf
jbe 0x140089e10
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089e0b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140089e0b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
movdqa xmm0, xmmword [0x1401a6e30]
movdqu xmmword [rbp + 0xc0], xmm0
mov byte [rbp + 0xb0], 0
mov rdx, qword [rbp + 0xe8]
cmp rdx, 0xf
jbe 0x140089e6b
inc rdx
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089e66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140089e66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
movdqa xmm0, xmmword [0x1401a6e30]
movdqu xmmword [rbp + 0xe0], xmm0
mov byte [rbp + 0xd0], 0
mov rcx, qword [rbp + 0x100]
cmp qword [rbp + 0xf8], rcx
cmovb rcx, qword [rbp + 0xf8]
mov rdx, qword [rbp + 0x108]
test rdx, rdx
je 0x140089eb4
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbp + 0x20]
cmp qword [rbp + 0x18], rcx
cmovb rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x140089eda
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
movzx edx, byte [rbp - 0x20]
lea rcx, [rbp - 0x18]
call fcn.14000bd50
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x140089f27
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089f21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140089f21
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
nop
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x130], rax
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x12c], edx
lea rcx, [rbp + 0x140]
call fcn.140019750
lea rcx, [rbp + 0x148]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x128]
cmp rdx, 0xf
jbe 0x140089fc4
inc rdx
mov rcx, qword [rbp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089fbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140089fbf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
movdqa xmm0, xmmword [0x1401a6e30]
movdqu xmmword [rbp + 0x120], xmm0
mov byte [rbp + 0x110], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x14008a019
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a014
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a014
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
mov qword [rbp], r15
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x10], 0
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0xf
jbe 0x14008a06d
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008a068
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008a068
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140131b90
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, rax
call fcn.14000cc40
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
lea rdx, str.type_must_be_string__but_is
lea rcx, [rbp - 0x60]
call fcn.14000e010
nop
mov r8, rax
lea rcx, [rbp + 0x50]
call fcn.14000e0f0
lea rdx, [0x1401c15f0]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rbp + 0x10]
lea rdx, [rbp - 0x20]
call fcn.140002880
nop
call fcn.140001810
nop
shr rdx, 0x20
lea r8, [rsp + 0x68]
lea rcx, str.create_directory
call fcn.140002810
nop
call fcn.140001810
nop
mov rcx, rax
call fcn.14000cc40
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
lea rdx, str.type_must_be_string__but_is
lea rcx, [rbp - 0x60]
call fcn.14000e010
nop
mov r8, rax
lea rcx, [rsp + 0x68]
call fcn.14000e0f0
lea rdx, [0x1401c15f0]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3