Function at 0x180045ef0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x1801bc5d0]
xor rax, rsp
mov qword [rbp + 0x100], rax
xor r14d, r14d
call fcn.180007bb0
mov ecx, eax
lea edx, [r14 + 1]
call fcn.180007a40
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
mov ecx, eax
call fcn.1800438e0
nop
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.18001b6a0
nop
lea rax, [rbp + 0x60]
mov qword [rsp + 0x48], rax
mov byte [rbp + 0x60], r14b
xor eax, eax
mov qword [rbp + 0x68], rax
movsxd rbx, dword [rsp + 0x34]
xor edx, edx
lea rcx, [rbp + 0x68]
call fcn.18001b170
mov byte [rbp + 0x60], 5
mov qword [rbp + 0x68], rbx
lea rdx, str.PrimaryColor
lea rcx, [rsp + 0x38]
call fcn.18002cbc0
nop
movzx edx, byte [rax]
movzx ecx, byte [rbp + 0x60]
mov byte [rax], cl
mov byte [rbp + 0x60], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rbp + 0x68]
mov qword [rax + 8], rdx
mov qword [rbp + 0x68], rcx
movzx edx, byte [rbp + 0x60]
lea rcx, [rbp + 0x68]
call fcn.18001b170
nop
lea rax, [rbp + 0x60]
mov qword [rsp + 0x48], rax
mov byte [rbp + 0x60], r14b
xor eax, eax
mov qword [rbp + 0x68], rax
movsxd rbx, dword [rsp + 0x30]
xor edx, edx
lea rcx, [rbp + 0x68]
call fcn.18001b170
mov byte [rbp + 0x60], 5
mov qword [rbp + 0x68], rbx
lea rdx, str.SecondaryColor
lea rcx, [rsp + 0x38]
call fcn.18002cbc0
nop
movzx edx, byte [rax]
movzx ecx, byte [rbp + 0x60]
mov byte [rax], cl
mov byte [rbp + 0x60], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rbp + 0x68]
mov qword [rax + 8], rdx
mov qword [rbp + 0x68], rcx
movzx edx, byte [rbp + 0x60]
lea rcx, [rbp + 0x68]
call fcn.18001b170
nop
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xd0], xmm1
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x180046050
mov rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.180006f30
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x90], xmm1
lea rdx, [0x1801cf8e0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x180046090
lea rcx, [rbp + 0x80]
call fcn.180006f30
nop
mov r8, qword [rbp + 0x90]
mov rcx, qword [rbp + 0x98]
mov rax, rcx
sub rax, r8
lea rsi, str.WitchVehicle_
cmp rax, 0xf
jb 0x180046155
lea rax, [r8 + 0xf]
mov qword [rbp + 0x90], rax
lea rbx, [rbp + 0x80]
cmp rcx, 0x10
cmovae rbx, qword [rbp + 0x80]
lea rax, [0x18019f0df]
cmp rax, rbx
jbe 0x180046111
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x180046111
cmp rbx, rsi
ja 0x180046109
mov rdi, r14
jmp 0x180046116
mov rdi, rbx
sub rdi, rsi
jmp 0x180046116
mov edi, 0xf
lea rcx, [rbx + 0xf]
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
mov r8d, 0xf
sub r8, rdi
lea rdx, [rsi + 0xf]
add rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp + 0x80]
jmp 0x180046179
mov qword [rsp + 0x28], 0xf
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xf]
lea rcx, [rbp + 0x80]
call fcn.180016470
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x70], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 5
lea rdx, str..json
lea rcx, [rbp + 0x60]
call fcn.18000a720
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xe0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xf0], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rbp + 0xe0]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
cmovae rdx, rcx
movq r8, xmm1
lea rcx, [rbp + 0xc0]
call fcn.18000a720
nop
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0x10
jb 0x180046259
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180046253
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180046253
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
nop
mov rdx, qword [rbp + 0x78]
cmp rdx, 0x10
jb 0x180046297
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180046292
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180046292
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
movdqa xmm0, xmmword [0x1801a19e0]
movdqu xmmword [rbp + 0x70], xmm0
mov byte [rbp + 0x60], 0
mov rdx, qword [rbp + 0x98]
cmp rdx, 0x10
jb 0x1800462ec
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800462e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800462e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
mov r8d, 0xffffffff
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.18002f130
nop
mov r8d, 2
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x50]
call fcn.18002cd40
nop
cmp qword [rbp - 0x28], 0
je 0x180046379
lea rdx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0x10
cmovae rdx, qword [rbp + 0xa0]
mov r8, qword [rbp + 0xb0]
lea rcx, [rsp + 0x50]
call fcn.180006780
lea rcx, [rsp + 0x58]
call fcn.180029b00
test rax, rax
jne 0x180046379
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
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
lea rcx, [rsp + 0x50]
call fcn.18002cec0
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0x10
jb 0x1800463c8
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800463c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800463c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
mov qword [rbp + 0xb0], r14
mov qword [rbp + 0xb8], 0xf
mov byte [rbp + 0xa0], 0
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0x10
jb 0x180046425
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180046420
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180046420
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
movdqa xmm0, xmmword [0x1801a19e0]
movdqu xmmword [rbp + 0xd0], xmm0
mov byte [rbp + 0xc0], 0
movzx edx, byte [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.18001b170
nop
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.180138e90
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
jmp 0x180045ef0