Function at 0x1800978d0
Capabilities:
Query environment variable
Resolve function by parsing pe exports

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 - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x18012b038]
xor rax, rsp
mov qword [rbp + 0xd8], rax
mov rdi, rcx
mov qword [rbp - 0x20], rcx
xor r15d, r15d
mov dword [rsp + 0x24], r15d
movabs rcx, 0x142738080
mov rcx, qword [rcx]
test rcx, rcx
jne 0x18009792a
mov ecx, r15d
jmp 0x18009793f
mov rcx, qword [rcx + 0x38]
test rcx, rcx
jne 0x180097938
mov rcx, r15
jmp 0x18009793f
mov rcx, qword [rcx + 0xf0]
mov qword [rdi], rcx
test rcx, rcx
je 0x18009794e
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov qword [rbp + 0xb0], r15
mov rcx, qword [rdi]
mov rax, qword [rcx]
lea r8, [rbp + 0xb0]
lea rdx, [0x180114248]
call qword [rax + 0x38]
test eax, eax
js 0x180097fc0
mov rbx, qword [rbp + 0xb0]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180097992
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rdi + 8], rbx
mov rax, qword [rbx]
lea rdx, [rdi + 0x10]
mov rcx, rbx
call qword [rax + 0x140]
nop
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rsi, rax
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800979c0
call fcn.1800b0398
mov qword [rbp + 0x90], rsi
mov qword [rbp + 0x98], rbx
lea r8, [rbp + 0x90]
mov edx, eax
lea rcx, [rbp + 0xb8]
call fcn.18001ab20
mov dword [rsp + 0x24], 7
lea rcx, [rbp + 0xb8]
call fcn.1800309a0
lea rdx, [rbp + 0xb8]
lea rcx, [rsp + 0x28]
call fcn.18001b180
mov rcx, rax
call fcn.1800a1ed0
call fcn.1800b0398
lea rcx, str.imgui.ini
mov qword [rbp + 0x90], rcx
mov qword [rbp + 0x98], 9
lea r8, [rbp + 0x90]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.18001ab20
mov dword [rsp + 0x24], 0x1f
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0xb8]
call fcn.18001ada0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180097aae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180097aa9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180097aa9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800b12d4
movdqa xmm0, xmmword [0x1801155d0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r15w
mov rax, qword [0x18012e960]
test rax, rax
je 0x180097ad4
inc dword [rax + 0x3bc]
mov ecx, 0x3d68
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x90], rax
lea rcx, [rsp + 0x20]
mov qword [rbp + 0x88], rcx
mov qword [rbp + 0x80], rax
test rax, rax
je 0x180097b0b
mov rcx, rax
call fcn.18004c6c0
mov rcx, rax
jmp 0x180097b0e
mov rcx, r15
mov rax, qword [0x18012e960]
test rax, rax
cmove rax, rcx
mov qword [0x18012e960], rax
call fcn.180053980
mov rax, qword [0x18012e960]
test rax, rax
jne 0x180097b55
mov r8d, 0xc58
lea rdx, [0x18010bde0]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [0x18012e960]
lea rsi, [rax + 8]
mov dword [rsi + 0x10], 0x3c888889
mov r14, qword [rdi + 0x10]
mov rbx, qword [rdi + 8]
test rax, rax
jne 0x180097b8e
mov r8d, 0xc58
lea rdx, [0x18010bde0]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [0x18012e960]
lea rcx, str.imgui_impl_dx11
mov qword [rax + 0xe0], rcx
or dword [rax + 0xc], 8
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], r15
mov qword [rbp + 0x90], r15
mov rax, qword [rbx]
lea r8, [rbp + 0x80]
lea rdx, [0x180110638]
mov rcx, rbx
call qword [rax]
test eax, eax
jne 0x180097c29
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
lea r8, [rbp + 0x88]
lea rdx, [0x180110648]
call qword [rax + 0x30]
test eax, eax
jne 0x180097c29
mov rcx, qword [rbp + 0x88]
mov rax, qword [rcx]
lea r8, [rbp + 0x90]
lea rdx, [0x180110658]
call qword [rax + 0x30]
test eax, eax
jne 0x180097c29
mov qword [0x180133930], rbx
mov qword [0x180133950], r14
mov rax, qword [rbp + 0x90]
mov qword [0x180133938], rax
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x180097c3b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x180097c4d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x180133930]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [0x180133950]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [0x18012c400]
lea rcx, [0x180133978]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x180097d8e
lea rcx, [0x180133970]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x180097d8e
mov qword [0x180133968], rbx
mov rax, qword [0x18012e960]
test rax, rax
jne 0x180097ccc
mov r8d, 0xc58
lea rdx, [0x18010bde0]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [0x18012e960]
or dword [rax + 0xc], 6
lea rcx, str.imgui_impl_win32
mov qword [rax + 0xd8], rcx
mov qword [rax + 0x120], rbx
mov dword [rax + 0x3c], 9
mov dword [rax + 0x40], 0x25
mov dword [rax + 0x44], 0x27
mov dword [rax + 0x48], 0x26
mov dword [rax + 0x4c], 0x28
mov dword [rax + 0x50], 0x21
mov dword [rax + 0x54], 0x22
mov dword [rax + 0x58], 0x24
mov dword [rax + 0x5c], 0x23
mov dword [rax + 0x60], 0x2d
mov dword [rax + 0x64], 0x2e
mov dword [rax + 0x68], 8
mov dword [rax + 0x6c], 0x20
mov dword [rax + 0x70], 0xd
mov dword [rax + 0x74], 0x1b
mov dword [rax + 0x78], 0xd
mov dword [rax + 0x7c], 0x41
mov dword [rax + 0x80], 0x43
mov dword [rax + 0x84], 0x56
mov dword [rax + 0x88], 0x58
mov dword [rax + 0x8c], 0x59
mov dword [rax + 0x90], 0x5a
mov rcx, qword [rsi + 0xa0]
call fcn.18006f5e0
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], 3
mov dword [rsp + 0x6c], 1
mov byte [rsp + 0x70], 0
mov qword [rsp + 0x74], 0
mov qword [rsp + 0x7c], 0
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x70], 0
mov dword [rbp - 0x6c], 0x7f7fffff
mov byte [rbp - 0x68], 0
mov dword [rbp - 0x64], r15d
mov dword [rbp - 0x60], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x5c], ax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x5a], xmm0
movups xmmword [rbp - 0x4a], xmm0
mov qword [rbp - 0x3a], rax
mov qword [rbp - 0x30], r15
mov byte [rsp + 0x5c], al
mov eax, dword [str.Rubik]
mov dword [rbp - 0x5a], eax
movzx eax, word [0x180114220]
mov word [rbp - 0x56], ax
mov rax, qword [0x18012e960]
test rax, rax
jne 0x180097e54
mov r8d, 0xc58
lea rdx, [0x18010bde0]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [0x18012e960]
mov rbx, qword [rax + 0xa8]
cmp byte [rbx], 0
je 0x180097e7a
mov r8d, 0x6c3
lea rdx, [0x18010f5e0]
lea rcx, str._Locked___Cannot_modify_a_locked_ImFontAtlas_between_NewFrame___and_EndFrame_Render____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x10], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp], xmm1
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x20], xmm1
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x30], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x40], xmm1
movaps xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0x50], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0x60], xmm1
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp + 0x70], xmm0
lea rax, [0x1800d4d90]
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], 0x35db8
mov dword [rbp + 4], 0x41a00000
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.18006f2b0
mov qword [rdi + 0x18], rax
mov qword [rsi + 0xb0], rax
mov rcx, qword [0x18012e960]
test rcx, rcx
jne 0x180097f24
mov r8d, 0xc58
lea rdx, [0x18010bde0]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [0x18012e960]
mov rcx, qword [rcx + 0xa8]
call fcn.18006f5e0
mov qword [rdi + 0x20], rax
lea rcx, [0x18012e920]
call fcn.180093f20
mov qword [0x1801339c0], rdi
mov rdx, qword [rbp + 0xd0]
cmp rdx, 8
jb 0x180097f91
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180097f8b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180097f8b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800b12d4
nop
mov rax, rdi
mov rcx, qword [rbp + 0xd8]
xor rcx, rsp
call fcn.1800b0ef0
lea r11, [rsp + 0x1e0]
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
lea rdx, str.Failed_to_get_D3D_device.
lea rcx, [rbp + 0x90]
call fcn.18001a2d0
lea rdx, [0x180127420]
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll__CxxThrowException
int3