Function at 0x180063820
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x38
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x18006388d
lea rdx, str.wglSwapBuffers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov qword [0x1800bf088], rax
lea r8, [0x1800bf098]
lea rdx, [0x180062530]
call fcn.18007c0e4
test eax, eax
je 0x180063894
mov ecx, eax
call fcn.18007c2a4
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov rdx, rax
call fcn.18005ee70
lea rdx, [0x18005f040]
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 [0x1800bf088]
mov qword [rsp + 0x30], r14
xor r14d, r14d
mov ebx, r14d
xor eax, eax
lock cmpxchg dword [0x1800bf028], esi
je 0x1800638e7
cmp rbx, 0x20
jae 0x1800638d0
xor ecx, ecx
jmp 0x1800638d2
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800bf028], esi
jne 0x1800638c6
cmp qword [0x1800bf030], r14
mov qword [rsp + 0x48], rbp
je 0x180063a05
test rdi, rdi
jne 0x180063909
mov ecx, esi
call fcn.18007bf34
mov ebp, eax
jmp 0x180063934
mov ecx, dword [0x1800c09dc]
mov ebx, r14d
test ecx, ecx
je 0x18006392f
mov r8, qword [0x1800c09d0]
mov rax, r8
cmp rdi, qword [rax]
je 0x180063968
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180063920
mov ebp, 4
xchg dword [0x1800bf028], r14d
test ebp, ebp
jne 0x180063a11
mov rcx, qword [0x1800bf198]
lea r8, [0x1800624d0]
lea edx, [rbp - 4]
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov qword [0x1800bf080], rax
mov al, 1
jmp 0x180063a39
cmp ebx, 0xffffffff
je 0x18006392f
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x1800639fb
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18007bac0
mov edx, esi
mov ecx, ebx
call fcn.18007be24
mov ebp, eax
cmp qword [rsp + 0x20], r14
je 0x180063934
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800639e2
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop
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 0x1800639d8
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 0x1800639b0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800bf030]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180063934
mov ebp, 5
jmp 0x180063934
xchg dword [0x1800bf028], r14d
mov ebp, 2
mov ecx, ebp
call fcn.18007c2a4
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov rdx, rax
call fcn.18005ee70
lea rdx, [0x18005f040]
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