Function at 0x180035e80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x180199a80]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rcx
mov qword [rsp + 0x68], rcx
xor r15d, r15d
mov rax, qword [0x1801dd178]
mov rcx, qword [rax + 0x70]
mov rcx, qword [rcx]
mov qword [rbx + 0x10], rcx
test rcx, rcx
je 0x180035ed7
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x20], r15
mov qword [rsp + 0x60], r15
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
lea rdx, [0x18017fdd8]
call qword [rax + 0x38]
test eax, eax
js 0x1800363c0
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180035f16
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x18], rdi
mov rax, qword [rdi]
lea rdx, [rbx + 0x20]
mov rcx, rdi
call qword [rax + 0x140]
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x30], rax
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x180035f43
mov qword [rsp + 0x38], rcx
call fcn.180122c38
vmovups xmm0, xmmword [rsp + 0x30]
vmovdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.180031f90
nop
lea rax, str.BigBaseV2
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 9
call fcn.180122c38
vmovups xmm0, xmmword [rsp + 0x30]
vmovdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.180031f90
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.18001ef30
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x180035ffd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180035ff8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180035ff8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180123a60
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.180032110
vmovsd xmm0, qword [rax]
vmovsd qword [rsp + 0x50], xmm0
mov ecx, dword [rax + 8]
mov dword [rsp + 0x30], ecx
lea rax, [0x180199ba8]
mov qword [rsp + 0x38], rax
vmovups xmm0, xmmword [rsp + 0x30]
vmovdqa xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1800360cb
cmp eax, 1
je 0x1800360d3
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.180032110
vmovsd xmm0, qword [rax]
vmovsd qword [rsp + 0x50], xmm0
mov edx, dword [rax + 8]
mov ecx, dword [rsp + 0x50]
test edx, edx
je 0x18003607c
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x1800363e3
cmp ecx, 3
je 0x1800360f7
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
cmova rcx, qword [rsp + 0x70]
call fcn.1801235e8
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x1800363f5
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
cmova rcx, qword [rsp + 0x70]
call fcn.18012313c
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x1800363aa
jmp 0x1800360f7
test ecx, ecx
jne 0x18003640b
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
cmova rcx, qword [rsp + 0x70]
call fcn.18012313c
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x180036394
lea rax, str.imgui.ini
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 9
call fcn.180122c38
vmovups xmm0, xmmword [rsp + 0x30]
vmovdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.180031f90
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.18001ef30
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x180036180
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003617b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003617b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180123a60
xor ecx, ecx
call fcn.18006d500
mov r14, rax
mov edx, dword [0x1801dca7c]
mov rcx, qword gs:[0x58]
mov eax, 0x18
mov rcx, qword [rcx + rdx*8]
lea rdi, [0x1801dd258]
mov ecx, dword [rax + rcx]
cmp dword [0x1801dd250], ecx
jle 0x180036271
lea rcx, [0x1801dd250]
call fcn.180123ef8
cmp dword [0x1801dd250], 0xffffffff
jne 0x180036271
lea rax, [rsp + 0x70]
mov rdx, qword [rsp + 0x70]
mov r8, qword [rbp - 0x78]
cmp r8, 7
cmova rax, rdx
mov r9, qword [rbp - 0x80]
lea rcx, [rax + r9*2]
lea rax, [rsp + 0x70]
cmova rax, rdx
cmp rax, rcx
je 0x180036221
nop dword [rax]
cmp word [rax], 0x2f
jne 0x18003620b
mov word [rax], 0x5c
add rax, 2
cmp rax, rcx
jne 0x180036200
mov r8, qword [rbp - 0x78]
mov r9, qword [rbp - 0x80]
mov rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x70]
cmp r8, 7
cmova rax, rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r9
call fcn.180122c38
vmovups xmm0, xmmword [rsp + 0x30]
vmovdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
mov rcx, rdi
call fcn.180036460
lea rcx, [0x18012d6d0]
call fcn.180123e38
nop
lea rcx, [0x1801dd250]
call fcn.180123e8c
cmp qword [0x1801dd270], 0xf
cmova rdi, qword [0x1801dd258]
mov qword [r14 + 0x20], rdi
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x18]
call fcn.1800d7a10
mov rcx, qword [0x1801dd178]
mov rcx, qword [rcx]
call fcn.1800da1e0
lea rcx, [rbp - 0x50]
call fcn.1800e5df0
mov byte [rbp - 0x44], 0
mov eax, dword [str.Rubik]
mov dword [rbp + 6], eax
movzx eax, word [0x18017fdd0]
mov word [rbp + 0xa], ax
call fcn.18006d640
mov qword [rsp + 0x28], r15
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rcx
vmovss xmm3, dword [0x180180390]
mov r8d, 0x225bc
lea rdx, [0x18013f150]
mov rcx, qword [rax + 0xa0]
call fcn.1800e6790
mov qword [rbx], rax
call fcn.18006d640
xor edx, edx
mov rcx, qword [rax + 0xa0]
call fcn.1800e63e0
mov qword [rbx + 8], rax
lea rcx, [0x1801dd1a0]
call fcn.18001a650
mov qword [0x1801dd1a8], rbx
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x180036368
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180036362
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180036362
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180123a60
nop
mov rax, rbx
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.180123a40
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
shr rdx, 0x20
lea r8, [rsp + 0x70]
lea rcx, str.create_directory
call fcn.1800239b0
int3
shr rdx, 0x20
lea r8, [rsp + 0x70]
lea rcx, str.create_directory
call fcn.1800239b0
nop
lea rdx, str.Failed_to_get_D3D_device.
lea rcx, [rsp + 0x30]
call fcn.180013630
lea rdx, [0x1801936b8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rsp + 0x70]
lea rcx, str.status
call fcn.1800239b0
int3
shr rdx, 0x20
lea r8, [rsp + 0x70]
lea rcx, str.remove
call fcn.1800239b0
int3
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x30]
lea rcx, str.exists
call fcn.180032e10
int3