Function at 0x180067860
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 - 0x90]
sub rsp, 0x190
mov rax, qword [0x1801f9600]
xor rax, rsp
mov qword [rbp + 0x80], rax
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp + 0x40], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp + 0x50], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1800678b6
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.180008ac0
nop
mov r8d, 0x16
lea rdx, str.Impulse_settings.json
lea rcx, [rbp + 0x40]
call fcn.180007770
mov r8d, 2
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.18006bf30
nop
lea rdx, [rbp + 0x60]
lea rcx, [0x18020c938]
call fcn.18006ee00
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x180067917
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180015f00
nop
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x180067963
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006795e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006795e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801548ec
lea rcx, [rsp + 0x38]
call fcn.18006f390
test rax, rax
jne 0x180067991
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
movzx eax, byte [0x18020c928]
dec eax
cmp eax, 7
ja case.default.0x1800679b6
cdqe
lea rdx, [0x180000000]
mov ecx, dword [rdx + rax*4 + 0x67b40]
add rcx, rdx
jmp rcx
mov qword [0x18020c930], 0
jmp case.default.0x1800679b6
vxorpd xmm0, xmm0, xmm0
vmovsd qword [0x18020c930], xmm0
jmp case.default.0x1800679b6
mov byte [0x18020c930], 0
jmp case.default.0x1800679b6
mov rax, qword [0x18020c930]
mov qword [rax + 0x10], 0
cmp qword [rax + 0x18], 0xf
jbe 0x1800679f8
mov rax, qword [rax]
mov byte [rax], 0
jmp case.default.0x1800679b6
mov rax, qword [0x18020c930]
mov rcx, qword [rax]
cmp rcx, qword [rax + 8]
je case.default.0x1800679b6
mov qword [rax + 8], rcx
jmp case.default.0x1800679b6
mov rsi, qword [0x18020c930]
mov rbx, qword [rsi]
mov rdi, qword [rsi + 8]
cmp rbx, rdi
je case.default.0x1800679b6
mov rcx, rbx
call fcn.180006730
add rbx, 0x10
cmp rbx, rdi
jne 0x180067a26
mov rax, qword [rsi]
mov qword [rsi + 8], rax
jmp case.default.0x1800679b6
mov rcx, qword [0x18020c930]
call fcn.180007360
lea rdx, [0x18020c938]
lea rcx, [rbp + 0x60]
call fcn.180006750
movzx edx, byte [0x18020c928]
movzx ecx, byte [rax]
mov byte [0x18020c928], cl
mov byte [rax], dl
lea rcx, [rax + 8]
mov rdx, qword [0x18020c930]
mov r8, qword [rcx]
mov qword [0x18020c930], r8
mov qword [rcx], rdx
movzx edx, byte [rax]
call fcn.180006ec0
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call fcn.18006cc80
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x28]
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 + 0x58]
cmp rdx, 0xf
jbe 0x180067b15
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180067b10
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180067b10
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801548ec
mov al, 1
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.180154520
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret