Function at 0x140001dd4
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x298]
sub rsp, 0x360
movups xmm0, xmmword [str.reirraC]
mov eax, dword [0x140024b08]
xor edi, edi
mov rbx, rcx
mov dword [rbp - 0x50], eax
movdqu xmmword [rbp - 0x48], xmm0
lea rcx, [rsp + 0x60]
mov r13d, r8d
movsd xmm0, qword [str.igakA]
lea r14d, [rdi + 1]
movsd qword [rbp - 0x58], xmm0
mov esi, edi
mov r15d, edi
mov dword [rsp + 0x68], 0x10028
mov r12d, edi
mov dword [rsp + 0x6c], 0x1225
mov dword [rsp + 0x70], 0x82000
mov dword [rsp + 0x74], 0x80008
mov dword [rsp + 0x78], 8
mov qword [rsp + 0x7c], 0x20000000
mov qword [rbp - 0x7c], rdi
mov dword [rbp - 0x74], edi
mov dword [rsp + 0x60], edi
call qword [sym.imp.ntdll.dll_RtlQueryElevationFlags]
test byte [rsp + 0x60], r14b
je 0x140002292
lea edx, [rdi + 2]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x14000228b
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp qword [0x14002e918], rdi
jne 0x140001ebe
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x10]
mov qword [0x14002e918], rax
mov r14d, dword [rbx]
cmp r14d, 0xabcdef
jne 0x140001f40
mov dword [rsp + 0x60], edi
xor eax, eax
lea rdi, [rbp + 0x50]
mov ecx, 0x20a
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rbp + 0x50]
mov edx, 1
mov rcx, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call section..text
xor r8d, r8d
cmp dword [rsp + 0x60], r8d
je 0x140002284
movzx edx, word [rbp + 0x50]
lea rdi, [rbp + 0x50]
mov r14d, r8d
jmp 0x140001f36
lea eax, [rdx - 0x30]
cmp ax, 9
ja 0x140001f3b
movzx eax, dx
lea r14d, [r14 + r14*4]
add rdi, 2
lea r14d, [r14 - 0x18]
lea r14d, [rax + r14*2]
movzx edx, word [rdi]
test dx, dx
jne 0x140001f17
mov dword [rbx], r14d
xor edi, edi
test r14d, r14d
je 0x140002284
cmp r14d, 0x3c
jge 0x140002284
mov qword [rbp - 0x68], rdi
mov dword [rbp - 0x70], edi
mov dword [rsp + 0x64], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x68]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
xor ebx, ebx
mov edi, eax
test eax, eax
js 0x140001fad
mov rcx, qword [rbp - 0x68]
lea rax, [rbp - 0x70]
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x64]
lea edx, [rbx + 0x12]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
mov rcx, qword [rbp - 0x68]
mov edi, eax
call qword [sym.imp.ntdll.dll_NtClose]
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
js 0x14000227d
cmp dword [rsp + 0x64], 3
jne 0x140002276
mov rax, qword [rbp + 0x2a8]
test rax, rax
je 0x140001fe9
test r13d, r13d
je 0x140001fe9
mov r15, rax
mov r12d, r13d
jmp 0x14000202a
xor eax, eax
mov dword [rsp + 0x60], ebx
lea rdi, [rbp + 0x50]
mov ecx, 0x20a
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rbp + 0x50]
mov edx, 2
mov rcx, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call section..text
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14000202a
lea r15, [rbp + 0x50]
mov r12d, eax
xor r9d, r9d
mov dword [rsp + 0x28], 0x8000
lea rax, [0x140001d80]
mov dword [rbp - 0x30], 0x50
mov qword [rbp - 0x28], rax
mov edx, 0x7f00
mov rax, qword [0x14002e918]
xor ecx, ecx
lea r8d, [r9 + 2]
mov dword [rbp - 0x2c], 0x20
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_LoadImageW]
xorps xmm0, xmm0
mov qword [rbp + 0x18], rbx
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x30]
lea rax, [rbp - 0x48]
movdqa xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov rax, qword [0x14002e918]
lea r8, [rbp - 0x58]
mov qword [rsp + 0x58], rbx
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x50], rax
mov r9d, 0x96000000
mov qword [rsp + 0x48], rbx
mov eax, 0x1e
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
lea ecx, [rax - 0x16]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
lea rdx, [rsp + 0x68]
mov rdi, rax
call qword [sym.imp.GDI32.dll_ChoosePixelFormat]
lea r8, [rsp + 0x68]
mov rcx, rdi
mov edx, eax
call qword [sym.imp.GDI32.dll_SetPixelFormat]
mov rcx, rdi
call qword [sym.imp.OPENGL32.dll_wglCreateContext]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
mov ecx, 0x405
call qword [sym.imp.OPENGL32.dll_glDrawBuffer]
mov ecx, 0x4100
call qword [sym.imp.OPENGL32.dll_glClear]
mov ecx, 0x1701
call qword [sym.imp.OPENGL32.dll_glMatrixMode]
call qword [sym.imp.OPENGL32.dll_glLoadIdentity]
mov ecx, 4
call qword [sym.imp.OPENGL32.dll_glBegin]
xor r9d, r9d
xor edx, edx
lea r13d, [r9 + 1]
mov r8d, r13d
mov ecx, r13d
call qword [sym.imp.OPENGL32.dll_glColor4i]
or eax, 0xffffffff
mov edx, eax
mov ecx, eax
call qword [sym.imp.OPENGL32.dll_glVertex2i]
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.OPENGL32.dll_glVertex2i]
or edx, 0xffffffff
mov ecx, r13d
call qword [sym.imp.OPENGL32.dll_glVertex2i]
call qword [sym.imp.OPENGL32.dll_glEnd]
lea rax, [0x140003180]
and qword [0x14002e470], rsi
mov edx, 1
mov qword [rbp - 0x60], rax
mov r13d, 0x1908
lea rax, [rbp - 0x60]
mov r9d, 0x1401
mov r8d, r13d
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 1]
call qword [sym.imp.OPENGL32.dll_glDrawPixels]
xor edx, edx
lea rax, [0x14002e470]
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov dword [rsp + 0x28], 0x1401
mov dword [rsp + 0x20], r13d
lea r9d, [rdx + 1]
lea r8d, [rdx + 2]
call qword [sym.imp.OPENGL32.dll_glReadPixels]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SwapBuffers]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
lea rcx, [rbp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
mov edi, eax
cmp eax, 0xffffffff
je 0x140002242
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
test edi, edi
jne 0x140002211
mov rdx, qword [0x14002e918]
lea rcx, [rbp - 0x48]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, dword [rbp + 0x2b8]
mov r8d, r12d
mov rdx, r15
mov dword [rsp + 0x20], eax
mov ecx, r14d
call fcn.1400107e8
mov qword [0x14002e920], rax
xor edi, edi
jmp 0x140002297
mov eax, 0xc00000bb
jmp 0x1400022a8
mov esi, 0xc00000e5
jmp 0x140002272
mov eax, 0xc000000d
jmp 0x1400022a8
mov esi, 0xc00000e5
jmp 0x140002297
mov esi, 0xc000042c
cmp qword [0x14002e920], rdi
mov eax, 0x40000015
cmove esi, eax
mov eax, esi
mov rbx, qword [rsp + 0x3a0]
add rsp, 0x360
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret