Function at 0x14008c680
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 r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1401c8c00]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
xor r12d, r12d
mov dword [rsp + 0x60], r12d
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 + 0x90], r12
mov qword [rbp + 0x98], r12
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], r12b
jne 0x14008c6f0
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.140004860
nop
movabs r14, 0x7fffffffffffffff
mov rax, r14
mov rcx, qword [rbp + 0x90]
sub rax, rcx
cmp rax, 1
jb 0x14008d11c
lea r9, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova r9, qword [rbp + 0x80]
mov qword [rsp + 0x30], 1
lea rax, [0x14016af6c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x80]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp + 0x40]
call fcn.140005120
mov esi, 1
lea r8d, [rsi + 7]
lea rdx, [0x14016af60]
lea rcx, [rbp + 0x40]
call fcn.140004430
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or esi, 2
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x14008c7f7
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008c7f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008c7f2
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 + 0x50], xmm0
mov byte [rbp + 0x40], 0
mov rdi, qword [rbp + 0x10]
lea rbx, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova rbx, qword [rbp]
call fcn.140130c20
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rdi
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, [rbp + 0x20]
call fcn.140001eb0
or esi, 0xc
mov r8d, 3
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.140002970
movsd xmm0, qword [rax]
movsd qword [rsp + 0x50], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x30], ecx
lea r15, [0x1401c8c88]
mov qword [rbp - 0x28], r15
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14008c8bc
cmp eax, 1
sete bl
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x14008c8cd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008c8c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008c8c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov bl, 1
test ecx, ecx
jne 0x14008d100
jmp 0x14008c87e
call fcn.140131bf4
test bl, bl
je 0x14008c96e
mov rdi, qword [rbp + 0x10]
lea rbx, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova rbx, qword [rbp]
call fcn.140130c20
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rdi
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, [rbp + 0x20]
call fcn.140001eb0
or esi, 0x180
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 7
cmova rcx, qword [rbp + 0x20]
call fcn.140131124
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14008d122
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x14008c96e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008c969
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008c969
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 + 0x10]
sub r14, rax
cmp r14, 0x15
jb 0x14008d137
lea r9, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova r9, qword [rbp]
mov qword [rsp + 0x30], reloc.WS2_32.dll_setsockopt
lea rcx, str._background_data.json
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r8, [rbp]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp + 0x60]
call fcn.140005120
or esi, 0x10
mov rdi, qword [rbp + 0x70]
lea rbx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0xf
cmova rbx, qword [rbp + 0x60]
call fcn.140130c20
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rdi
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, [rbp + 0x40]
call fcn.140001eb0
or esi, 0x60
mov r8d, 3
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.140002970
movsd xmm0, qword [rax]
movsd qword [rsp + 0x50], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x30], ecx
mov qword [rbp - 0x28], r15
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14008ca69
cmp eax, 1
sete bl
mov rdx, qword [rbp + 0x58]
cmp rdx, 7
jbe 0x14008ca7a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008ca75
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008ca75
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov bl, 1
test ecx, ecx
jne 0x14008d10e
jmp 0x14008ca2b
call fcn.140131bf4
test bl, bl
jne 0x14008cfa9
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0xf
cmova rbx, qword [rbp + 0x60]
lea rax, [0x14019fa68]
mov qword [rbp + 0xa0], rax
lea rcx, [rbp + 0x150]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
bts esi, 9
mov dword [rsp + 0x60], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xa0], r13
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x9c], edx
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0xb0], rax
mov byte [rbp + 0x12c], 0
mov byte [rbp + 0x121], 0
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x130], r12
mov rax, qword [0x140256828]
mov qword [rbp + 0x124], rax
mov qword [rbp + 0x118], r12
mov r8d, 1
mov rdx, rbx
lea rcx, [rbp + 0xb0]
call fcn.14001a2c0
test rax, rax
jne 0x14008cba4
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 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]
nop
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xa0], r13
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x9c], edx
cmp qword [rbp + 0x130], 0
je 0x14008cf57
mov qword [rsp + 0x50], r12
mov word [rsp + 0x58], 1
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx + 0xe8]
mov qword [rbp - 0x20], rcx
test rcx, rcx
sete byte [rbp - 0x18]
mov byte [rbp - 0x17], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x50], xmm1
movaps xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp - 0x20], xmm0
movaps xmm6, xmmword [rsp + 0x50]
test rcx, rcx
je 0x14008cc59
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 0x14008cc48
mov byte [rbp - 0x17], al
mov rax, qword [rbp - 0x20]
mov byte [rbp - 0x18], 1
movaps xmm0, xmmword [rbp - 0x20]
jmp 0x14008cc5e
mov rax, r12
mov qword [rbp - 0x20], rax
mov byte [rbp - 0x18], 1
movaps xmm0, xmmword [rbp - 0x20]
jmp 0x14008cc5e
movq rax, xmm0
test rax, rax
movq rax, xmm6
jne 0x14008cdb6
test rax, rax
je 0x14008cdbf
movdqa xmmword [rbp - 0x20], xmm6
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rbp - 0x20]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x40]
call fcn.140092dd0
nop
mov qword [rbp - 0x60], r12
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.14008efc0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r12
mov r8d, 4
lea rdx, str.name
lea rcx, [rbp - 0x20]
call fcn.140004860
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
call fcn.14000c830
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x20], 0
bts esi, 0xd
mov dword [rsp + 0x60], esi
cmp byte [rax], 3
jne 0x14008d0be
mov rdx, qword [rax + 8]
lea rcx, [rbp + 0x20]
call fcn.1400068d0
nop
cmp qword [rbp + 0x30], 0
je 0x14008cecb
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.140004270
mov rsi, qword [0x1402567e0]
mov rbx, qword [0x1402567d8]
mov r14, qword [rbp - 8]
mov rdi, qword [rbp - 0x20]
cmp rbx, rsi
je 0x14008cd84
mov r15, qword [rbp - 0x10]
nop word [rax + rax]
lea rdx, [rbp - 0x20]
cmp r14, 0xf
cmova rdx, rdi
mov r8, qword [rbx + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14008cd6d
mov rcx, qword [rbx]
cmp r8, r15
jne 0x14008cd7b
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14008cd84
add rbx, 0x40
cmp rbx, rsi
jne 0x14008cd50
cmp r14, 0xf
jbe 0x14008cde4
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14008cdd5
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008cdd5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rax, rax
je 0x14008cc75
movdqa xmm0, xmmword [0x1401a6e30]
movdqu xmmword [rbp + 0x50], xmm0
mov byte [rbp + 0x40], 0
jmp 0x14008cc93
mov rcx, rdi
call fcn.140131bf4
mov rsi, qword [0x1402567e0]
cmp rbx, rsi
je 0x14008cecb
mov rdx, rbx
lea rdi, [0x140218b60]
mov rcx, rdi
call fcn.1400068d0
lea r8, [rbx + 0x20]
lea rcx, [0x140218b80]
lea rsi, [0x140218b38]
cmp rcx, r8
je 0x14008ce3d
mov rdx, qword [r8]
mov r8, qword [r8 + 8]
sub r8, rdx
sar r8, 2
call fcn.140006960
mov eax, dword [rbx + 0x38]
mov dword [0x140218b98], eax
mov eax, dword [rbx + 0x3c]
mov dword [0x140218b9c], eax
jmp 0x14008ce54
mov eax, dword [rbx + 0x38]
mov dword [0x140218b98], eax
mov eax, dword [rbx + 0x3c]
mov dword [0x140218b9c], eax
cmp rsi, rdi
je 0x14008ceac
mov rbx, qword [0x140218b70]
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
cmova rdi, qword [0x140218b60]
mov rax, qword [reloc.WS2_32.dll_ntohs]
cmp rbx, rax
ja 0x14008ce9e
cmp rax, 0xf
cmova rsi, qword [0x140218b38]
mov qword [0x140218b48], rbx
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x14008ceac
mov r9, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.140004ca0
mov r8d, dword [0x140218b9c]
mov edx, dword [0x140218b98]
mov rcx, qword [0x140218b80]
call fcn.140083720
mov dword [0x1402562ac], eax
mov rdx, qword [rbp + 0x38]
cmp rdx, 0xf
jbe 0x14008cf0a
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008cf04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008cf04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
nop
movzx edx, byte [rbp - 0x30]
lea rcx, [rbp - 0x28]
call fcn.14000bd50
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x14008cf57
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008cf51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008cf51
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 + 0xa0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xa0], r13
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x9c], edx
lea rcx, [rbp + 0xb0]
call fcn.140019750
lea rcx, [rbp + 0xb8]
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 + 0x150]
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 + 0x78]
cmp rdx, 0xf
jbe 0x14008cfe7
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008cfe2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008cfe2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x60], 0
mov rdx, qword [rbp + 0x18]
cmp rdx, 0xf
jbe 0x14008d035
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008d030
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008d030
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp], 0
mov rdx, qword [rbp + 0x98]
cmp rdx, 0xf
jbe 0x14008d089
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008d084
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008d084
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 + 0x1b0]
xor rcx, rsp
call fcn.140131b90
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
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 - 0x58]
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
nop
lea r8, [rbp + 0x20]
lea rdx, [rbp - 0x30]
call fcn.140002880
nop
lea r8, [rbp + 0x40]
lea rdx, [rbp - 0x30]
call fcn.140002880
nop
call fcn.140001810
nop
shr rdx, 0x20
lea r8, [rbp + 0x20]
lea rcx, str.create_directory
call fcn.140002810
nop
call fcn.140001810
int3