Function at 0x180063c80
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x38
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180063ced
lea rdx, str.wglSwapBuffers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov qword [0x1800bd098], rax
lea r8, [0x1800bd0a8]
lea rdx, [0x180062290]
call fcn.18007a648
test eax, eax
je 0x180063cf4
mov ecx, eax
call fcn.18007a808
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov rdx, rax
call fcn.18005f140
lea rdx, [0x18005f310]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
add rsp, 0x38
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov esi, 1
mov qword [rsp + 0x58], rdi
mov rdi, qword [0x1800bd098]
mov qword [rsp + 0x30], r14
xor r14d, r14d
mov ebx, r14d
xor eax, eax
lock cmpxchg dword [0x1800bd038], esi
je 0x180063d47
cmp rbx, 0x20
jae 0x180063d30
xor ecx, ecx
jmp 0x180063d32
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800bd038], esi
jne 0x180063d26
cmp qword [0x1800bd040], r14
mov qword [rsp + 0x48], rbp
je 0x180063e75
test rdi, rdi
jne 0x180063d69
mov ecx, esi
call fcn.18007a494
mov ebp, eax
jmp 0x180063d94
mov ecx, dword [0x1800be9bc]
mov ebx, r14d
test ecx, ecx
je 0x180063d8f
mov r8, qword [0x1800be9b0]
mov rax, r8
cmp rdi, qword [rax]
je 0x180063dc8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180063d80
mov ebp, 4
xchg dword [0x1800bd038], r14d
test ebp, ebp
jne 0x180063e81
mov rcx, qword [0x1800bd1a0]
lea r8, [0x180062230]
lea edx, [rbp - 4]
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov qword [0x1800bd090], rax
mov al, 1
jmp 0x180063ea9
cmp ebx, 0xffffffff
je 0x180063d8f
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x180063e6b
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180079fd8
mov ebp, eax
test eax, eax
jne 0x180063d94
mov edx, esi
mov ecx, ebx
call fcn.18007a384
mov ebp, eax
cmp qword [rsp + 0x20], r14
je 0x180063d94
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180063e52
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180063e48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180063e20
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800bd040]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180063d94
mov ebp, 5
jmp 0x180063d94
xchg dword [0x1800bd038], r14d
mov ebp, 2
mov ecx, ebp
call fcn.18007a808
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov rdx, rax
call fcn.18005f140
lea rdx, [0x18005f310]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x30]
add rsp, 0x38
ret