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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017fe7d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x101e6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x70], esi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
push 0x24
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x5c], vtable.CArkParaZpaqMan.0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.1015144f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 0
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
mov ecx, fcn.10017850
mov eax, dword [esi + 0x728]
xorps xmm0, xmm0
cmp dword [esi + 0x38], 0
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x72c]
mov dword [ebp - 0x54], eax
mov eax, 0x1001bd90
cmovne eax, ecx
movq qword [ebp - 0x1c], xmm0
xor esi, esi
mov dword [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x50], eax
xor edi, edi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x14], ecx
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x68], eax
cmp dword [ebp + 0xc], eax
jbe 0x1007cc8c
mov esi, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x60], eax
nop dword [eax]
cmp edi, ecx
je 0x1007cc5e
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x18], edi
jmp 0x1007cc74
lea eax, [ebp - 0x68]
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.100816f0
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
lea eax, [edx + 1]
mov dword [ebp - 0x68], eax
mov edx, eax
mov dword [ebp - 0x60], eax
cmp eax, esi
jb 0x1007cc50
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], esi
push ecx
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x30], xmm0
call fcn.1007d500
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0x64]
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x68], eax
jbe 0x1007cd0f
nop word [eax + eax]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0
lea eax, [ebp - 0x38]
push eax
push 0x100a03a0
push 0
push 0
call fcn.10161c9f
mov ecx, dword [ebp - 0x60]
add esp, 0x18
mov edx, dword [ebp - 0x68]
mov dword [edx + ecx*4], eax
test eax, eax
je 0x1007ceba
inc ecx
mov dword [ebp - 0x60], ecx
cmp ecx, dword [ebp + 0xc]
jb 0x1007ccd0
mov ecx, dword [ebp - 0x64]
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov eax, edi
sub eax, esi
test eax, 0xfffffffc
je 0x1007cd5f
imul eax, dword [esi], 0x68
add ecx, 0x78
push 0x64
add ecx, eax
call fcn.1009e750
test al, al
je 0x1007cdc8
lea ecx, [esi + 4]
mov eax, edi
sub eax, ecx
push eax
push ecx
push esi
call fcn.101528b0
mov ecx, dword [ebp - 0x64]
sub edi, 4
mov eax, edi
mov dword [ebp - 0x18], edi
sub eax, esi
add esp, 0xc
test eax, 0xfffffffc
jne 0x1007cd22
mov dword [ebp - 0x60], 1
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x64]
call fcn.1007ced0
mov ecx, dword [ebp - 0x70]
neg eax
sbb eax, eax
and dword [ebp - 0x6c], eax
mov eax, dword [ecx + 0x754]
or eax, dword [ecx + 0x750]
jne 0x1007cdd1
cmp dword [ebp - 0x60], 1
je 0x1007cddb
mov eax, dword [ecx + 0x730]
cmp byte [eax + 0x90], 0
je 0x1007cdc0
push 0x101caadc
call fcn.10003260
push 1
call fcn.1015d37f
push eax
call fcn.10162083
add esp, 0xc
mov ecx, dword [ebp - 0x64]
jmp 0x1007cd17
mov dword [ebp - 0x60], 0
jmp 0x1007cd66
mov eax, dword [ebp - 0x64]
mov byte [eax + 0xd78], 1
mov eax, dword [ecx + 0x730]
cmp byte [eax + 0x90], 0
je 0x1007cdf7
push 0x1018d630
call fcn.10003260
add esp, 4
mov eax, dword [ebp - 0x2c]
xor edi, edi
mov ecx, dword [ebp - 0x68]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1007ce32
mov esi, eax
nop word [eax + eax]
push 0xffffffffffffffff
push dword [ecx + edi*4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x68]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x68]
inc edi
cmp edi, esi
jb 0x1007ce10
mov esi, dword [ebp - 0x74]
mov edi, dword [ebp - 0x64]
mov ecx, dword [edi + 0x70]
test ecx, ecx
je 0x1007ce4a
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov dword [edi + 0x70], 0
lea ecx, [ebp - 0x30]
call fcn.10020400
test esi, esi
je 0x1007ce82
mov ecx, dword [ebp - 0x78]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1007ce78
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007cec4
push ecx
push esi
call fcn.10151441
add esp, 8
push dword [ebp - 0x3c]
mov dword [ebp - 0x5c], vtable.CArkParaZpaqMan.0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x4c]
call fcn.1009edf0
mov eax, dword [ebp - 0x6c]
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.10151433
mov esp, ebp
pop ebp
ret 8
mov ecx, str.CreateThread_failed
call fcn.100d7670
call fcn.10155291
int3