Function at 0x462f10
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e33f
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x55306c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
lea esi, [edi + 0xc]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
test esi, esi
je 0x462f5d
mov eax, dword [esi]
test eax, eax
je 0x462f5d
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
cmp eax, ecx
je 0x462f7f
cmp edx, dword [eax]
je 0x463309
add eax, 0x18
cmp eax, ecx
jne 0x462f70
xorps xmm0, xmm0
mov dword [ebp - 0x58], edx
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], 0
cmp dword [edi + 8], ecx
je 0x462fad
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [ecx], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ecx + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x462fb9
lea eax, [ebp - 0x58]
push eax
push ecx
mov ecx, edi
call fcn.004656e0
mov eax, dword [edi + 0x10]
test eax, eax
je 0x463015
push 0
mov ecx, eax
call fcn.004b3f30
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x462fe1
cmp byte [eax + 8], 0
mov esi, dword [ebp - 0x18]
je 0x462fe1
mov eax, dword [edi + 0x10]
jmp 0x46300d
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x463015
push 0xffffffffffffffff
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x463004
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 0x10], 0
xor eax, eax
test eax, eax
jne 0x463309
mov eax, dword [edi + 0x38]
mov ecx, dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x46302b
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x463035
push eax
call ecx
push 0xc
call fcn.004c22d8
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax], vtable.RC::RCRefCounted.0
mov dword [eax + 4], 0
mov byte [ebp - 4], 2
push 0x44
mov dword [eax], vtable.RC::RCThread.0
call fcn.004c22d8
mov edi, eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 3
push 0x18
call fcn.004c22d8
add esp, 0xc
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 4
mov eax, edi
lea edi, [eax + 0x24]
xor ecx, ecx
mov dword [ebp - 0x40], edi
mov dword [edi], 0
mov byte [edi + 4], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 7
mov word [edi + 8], cx
mov byte [ebp - 4], 6
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x10], 0xffffffff
mov dword [eax + 0x14], 0xffffffff
mov byte [eax + 8], cl
mov dword [eax + 0x18], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x1c], ecx
xor eax, eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
push eax
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x3c]
push 0x529620
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
call fcn.00406aa0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x3c]
push ecx
push 1
push eax
mov ecx, edi
call fcn.004b41a0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x46314d
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x463143
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463347
push edx
push ecx
call fcn.004c2683
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov dword [ecx + 8], eax
mov dword [eax], edi
mov eax, dword [ecx + 8]
mov dword [eax + 4], 0x463660
mov byte [ebp - 4], 0
mov eax, dword [edi + 0x10]
cmp eax, ecx
je 0x4631c1
push 1
lea eax, [ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4631b7
push 0xffffffffffffffff
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x4631b7
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x10], eax
mov edi, eax
jmp 0x4631c3
mov edi, eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x463309
add ecx, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
je 0x4631f0
mov eax, dword [ecx]
test eax, eax
je 0x4631f0
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 8
mov eax, dword [edi + 8]
cmp dword [eax + 4], 0
jne 0x463224
mov byte [ebp - 4], 0
test ecx, ecx
je 0x463309
mov eax, dword [ecx]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
je 0x463218
push eax
call edi
mov dword [ebp - 0x14], 0
jmp 0x46330f
lea eax, [edi + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [edi + 8]
add eax, 0xc
push eax
push 4
push edi
push 0x4b3c00
push 0
push 0
call fcn.004e66bc
mov ecx, dword [edi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 8]
cmp dword [eax + 0x10], 0
jne 0x4632c2
push 0xffffffffffffffff
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x463272
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [edi + 8]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x463293
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0xffffffff
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
je 0x4632a5
push eax
call ecx
mov dword [edi + 0x14], 0xffffffff
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x463309
mov eax, dword [eax]
jmp 0x46320b
mov byte [eax + 8], 1
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4632da
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4632b0
push eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x4632ff
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [edi + 8]
call fcn.004b3dc0
jmp 0x4632b0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x46332a
mov eax, dword [esi]
test eax, eax
je 0x463323
push eax
call edi
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c1e08
mov esp, ebp
pop ebp
ret 4
call fcn.004e546f
int3