Function at 0x180013370
Capabilities:
Create thread
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 1
je 0x180013396
jmp 0x180013672
lea rcx, str.OpenGL32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x38], rax
call fcn.180088670
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1800133c1
xor eax, eax
jmp 0x180013678
cmp qword [rsp + 0x38], 0
jne 0x1800133d0
xor eax, eax
jmp 0x180013678
mov eax, 4
mov eax, eax
mov ecx, dword [0x1802b5590]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x1802b525c], eax
jle 0x180013429
lea rcx, [0x1802b525c]
call fcn.18008d13c
cmp dword [0x1802b525c], 0xffffffff
jne 0x180013429
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [0x1802b5258], eax
lea rcx, [0x1802b525c]
call fcn.18008d0dc
cmp dword [0x1802b5258], 0
jne 0x180013439
xor eax, eax
jmp 0x180013678
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [0x1802b5258]
lea r8, [0x180011190]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x18001346e
xor eax, eax
jmp 0x180013678
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [0x1802b5258]
lea r8, [0x1800128b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x1800134a3
xor eax, eax
jmp 0x180013678
lea rdx, str.glCallList
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802b5000], rax
lea rdx, [0x18012e3d0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802b5008], rax
lea rdx, [0x18012e3e0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802b5010], rax
lea rdx, str.wglSwapBuffers
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802b5028], rax
lea rdx, [0x18012e400]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802b5018], rax
lea rdx, str.glScalef
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802b5020], rax
lea rdx, [0x18012e418]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802b5030], rax
call fcn.18008b4b0
call fcn.18008a710
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.18008ac40
lea rdx, [0x180010e50]
lea rcx, [0x1802b5000]
call fcn.180089f40
lea rdx, [0x1800115e0]
lea rcx, [0x1802b5008]
call fcn.180089f40
lea rdx, [0x180011550]
lea rcx, [0x1802b5010]
call fcn.180089f40
lea rdx, [0x180011660]
lea rcx, [0x1802b5018]
call fcn.180089f40
lea rdx, [0x1800114f0]
lea rcx, [0x1802b5028]
call fcn.180089f40
lea rdx, [0x180011b70]
lea rcx, [0x1802b5030]
call fcn.180089f40
lea rdx, [0x180011840]
lea rcx, [0x1802b5020]
call fcn.180089f40
mov rax, qword [rsp + 0x38]
mov qword [0x1802b5048], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180009ba0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.18008a790
test eax, eax
jne 0x180013633
mov dword [rsp + 0x30], 1
jmp 0x18001363b
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
jmp 0x180013678
jmp 0x180013676
xor eax, eax
add rsp, 0x58
ret