Function at 0x140001850
Capabilities:
Hide graphical window
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x220
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
movaps xmmword [rax - 0xa8], xmm13
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rcx
mov edx, 5
lea rcx, [rbp + 0x70]
call fcn.1400016b0
lea rdx, [rbp - 0x50]
call fcn.140001db0
nop
call qword [rax + 0x10]
mov r14, rax
mov rbx, qword [0x140008878]
xor r15d, r15d
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140001920
mov qword [rbp - 0x20], r15
mov qword [rbp + 0x40], rcx
mov r9d, 0x8000
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x40]
lea rcx, [r15 - 1]
call rbx
cmp eax, 0xc0000045
jne 0x14000191c
mov r9d, 0x8000
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x40]
lea rcx, [r15 - 1]
call rbx
mov qword [rbp - 0x48], r15
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140001969
mov rdx, qword [rbp - 0x28]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001958
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001958
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003b54
mov qword [rbp - 0x38], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x10], r15
mov qword [rbp], r15
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x20], xmm1
lea rax, [0x140002c10]
mov qword [rbp - 8], rax
mov qword [rbp + 8], rdi
lea rax, [rbp + 0x70]
cmp qword [rbp + 0x88], 7
cmova rax, qword [rbp + 0x70]
mov qword [rbp + 0x30], rax
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_RegisterClassW]
mov r12d, 1
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
mov edx, 0xc8
lea rcx, [rbp - 0x70]
call fcn.1400016b0
mov r8, rax
cmp qword [rax + 0x18], 7
jbe 0x1400019e5
mov r8, qword [rax]
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 7
cmova rdx, qword [rbp + 0x70]
mov qword [rsp + 0x58], r15
mov rax, qword [rbp + 8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov ecx, 0x800a8
mov r9d, 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rdi, rax
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x140001a77
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a72
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a72
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003b54
movdqa xmm0, xmmword [0x1400056b0]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r15w
lea rdx, [rsp + 0x60]
call fcn.140002240
nop
mov r8, qword [rax + 0x10]
mov edx, r12d
mov rcx, rdi
call r8
mov esi, eax
mov rbx, qword [0x140008868]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140001af6
mov qword [rbp + 0x40], r15
mov qword [rbp - 0x20], rcx
mov r9d, 0x8000
lea r8, [rbp + 0x40]
lea rdx, [rbp - 0x20]
mov rcx, 0xffffffffffffffff
call rbx
cmp eax, 0xc0000045
jne 0x140001af1
mov r9d, 0x8000
lea r8, [rbp + 0x40]
lea rdx, [rbp - 0x20]
mov rcx, 0xffffffffffffffff
call rbx
mov qword [rsp + 0x68], r15
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140001b34
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003b54
test esi, esi
jne 0x140001b63
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Can_t_start_render
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov edx, 0x1337
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov r9d, r12d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
mov dword [rbp + 0x48], 0x10028
mov dword [rbp + 0x4c], 0x25
mov qword [rbp + 0x50], 0x2000
mov qword [rbp + 0x58], 0
mov dword [rbp + 0x60], 0x818
mov qword [rbp + 0x64], r15
mov dword [rbp + 0x6c], r15d
lea rdx, [rbp + 0x48]
mov rcx, rax
call qword [sym.imp.GDI32.dll_ChoosePixelFormat]
lea r8, [rbp + 0x48]
mov edx, eax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetPixelFormat]
mov rcx, rsi
call qword [sym.imp.OPENGL32.dll_wglCreateContext]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [rsp + 0x60]
call fcn.1400026d0
nop
mov rax, qword [rax + 0x10]
mov rcx, r14
call rax
nop
mov rbx, qword [0x140008868]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140001c52
mov qword [rbp + 0x40], r15
mov qword [rbp - 0x20], rax
mov r9d, 0x8000
lea r8, [rbp + 0x40]
lea rdx, [rbp - 0x20]
mov rcx, 0xffffffffffffffff
call rbx
cmp eax, 0xc0000045
jne 0x140001c4d
mov r9d, 0x8000
lea r8, [rbp + 0x40]
lea rdx, [rbp - 0x20]
mov rcx, 0xffffffffffffffff
call rbx
mov qword [rsp + 0x68], r15
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140001c90
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c8b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c8b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003b54
movss xmm10, dword [0x140005698]
movss xmm11, dword [0x14000569c]
movss xmm12, dword [0x140005690]
movss xmm13, dword [0x140005694]
cmp byte [0x140008858], 0
jne 0x140001cd5
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov byte [0x140008858], 1
mov ecx, 0x4000
call qword [sym.imp.OPENGL32.dll_glClear]
movaps xmm3, xmm10
xorps xmm2, xmm2
movaps xmm1, xmm10
movaps xmm0, xmm10
call qword [sym.imp.OPENGL32.dll_glColor4f]
mov ecx, 7
call qword [sym.imp.OPENGL32.dll_glBegin]
mov ecx, 0xbe2
call qword [sym.imp.OPENGL32.dll_glEnable]
mov edx, 0x303
lea ecx, [rdx - 1]
call qword [sym.imp.OPENGL32.dll_glBlendFunc]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movd xmm9, eax
cvtdq2ps xmm9, xmm9
divss xmm9, xmm11
addss xmm9, xmm12
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movd xmm8, eax
cvtdq2ps xmm8, xmm8
divss xmm8, xmm11
addss xmm8, xmm12
movaps xmm7, xmm9
addss xmm7, xmm13
movaps xmm6, xmm8
addss xmm6, xmm13
movaps xmm1, xmm8
movaps xmm0, xmm9
call qword [sym.imp.OPENGL32.dll_glVertex2f]
movaps xmm1, xmm8
movaps xmm0, xmm7
call qword [sym.imp.OPENGL32.dll_glVertex2f]
movaps xmm1, xmm6
movaps xmm0, xmm7
call qword [sym.imp.OPENGL32.dll_glVertex2f]
movaps xmm1, xmm6
movaps xmm0, xmm9
call qword [sym.imp.OPENGL32.dll_glVertex2f]
call qword [sym.imp.OPENGL32.dll_glEnd]
call qword [sym.imp.OPENGL32.dll_glFlush]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SwapBuffers]
jmp 0x140001cb4