Function at 0x6c234528
Capabilities:
Check mutex on windows
Create thread
Get system information on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xc8
mov edi, dword [ecx]
mov dword [ebp - 0x5c], edi
mov edi, dword [ecx + 4]
mov dword [ebp - 0x54], edi
fld dword [ecx + 8]
fstp dword [ebp - 0x64]
mov edx, dword [0x6c45c110]
test edx, edx
je 0x6c234beb
mov dword [0x6c45c104], 0
mov dword [esp + 8], 0x6c45c114
mov edi, dword [ebp - 0x54]
mov dword [esp + 4], edi
mov dword [esp], 0x6c487500
call fcn.6c26b5c4
mov dword [0x6c45c11c], edi
mov edi, dword [ebp - 0x5c]
mov dword [0x6c45c108], edi
mov dword [esp], 0x10
call fcn.6c2df72c
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x5c]
mov edi, dword [eax]
imul edi, dword [eax + 4]
mov eax, dword [ebp - 0x58]
mov dword [eax + 4], edi
fld dword [ebp - 0x64]
fdivr dword [0x6c368048]
fstp dword [eax + 0xc]
mov dword [esp + 4], edi
mov dword [esp], 4
call sub.msvcrt.dll_calloc
mov edx, dword [ebp - 0x58]
mov dword [edx + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 4
call sub.msvcrt.dll_calloc
mov ebx, eax
mov eax, dword [ebp - 0x58]
mov dword [eax], ebx
test edi, edi
jle 0x6c2345fc
xor eax, eax
nop
mov dword [ebx + eax*4], eax
inc eax
cmp eax, edi
jne 0x6c2345f4
mov dword [ebp - 0x54], 3
mov edx, 7
mov dword [ebp - 0x50], edi
mov eax, dword [ebp - 0x50]
test eax, eax
jle 0x6c23462e
xor ecx, ecx
mov esi, dword [ebx + ecx*4]
lea eax, [esi + edx]
cdq
idiv dword [ebp - 0x50]
lea eax, [ebx + edx*4]
mov edi, dword [eax]
mov dword [ebx + ecx*4], edi
mov dword [eax], esi
inc ecx
cmp ecx, dword [ebp - 0x50]
jne 0x6c234614
dec dword [ebp - 0x54]
jne 0x6c23460b
mov eax, dword [ebp - 0x58]
mov dword [0x6c459080], eax
mov edi, dword [ebp - 0x5c]
mov edi, dword [edi + 4]
mov dword [ebp - 0xb0], edi
mov edi, dword [0x6c45c110]
mov dword [ebp - 0xb4], edi
mov esi, dword [edi + 0x120]
mov eax, dword [ebp - 0xb0]
cdq
idiv esi
mov edi, eax
cmp eax, 1
jle 0x6c234706
imul eax, esi
mov edx, dword [ebp - 0xb0]
sub edx, eax
mov eax, edx
add eax, edi
mov dword [ebp - 0xb0], eax
cmp esi, 1
jle 0x6c2346b4
mov edx, eax
mov eax, 1
mov dword [ebp - 0x50], edi
mov edi, dword [ebp - 0xb4]
nop
mov ebx, edx
add edx, dword [ebp - 0x50]
lea ecx, [eax + eax*2]
lea ecx, [edi + ecx*8]
mov dword [ecx + 0x12c], ebx
mov dword [ecx + 0x130], edx
inc eax
cmp eax, esi
jne 0x6c234698
mov edi, dword [ebp - 0xb4]
mov dword [edi + 0x364], esi
mov eax, edi
add eax, 0x364
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedDecrement
push eax
cmp dword [edi + 0x120], 1
jle 0x6c2346fa
mov ebx, 1
mov esi, dword [ebp - 0xb4]
mov eax, dword [esi + ebx*4 + 0x60]
mov dword [esp], eax
call sub.KERNEL32.dll_SetEvent
push eax
inc ebx
cmp ebx, dword [esi + 0x120]
jl 0x6c2346e4
mov edi, dword [0x6c45c110]
mov dword [ebp - 0xb4], edi
mov edi, dword [ebp - 0xb0]
test edi, edi
jle 0x6c234ab1
mov dword [ebp - 0x84], 0xffffffff
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x58], 0
mov edi, dword [ebp - 0x5c]
mov esi, dword [edi]
mov ebx, edi
mov dword [ebp - 0x50], esi
lea esi, [esi]
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x50]
test eax, eax
mov dword [ebp - 0xac], edi
jle 0x6c234a90
mov ecx, 1
jmp 0x6c23478d
mov esi, dword [ebp - 0x58]
test esi, esi
js 0x6c234795
mov edi, dword [ebp - 0x58]
cmp dword [ebx + 4], edi
jle 0x6c234795
mov edx, dword [ebp - 0x50]
imul edx, edi
add edx, eax
mov eax, dword [ebx + 8]
cmp byte [eax + edx*4 + 3], 0xef
jbe 0x6c234795
mov dword [ebp - 0x68], ecx
inc ecx
mov edi, dword [ebp - 0x68]
cmp dword [ebp - 0x50], edi
jle 0x6c234a90
mov eax, ecx
dec eax
mov dword [ebp - 0x64], eax
jns 0x6c23475c
mov edi, dword [ebp - 0x88]
cmp dword [ebp - 0x84], edi
mov dword [ebp - 0x68], ecx
jg 0x6c234780
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x54], edi
mov edx, dword [ebp - 0x84]
xorps xmm0, xmm0
mov esi, 1
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x5c], 0
lea eax, [ecx - 2]
mov dword [ebp - 0x80], eax
test edx, edx
js 0x6c234a1a
mov edi, dword [ebx + 4]
mov dword [ebp - 0x6c], edi
cmp edi, edx
jle 0x6c234a1a
mov eax, dword [ebp - 0x80]
cmp eax, ecx
jg 0x6c234a1a
mov edi, dword [ebp - 0x50]
imul edi, edx
mov dword [ebp - 0x98], edi
lea edi, [esi + 1]
mov dword [ebp - 0x8c], edi
mov edi, dword [ebp - 0x54]
sub edi, 2
mov dword [ebp - 0x90], edi
mov edi, dword [ebp - 0x50]
imul edi, dword [ebp - 0x90]
mov dword [ebp - 0xa4], edi
mov edi, dword [ebp - 0x54]
imul edi, dword [ebp - 0x50]
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xb8], edx
test eax, eax
js 0x6c234b60
cmp dword [ebp - 0x50], eax
jle 0x6c234b60
mov edx, dword [ebx + 8]
mov dword [ebp - 0xa8], edx
mov edi, dword [ebp - 0x98]
add edi, eax
mov dword [ebp - 0x9c], edi
lea edx, [edx + edi*4]
mov dword [ebp - 0x7c], edx
cmp byte [edx + 3], 0xff
jne 0x6c234b60
mov edi, ecx
sub edi, eax
mov dword [ebp - 0x60], edi
mov edx, dword [ebp - 0x8c]
lea edi, [edx + edx*2]
add edi, dword [ebp - 0x60]
mov edi, dword [edi*4 + 0x6c364b00]
mov dword [ebp - 0x60], edi
mov edx, dword [ebp - 0x7c]
movzx edi, byte [edx]
imul edi, dword [ebp - 0x60]
add dword [ebp - 0x70], edi
movzx edi, byte [edx + 1]
imul edi, dword [ebp - 0x60]
add dword [ebp - 0x74], edi
movzx edi, byte [edx + 2]
imul edi, dword [ebp - 0x60]
add dword [ebp - 0x78], edi
mov edi, dword [ebp - 0x60]
add dword [ebp - 0x5c], edi
mov edx, dword [ebp - 0x94]
test edx, edx
jne 0x6c234b60
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x60], edx
test edx, edx
je 0x6c234b60
mov edi, dword [ebp - 0x9c]
shl edi, 4
mov edx, dword [ebp - 0x60]
movaps xmm0, xmmword [edx + edi]
lea edi, [eax + 1]
mov dword [ebp - 0x7c], edi
cmp dword [ebp - 0x50], edi
jle 0x6c234b70
mov edi, dword [ebp - 0x98]
add edi, dword [ebp - 0x7c]
mov edx, dword [ebp - 0xa8]
cmp byte [edx + edi*4 + 3], 0xef
jbe 0x6c234b70
mov edi, dword [ebp - 0x9c]
inc edi
shl edi, 4
mov edx, dword [ebp - 0x60]
movaps xmm3, xmmword [edx + edi]
subps xmm3, xmm0
mov edi, dword [ebp - 0x54]
test edi, edi
js 0x6c234baf
mov edi, dword [ebp - 0x6c]
cmp dword [ebp - 0x54], edi
jge 0x6c234baf
mov edi, dword [ebp - 0xa0]
add edi, eax
mov edx, dword [ebp - 0xa8]
cmp byte [edx + edi*4 + 3], 0xef
jbe 0x6c234baf
shl edi, 4
mov edx, dword [ebp - 0x60]
movaps xmm4, xmmword [edx + edi]
subps xmm4, xmm0
movaps xmm2, xmm3
mulps xmm2, xmm3
movaps xmm1, xmm2
shufps xmm1, xmm2, 0xc9
addps xmm1, xmm2
shufps xmm2, xmm2, 0xd2
addps xmm1, xmm2
movss dword [ebp - 0x60], xmm1
fldz
fld dword [ebp - 0x60]
fcompi st(1)
jbe 0x6c234b66
movaps xmm2, xmm4
mulps xmm2, xmm4
movaps xmm1, xmm2
shufps xmm1, xmm2, 0xc9
addps xmm1, xmm2
shufps xmm2, xmm2, 0xd2
addps xmm1, xmm2
movss dword [ebp - 0x60], xmm1
fld dword [ebp - 0x60]
fcompi st(1)
fstp st(0)
jbe 0x6c234b68
mov dword [ebp - 0x4c], esi
fild dword [ebp - 0x4c]
fstp dword [ebp - 0x60]
movss xmm1, dword [ebp - 0x60]
shufps xmm1, xmm1, 0
movaps xmm2, xmm1
mulps xmm2, xmm4
mov edx, dword [ebp - 0x64]
sub edx, eax
mov dword [ebp - 0x4c], edx
fild dword [ebp - 0x4c]
fstp dword [ebp - 0x60]
movss xmm4, dword [ebp - 0x60]
shufps xmm4, xmm4, 0
movaps xmm1, xmm4
mulps xmm1, xmm3
addps xmm1, xmm2
addps xmm0, xmm1
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x94], 1
lea esi, [esi]
cmp eax, ecx
jle 0x6c23484b
mov edx, dword [ebp - 0xb8]
inc edx
inc dword [ebp - 0x54]
dec esi
cmp esi, 0xfffffffe
jne 0x6c2347e6
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x6c234780
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x6c234a4a
mov eax, dword [ebp - 0x58]
imul eax, dword [ebx]
add eax, dword [ebp - 0x64]
shl eax, 4
movaps xmmword [edx + eax], xmm0
mov esi, dword [ebp - 0x58]
imul esi, dword [ebx]
add esi, dword [ebp - 0x64]
mov eax, dword [ebx + 8]
lea esi, [eax + esi*4]
mov eax, dword [ebp - 0x70]
xor edx, edx
div dword [ebp - 0x5c]
mov byte [esi], al
mov eax, dword [ebp - 0x74]
xor edx, edx
div dword [ebp - 0x5c]
mov byte [esi + 1], al
mov eax, dword [ebp - 0x78]
xor edx, edx
div dword [ebp - 0x5c]
mov byte [esi + 2], al
mov byte [esi + 3], 0xfe
mov eax, dword [ebx]
mov dword [ebp - 0x50], eax
inc ecx
mov edi, dword [ebp - 0x68]
cmp dword [ebp - 0x50], edi
jg 0x6c23478d
nop
inc dword [ebp - 0x58]
inc dword [ebp - 0x88]
inc dword [ebp - 0x84]
mov edi, dword [ebp - 0xac]
cmp dword [ebp - 0xb0], edi
jg 0x6c23473c
mov edi, dword [ebp - 0xb4]
mov eax, dword [edi + 0x364]
test eax, eax
jle 0x6c234ae4
mov ebx, edi
nop
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 0x60]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov eax, dword [ebx + 0x364]
test eax, eax
jg 0x6c234ac4
mov edi, dword [ebp - 0xb4]
cmp dword [edi + 0x120], 1
jle 0x6c234b2c
mov ebx, 1
mov esi, edi
jmp 0x6c234b05
inc ebx
cmp ebx, dword [esi + 0x120]
jge 0x6c234b2c
lea eax, [ebx + ebx*2]
lea eax, [esi + eax*8]
mov eax, dword [eax + 0x130]
test eax, eax
je 0x6c234afc
dec ebx
mov dword [esp], 0xa
call sub.msvcrt_ruby200.dll_Sleep_4
push eax
inc ebx
cmp ebx, dword [esi + 0x120]
jl 0x6c234b05
mov ebx, dword [0x6c459080]
test ebx, ebx
je 0x6c234b53
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], ebx
call fcn.6c2df6f4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
inc eax
jmp 0x6c234a0c
fstp st(0)
mov eax, dword [ebp - 0x7c]
jmp 0x6c234a0c
lea edi, [eax - 1]
cmp edi, 0xffffffff
je 0x6c234b68
cmp dword [ebp - 0x50], edi
jle 0x6c234b68
add edi, dword [ebp - 0x98]
mov edx, dword [ebp - 0xa8]
cmp byte [edx + edi*4 + 3], 0xef
jbe 0x6c234b68
mov edi, dword [ebp - 0x9c]
dec edi
shl edi, 4
movaps xmm3, xmm0
mov edx, dword [ebp - 0x60]
subps xmm3, xmmword [edx + edi]
mov edi, dword [ebp - 0x54]
test edi, edi
jns 0x6c23493d
mov edx, dword [ebp - 0x90]
test edx, edx
js 0x6c234b68
mov edi, dword [ebp - 0x90]
cmp dword [ebp - 0x6c], edi
jle 0x6c234b68
mov edi, dword [ebp - 0xa4]
add edi, eax
mov edx, dword [ebp - 0xa8]
cmp byte [edx + edi*4 + 3], 0xef
jbe 0x6c234b68
shl edi, 4
movaps xmm4, xmm0
mov edx, dword [ebp - 0x60]
subps xmm4, xmmword [edx + edi]
jmp 0x6c23496f
mov dword [esp], 0x368
call fcn.6c2df72c
mov esi, eax
mov dword [eax + 0x364], 0
mov dword [eax + 0x120], 1
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetSystemInfo
push eax
mov edx, dword [ebp - 0x28]
mov dword [esi + 0x120], edx
cmp edx, 1
jle 0x6c234d75
mov eax, 0x18
cmp edx, 0x18
cmovle eax, edx
mov dword [esi + 0x120], eax
call sub.KERNEL32.dll_GetCurrentThread
mov dword [esi], eax
mov eax, dword [esi + 0x120]
test eax, eax
jle 0x6c234d37
lea edi, [esi + 0xc0]
lea eax, [esi + 0x124]
mov dword [ebp - 0x50], eax
xor ebx, ebx
jmp 0x6c234c7a
inc ebx
mov eax, dword [esi + 0x120]
add edi, 4
add dword [ebp - 0x50], 0x18
cmp ebx, eax
jge 0x6c234d42
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov dword [edi - 0x60], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateMutexA
sub esp, 0xc
mov dword [edi], eax
mov edx, dword [ebp - 0x50]
mov dword [edx], esi
mov dword [edx + 4], ebx
lea edx, [ebx + ebx*2]
shl edx, 3
lea eax, [esi + edx]
mov dword [eax + 0x12c], 1
mov dword [eax + 0x130], 1
test ebx, ebx
je 0x6c234c64
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea eax, [esi + edx + 0x124]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x6c22dedc
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [edi - 0xc0], eax
jmp 0x6c234c64
mov dword [0x6c45c110], esi
jmp 0x6c23455e
dec eax
jle 0x6c234d37
mov ebx, 1
jmp 0x6c234d55
inc ebx
cmp ebx, dword [esi + 0x120]
jge 0x6c234d37
lea eax, [ebx + ebx*2]
lea eax, [esi + eax*8]
mov eax, dword [eax + 0x130]
test eax, eax
je 0x6c234d4c
mov dword [esp], 0xa
call sub.msvcrt_ruby200.dll_Sleep_4
push eax
dec ebx
jmp 0x6c234d4c
mov eax, 2
jmp 0x6c234c36