Function at 0x180047a90
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov edi, 1
xor eax, eax
lock cmpxchg dword [0x1800fa3a4], edi
je 0x180005361
nop
cmp rbx, 0x20
jae 0x18000534a
xor ecx, ecx
jmp 0x18000534c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800fa3a4], edi
jne 0x180005340
cmp qword [0x1800fa3b0], 0
jne 0x18000537f
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1800fa3b0], rax
xor eax, eax
lea rcx, str.opengl32.dll
xchg dword [0x1800fa3a4], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, str.Kernel32.dll
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, str.Winmm.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, [0x1800dddc0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.wglSwapBuffers
mov rcx, r13
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800ddde0]
mov rcx, r13
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WSASend
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800dddf8]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800dde08]
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.timeGetTime
mov rcx, rdi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800dde28]
mov rcx, rdi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.glCallList
mov rcx, r13
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r8, [0x1800f13d0]
mov rcx, rbx
lea rdx, [0x1800052f0]
mov rdi, rax
call fcn.180047720
lea r8, [0x1800fa308]
mov rcx, rsi
lea rdx, [0x180004b00]
call fcn.180047720
mov rcx, qword [rsp + 0x60]
lea r8, [0x1800fa310]
lea rdx, [0x180004350]
call fcn.180047720
lea r8, [0x1800fa2e8]
mov rcx, rbp
lea rdx, [0x180003d70]
call fcn.180047720
lea r8, [0x1800fa2f8]
mov rcx, r14
lea rdx, [0x180003da0]
call fcn.180047720
lea r8, [0x1800fa300]
mov rcx, r15
lea rdx, [0x180003d70]
call fcn.180047720
lea r8, [0x1800fa2f0]
mov rcx, rdi
lea rdx, [0x180003e90]
call fcn.180047720
lea r8, [0x1800fa2e0]
mov rcx, r12
lea rdx, [0x180003e20]
call fcn.180047720
xor eax, eax
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov dword [rsp + 0x20], eax
lea r8, [0x1800042a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 1
call fcn.180047a00
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp 0x180047a90
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov ebp, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x1800fa3a4], edi
je 0x180047ae1
nop
cmp rbx, 0x20
jae 0x180047aca
xor ecx, ecx
jmp 0x180047acc
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800fa3a4], edi
jne 0x180047ac0
cmp qword [0x1800fa3b0], rbp
je 0x180047c0d
mov r8d, dword [0x1800fa58c]
mov ebx, r15d
test r8d, r8d
je 0x180047c12
mov rdx, qword [0x1800fa580]
add rdx, 0x20
nop dword [rax]
movzx ecx, byte [rdx]
shr cl, 1
xor cl, byte [rdx]
test cl, 2
jne 0x180047b2c
inc ebx
add rdx, 0x38
cmp ebx, r8d
jb 0x180047b10
jmp 0x180047c12
cmp ebx, 0xffffffff
je 0x180047c12
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 2
call fcn.1800472f0
mov edx, dword [0x1800fa58c]
cmp ebx, edx
jae 0x180047ba1
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1800fa580]
movzx r8d, byte [rcx + rax + 0x20]
movzx eax, r8b
shr al, 1
xor al, r8b
test al, 2
je 0x180047b9b
mov edx, r8d
mov ecx, ebx
shr edx, 2
and edx, edi
call fcn.1800474a0
mov ebp, eax
test eax, eax
jne 0x180047ba1
mov edx, dword [0x1800fa58c]
inc ebx
cmp ebx, edx
jb 0x180047b60
cmp qword [rsp + 0x20], r15
je 0x180047c12
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180047bf7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rsi
mov esi, eax
nop dword [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 0x180047be8
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 0x180047bc0
mov rsi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800fa3b0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180047c12
mov ebp, 2
xchg dword [0x1800fa3a4], r15d
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret