Function at 0x180033630
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x1801bc5d0]
xor rax, rsp
mov qword [rsp + 0x180], rax
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rsp + 0x140], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x150], xmm1
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x180033680
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.180006f30
nop
mov r8d, 0x14
lea rdx, str.Witch_settings.json
lea rcx, [rsp + 0x140]
call fcn.18000a720
mov r8d, 2
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x30]
call fcn.18002cd40
nop
mov r8d, 4
lea rdx, [rsp + 0x160]
lea rcx, [0x1801d0618]
call fcn.18002f130
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x1800336f7
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180006780
nop
mov rdx, qword [rsp + 0x178]
cmp rdx, 0x10
jb 0x18003374b
inc rdx
mov rcx, qword [rsp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180033746
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180033746
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
lea rcx, [rsp + 0x38]
call fcn.180029b00
test rax, rax
jne 0x180033778
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
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]
movzx eax, byte [0x1801d0608]
dec eax
cmp eax, 7
ja case.default.0x18003379d
cdqe
lea rdx, [0x180000000]
mov ecx, dword [rdx + rax*4 + 0x338f8]
add rcx, rdx
jmp rcx
mov qword [0x1801d0610], 0
jmp case.default.0x18003379d
xorps xmm0, xmm0
movsd qword [0x1801d0610], xmm0
jmp case.default.0x18003379d
mov byte [0x1801d0610], 0
jmp case.default.0x18003379d
mov rax, qword [0x1801d0610]
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x1800337d9
mov rcx, qword [rax]
mov qword [rax + 0x10], 0
mov byte [rcx], 0
jmp case.default.0x18003379d
mov rax, qword [0x1801d0610]
mov rcx, qword [rax]
cmp rcx, qword [rax + 8]
je case.default.0x18003379d
mov qword [rax + 8], rcx
jmp case.default.0x18003379d
mov rsi, qword [0x1801d0610]
mov rbx, qword [rsi]
mov rdi, qword [rsi + 8]
cmp rbx, rdi
je case.default.0x18003379d
nop
mov rcx, rbx
call fcn.18001ac60
add rbx, 0x10
cmp rbx, rdi
jne 0x180033810
mov rax, qword [rsi]
mov qword [rsi + 8], rax
jmp case.default.0x18003379d
mov rcx, qword [0x1801d0610]
call fcn.18001b610
lea rdx, [0x1801d0618]
lea rcx, [rsp + 0x160]
call fcn.18001ac80
movzx edx, byte [0x1801d0608]
movzx ecx, byte [rax]
mov byte [0x1801d0608], cl
mov byte [rax], dl
lea rcx, [rax + 8]
mov rdx, qword [0x1801d0610]
mov r8, qword [rcx]
mov qword [0x1801d0610], r8
mov qword [rcx], rdx
movzx edx, byte [rax]
call fcn.18001b170
nop
lea rcx, [rsp + 0x30]
call fcn.18002cec0
nop
mov rdx, qword [rsp + 0x158]
cmp rdx, 0x10
jb 0x1800338ce
inc rdx
mov rcx, qword [rsp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800338c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800338c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
mov al, 1
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180138e90
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret