Function at 0x140003230
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x140020040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor esi, esi
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
test rax, rax
jne 0x14000329b
lea rdx, str.Error:_Environment_variable_APPDATA_not_found.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004be0
lea rdx, [0x140004db0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x1400036b5
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], sil
jne 0x1400032a2
call fcn.140016b10
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x41], rbx
lea r8, [rbp - 0x49]
mov edx, eax
lea rcx, [rbp + 0x27]
call fcn.140001e90
nop
call fcn.140016b10
lea rcx, str.abuse
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], 5
lea r8, [rbp - 0x49]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140001e90
nop
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x27]
lea rcx, [rbp + 7]
call fcn.1400023c0
nop
mov rdx, qword [rbp - 0x71]
cmp rdx, 7
jbe 0x140003348
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003343
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003343
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017304
movdqa xmm0, xmmword [0x14001b6e0]
movdqu xmmword [rbp - 0x79], xmm0
mov word [rsp + 0x20], si
lea rcx, [rbp + 7]
call fcn.140002e00
test al, al
jne 0x1400033bb
mov qword [rbp - 0x49], rsi
lea rax, [0x1400200c8]
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x49]
lea rcx, [rbp + 7]
call fcn.140002f10
cmp dword [rbp - 0x49], 0
jne 0x1400036ea
test al, al
jne 0x1400033bb
lea rdx, str.Error:_Failed_to_create_abuse_directory.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004be0
lea rdx, [0x140004db0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor bl, bl
jmp 0x14000361b
call fcn.140016b10
lea rcx, str.autoload
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], 8
lea r8, [rbp - 0x49]
mov edx, eax
lea rcx, [rbp - 0x69]
call fcn.140001e90
nop
lea r8, [rbp - 0x69]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x19]
call fcn.1400023c0
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 7
jbe 0x140003438
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003433
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003433
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017304
movdqa xmm0, xmmword [0x14001b6e0]
movdqu xmmword [rbp - 0x59], xmm0
mov word [rbp - 0x69], si
call fcn.140016b10
lea rcx, str.config
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], 6
lea r8, [rbp - 0x49]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140001e90
nop
lea r8, [rsp + 0x20]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.1400023c0
nop
mov rdx, qword [rbp - 0x71]
cmp rdx, 7
jbe 0x1400034c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400034c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400034c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017304
movdqa xmm0, xmmword [0x14001b6e0]
movdqu xmmword [rbp - 0x79], xmm0
mov word [rsp + 0x20], si
lea rcx, [rbp - 0x19]
call fcn.140002e00
test al, al
jne 0x140003517
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rcx, qword [rbp - 0x19]
call fcn.140016c4c
mov rcx, rax
shr rax, 0x20
test eax, eax
jne 0x1400036ff
test cl, cl
jne 0x140003517
lea rdx, str.Error:_Failed_to_create_autoload_directory.
jmp 0x140003551
lea rcx, [rbp - 0x39]
call fcn.140002e00
test al, al
jne 0x140003571
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 7
cmova rcx, qword [rbp - 0x39]
call fcn.140016c4c
mov rcx, rax
shr rax, 0x20
test eax, eax
jne 0x1400036da
test cl, cl
jne 0x140003571
lea rdx, str.Error:_Failed_to_create_config_directory.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004be0
lea rdx, [0x140004db0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor bl, bl
jmp 0x140003573
mov bl, 1
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x1400035b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400035b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400035b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017304
movdqa xmm0, xmmword [0x14001b6e0]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], si
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x14000360a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003605
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003605
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017304
movdqa xmm0, xmmword [0x14001b6e0]
movdqu xmmword [rbp - 9], xmm0
mov word [rbp - 0x19], si
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x14000365e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003659
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003659
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017304
movdqa xmm0, xmmword [0x14001b6e0]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], si
mov rdx, qword [rbp + 0x3f]
cmp rdx, 7
jbe 0x1400036b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400036ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017304
movzx eax, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140017060
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
shr rcx, 0x20
lea r8, [rbp - 0x39]
mov edx, ecx
call fcn.140002d30
nop
lea r8, [rbp + 7]
lea rdx, [rbp - 0x49]
lea rcx, str.create_directories
call fcn.140002da0
nop
shr rcx, 0x20
lea r8, [rbp - 0x19]
mov edx, ecx
call fcn.140002d30
int3