Function at 0x4067d0
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468925
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4c700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4c7a8c], 0
je 0x406a41
mov eax, dword [0x4c909c]
add eax, 0x58
mov byte [ebp - 0x1c], 1
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
mov ebx, dword [ebp - 0x20]
test eax, eax
jne 0x406839
mov eax, 1
lock xadd dword [ebx], eax
test eax, eax
jne 0x406839
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebx + 4], eax
push 0xffffffffffffffff
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov ecx, dword [0x4c909c]
xorps xmm0, xmm0
push str.token.next
push eax
movlpd qword [ebp - 0x18], xmm0
call fcn.0041ebe0
mov edi, dword [eax]
mov esi, dword [edi + 4]
test esi, esi
je 0x406877
lock inc dword [esi + 4]
mov esi, dword [edi + 4]
mov edi, dword [edi]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4068e5
mov edx, dword [ebp - 0x28]
push ecx
call fcn.0040c7c0
mov eax, dword [ebp - 0x24]
add esp, 4
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x4068c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a5d
push edx
push ecx
call fcn.00449563
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [edi + 0x58], 0xffcccccc
lea eax, [ebp - 0x38]
mov dword [edi + 0x54], 0xffcccccc
mov word [edi + 0x35], 0
push str.token.value
mov byte [edi + 0x37], 1
mov ecx, dword [0x4c909c]
push eax
call fcn.0041ebe0
mov eax, dword [eax]
mov edi, dword [eax + 4]
test edi, edi
je 0x406921
lock inc dword [edi + 4]
mov edi, dword [eax + 4]
mov ecx, dword [ebp - 0x38]
mov ebx, dword [eax]
test ecx, ecx
je 0x406985
mov edx, dword [ebp - 0x34]
push ecx
call fcn.0040c7c0
mov eax, dword [ebp - 0x30]
add esp, 4
mov ecx, dword [ebp - 0x38]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x406966
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a62
push edx
push ecx
call fcn.00449563
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x406998
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
or ebx, 0xffffffff
test edi, edi
je 0x4069be
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4069be
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x4069be
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test esi, esi
je 0x4069e0
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4069e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4069e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4c909c]
push 0
push 0
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0xc
call fcn.004492e2
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [eax + 4], str.ValidateTokenThread
push 0
push 0
push eax
push 0x410b30
push 0
push 0
mov dword [eax], vtable.Util::SimpleThreadAdapter.0
mov dword [eax + 8], 0x4064c0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004490d7
mov esp, ebp
pop ebp
ret
call fcn.00458a87
call fcn.00458a87
int3