Function at 0x140081e10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r12d, r9d
mov r13d, r8d
mov rdi, rcx
mov eax, dword [rbp + 0x200]
mov dword [rcx + 0x48], eax
mov r15, 0xffffffffffffffff
mov dword [rcx + 0xb8], r15d
call fcn.140061f60
mov rbx, rax
xor edx, edx
mov r8d, 0xa0
lea rcx, [rbp + 0xa0]
call fcn.140152140
mov r8d, dword [rdi + 0x48]
lea rdx, [rbp + 0xa0]
mov rcx, rbx
call fcn.140065530
nop
xor edx, edx
mov r8d, 0xd0
lea rcx, [rbp - 0x60]
call fcn.140152140
mov r8d, dword [rbp + 0xa0]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.14006bf30
mov eax, dword [rbp + 0x38]
add eax, 0xfffffffe
cmp eax, 2
setbe bl
lea rcx, [rbp + 0x40]
call fcn.140004ff0
lea rcx, [rbp + 8]
call fcn.140004ff0
lea rcx, [rbp - 0x18]
call fcn.140004ff0
lea rcx, [rbp - 0x38]
call fcn.140004ff0
lea rcx, [rbp - 0x58]
call fcn.140004ff0
nop
lea rcx, [rbp + 0xa0]
call fcn.14000fbc0
mov byte [rdi + 0xb6], bl
xor edx, edx
xor ecx, ecx
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
xor r14d, r14d
cmp byte [0x14023d343], r14b
jne 0x140081fb5
mov dword [rbp + 0xa4], 0x20
lea rax, [0x140081cb0]
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc0], r14
mov qword [rbp + 0xe8], r14
mov qword [rbp + 0xc8], r14
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xd0], xmm0
lea rax, str.AMDDVRGLWINCLASS
mov qword [rbp + 0xe0], rax
mov dword [rbp + 0xa0], 0x50
lea rcx, [rbp + 0xa0]
call qword [sym.imp.USER32.dll_RegisterClassExW]
cmp r14w, ax
je 0x140081fa4
mov byte [0x14023d343], 1
jmp 0x140081fb5
lea rdx, str.Failed_to_RegisterClassEx_for_OpenGL
mov ecx, 7
call fcn.140083970
xor r9d, r9d
xor r8d, r8d
mov esi, 1
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x100], rax
lea ecx, [rsi + 0x17]
call fcn.14014f310
mov dword [rax], r12d
mov dword [rax + 4], r13d
mov qword [rax + 8], rdi
lea rcx, [0x140081cc0]
mov qword [rax + 0x10], rcx
mov qword [rbp - 0x80], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140082da0]
xor edx, edx
xor ecx, ecx
call fcn.14016b4dc
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140082667
cmp dword [rsp + 0x68], 0
je 0x140082677
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x80]
call fcn.140129c40
test eax, eax
jne 0x14008267f
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov edx, 0x1388
mov rcx, qword [rdi + 0x100]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140082624
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rdi + 0x38], rax
test rax, rax
jne 0x140082114
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x60]
call fcn.140152140
lea rcx, [rbp - 0x60]
call fcn.14006dfd0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Could_not_GetDC._Error:
lea rcx, [rbp - 0x50]
call fcn.1400534c0
mov rcx, rax
mov edx, ebx
call fcn.14007bf70
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.140051c70
lea rax, [rsp + 0x30]
mov qword [rbp - 0x80], rax
lea r9, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r9, qword [rsp + 0x30]
mov qword [rsp + 0x20], r14
lea edx, [rsi + 1]
lea r8d, [rsi + 5]
call fcn.140083ad0
nop
lea rcx, [rsp + 0x30]
call fcn.140004ff0
nop
lea rcx, [rbp - 0x60]
call fcn.1400678c0
jmp 0x140082624
lea rdx, [0x140230d40]
mov rcx, rax
call qword [sym.imp.GDI32.dll_ChoosePixelFormat]
lea r8, [0x140230d40]
mov edx, eax
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.GDI32.dll_SetPixelFormat]
test eax, eax
jne 0x1400821d1
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x60]
call fcn.140152140
lea rcx, [rbp - 0x60]
call fcn.14006dfd0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.SetPixelFormat___failed._Error:
lea rcx, [rbp - 0x50]
call fcn.1400534c0
mov rcx, rax
mov edx, ebx
call fcn.14007bf70
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.140051c70
lea rax, [rsp + 0x30]
mov qword [rbp - 0x80], rax
lea r9, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r9, qword [rsp + 0x30]
mov qword [rsp + 0x20], r14
mov edx, 2
lea r8d, [rdx + 4]
call fcn.140083ad0
nop
lea rcx, [rsp + 0x30]
call fcn.140004ff0
nop
lea rcx, [rbp - 0x60]
call fcn.1400678c0
jmp 0x140082624
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.OPENGL32.dll_wglCreateContext]
mov qword [rdi + 0x40], rax
test rax, rax
jne 0x14008227a
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x60]
call fcn.140152140
lea rcx, [rbp - 0x60]
call fcn.14006dfd0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.wglCreateContext____failed._Error:
lea rcx, [rbp - 0x50]
call fcn.1400534c0
mov rcx, rax
mov edx, ebx
call fcn.14007bf70
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.140051c70
lea rax, [rsp + 0x30]
mov qword [rbp - 0x80], rax
lea r9, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r9, qword [rsp + 0x30]
mov qword [rsp + 0x20], r14
mov edx, 2
lea r8d, [rdx + 4]
call fcn.140083ad0
nop
lea rcx, [rsp + 0x30]
call fcn.140004ff0
nop
lea rcx, [rbp - 0x60]
call fcn.1400678c0
jmp 0x140082624
mov rdx, rax
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
call fcn.140127de0
test eax, eax
jne 0x140082624
mov ecx, 0x1f02
call qword [sym.imp.OPENGL32.dll_glGetString]
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x54], r14d
test rax, rax
je 0x14008261f
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x50]
lea rdx, str._d._d
mov rcx, rax
call fcn.14007cdc0
cmp dword [rsp + 0x50], 2
jl 0x14008261f
cmp byte [0x14023afc5], 0
je 0x140082339
xor edx, edx
xor ecx, ecx
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.OPENGL32.dll_wglDeleteContext]
movdqa xmm0, xmmword [0x1401f9df0]
movdqu xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x70], 0x9126
mov qword [rbp - 0x6c], 1
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, qword [rdi + 0x38]
call qword [0x14023a550]
mov qword [rdi + 0x40], rax
test rax, rax
je 0x140082624
mov rdx, rax
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
mov rdx, qword [rdi + 0x40]
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
test eax, eax
je 0x140082624
lea rcx, str.wglGetDesktopTextureAMD
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
mov qword [rdi + 8], rax
test rax, rax
je 0x14008260e
cmp rax, 0
je 0x14008260e
lea rcx, str.wglEnablePostProcessAMD
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14008260e
cmp rax, 0
je 0x14008260e
lea rcx, str.wglPresentTextureToVideoAMD
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x14008260e
cmp rax, 0
je 0x14008260e
lea rcx, str.wglDesktopTargetAMD
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14008260e
cmp rax, 0
je 0x14008260e
lea rcx, str.wglGenPresentTextureAMD
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
mov qword [rdi + 0x28], rax
test rax, rax
je 0x14008260e
cmp rax, 0
je 0x14008260e
mov dword [rdi + 0x58], r14d
mov qword [rdi + 0x68], 0xffffffffffffffff
mov qword [rdi + 0x5c], 0xffffffffffffffff
mov qword [rdi + 0x70], 0xffffffffffffffff
mov dword [rdi + 0x64], 0xffffffff
mov dword [rdi + 0x78], r14d
mov rcx, qword [rdi + 0x80]
test rcx, rcx
je 0x14008243d
mov rax, qword [rcx]
mov edx, esi
call qword [rax]
mov ecx, 0x38
call fcn.14014f310
mov qword [rbp - 0x80], rax
lea rcx, vtable.GLShader.0
mov qword [rax], rcx
mov qword [rax + 8], r14
mov dword [rax + 0x10], r14d
mov qword [rax + 0x18], r14
mov qword [rax + 0x30], 0xf
mov byte [rax + 0x18], 0
mov qword [rax + 0x28], r14
mov byte [rax + 0x18], 0
mov qword [rdi + 0x80], rax
mov r8d, 0x8b31
lea rdx, str.version_420_nlayout_location__0__in_vec4_inVertex__nlayout_location__4__in_vec2_inTexCoord__nout_vec2_Texcoord__nvoid_main__void_______gl_Position__inVertex__n____Texcoord_____inTexCoord__n
mov rcx, rax
call fcn.140082e30
test al, al
jne 0x1400824a6
lea rdx, str.OpenGL:_Failed_to_create_vertex_shader.
mov ecx, 7
call fcn.140083970
mov r13, qword [rdi + 0x80]
lea rax, str.version_420_nuniform_sampler2D_baseMap__nin_vec2_Texcoord__nvoid_main__void_______vec4_texColor__texture2D__baseMap__Texcoord____n____gl_FragColor__vec4_texColor.r__texColor.g__texColor.b__texColor.a___n
mov qword [rbp - 0x80], rax
mov ecx, 0x8b30
call qword [0x140237de8]
mov ebx, eax
mov dword [r13 + 0xc], eax
xor r9d, r9d
lea r8, [rbp - 0x80]
mov edx, esi
mov ecx, eax
call qword [0x140238068]
mov ecx, ebx
call qword [0x140237dc0]
lea r8, [rsp + 0x58]
mov edx, 0x8b81
mov ecx, ebx
call qword [0x140237f60]
cmp dword [rsp + 0x58], 1
je 0x140082548
lea r9, [rbp - 0x60]
lea r8, [rsp + 0x70]
mov edx, 0x100
mov ecx, ebx
call qword [0x140237f20]
lea rax, [rbp - 0x60]
mov r8, r15
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140082520
lea rcx, [r13 + 0x18]
lea rdx, [rbp - 0x60]
call fcn.140005210
lea rdx, str.OpenGL:_Failed_to_create_fragment_shader.
mov ecx, 7
call fcn.140083970
mov rbx, qword [rdi + 0x80]
cmp dword [rbx + 8], 0
je 0x1400825f1
cmp dword [rbx + 0xc], 0
je 0x1400825f1
mov ecx, dword [rbx + 0x10]
test ecx, ecx
je 0x140082570
call qword [0x140237e10]
call qword [0x140237dd8]
mov dword [rbx + 0x10], eax
mov edx, dword [rbx + 8]
mov ecx, eax
call qword [0x140237d80]
mov edx, dword [rbx + 0xc]
mov ecx, dword [rbx + 0x10]
call qword [0x140237d80]
mov ecx, dword [rbx + 0x10]
call qword [0x140238040]
lea r8, [rsp + 0x5c]
mov edx, 0x8b82
mov ecx, dword [rbx + 0x10]
call qword [0x140237f10]
cmp dword [rsp + 0x5c], 1
je 0x140082602
lea r9, [rbp + 0xa0]
lea r8, [rsp + 0x74]
mov edx, 0x100
mov ecx, dword [rbx + 0x10]
call qword [0x140237f00]
lea rax, [rbp + 0xa0]
inc r15
cmp byte [rax + r15], 0
jne 0x1400825d4
lea rcx, [rbx + 0x18]
mov r8, r15
lea rdx, [rbp + 0xa0]
call fcn.140005210
lea rdx, str.OpenGL:_Failed_to_build_program.
mov ecx, 7
call fcn.140083970
xor edx, edx
xor ecx, ecx
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
jmp 0x140082627
lea rdx, str.OpenGL:_Failed_to_init_DOPP_extensions.
mov ecx, 7
call fcn.140083970
mov esi, 0xa
mov r14d, esi
cmp dword [rsp + 0x68], 0
jne 0x140082661
mov eax, r14d
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14014f2f0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14016b5bc
nop
mov dword [rsp + 0x68], r14d
mov ecx, 6
call fcn.140129a18
nop
mov ecx, esi
call fcn.140129a18
int3
mov ecx, eax
call fcn.1401299dc
int3