Function at 0x10024300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ba7b4
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x100f6458]
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
mov esi, ecx
mov dword [ebp - 0xc4], 0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 7
mov word [ebp - 0xb4], ax
mov byte [ebp - 4], 4
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
mov byte [ebp - 4], 5
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
mov byte [ebp - 4], 6
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov byte [ebp - 4], 8
xorps xmm0, xmm0
lea eax, [ebp - 0x48]
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0xb
lea eax, [ebp + 0x24]
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x9c]
push dword [ebp + 0x34]
cmovae eax, dword [ebp + 0x24]
push eax
call fcn.1000c5b0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xb4]
push eax
call fcn.1000c5b0
cmp dword [ebp + 0x78], 8
lea eax, [ebp + 0x64]
push dword [ebp + 0x74]
cmovae eax, dword [ebp + 0x64]
lea ecx, [ebp - 0x84]
push eax
call fcn.1000c5b0
mov eax, dword [ebp + 0x7c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x80]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xd4], 0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp + 0x60]
test ecx, ecx
je 0x1002448d
mov eax, dword [ecx]
lea edx, [ebp - 0xf8]
push edx
call dword [eax]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xf8]
call fcn.1000bd10
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xd4]
test ecx, ecx
je 0x100244cb
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xf8]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0xd4], 0
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x198]
lea eax, [ebp - 0x198]
mov dword [ebp - 0x1a0], 0x100247a0
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xb8]
push eax
call fcn.10023780
mov byte [ebp - 4], 0xf
mov ebx, 1
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc8], 0
push esi
mov dword [ebp - 0xc8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0x15
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x1002457a
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x1001cb20
push 0
push 0
call fcn.100910ad
add esp, 0x18
mov dword [esi + 0x18], eax
test eax, eax
jne 0x1002457a
mov byte [ebp - 4], 0xf
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0xb9], 0
jmp 0x100246dc
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x250]
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0x250]
lea eax, [ebp - 0x1a0]
push eax
call fcn.100236a0
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc4], 3
push eax
call fcn.10023570
add esp, 8
mov byte [ebp - 4], 0x19
mov ebx, 3
mov dword [ebp - 0xc4], ebx
and ebx, 0xfffffffd
mov dword [ebp - 0xc4], ebx
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x250]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x248]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0x1a
mov ecx, eax
call fcn.10023f20
mov ecx, dword [ebp - 0x14]
lea edx, [esi + 0x20]
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
test ecx, ecx
je 0x1002464b
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0xd0]
push eax
mov ecx, edx
call fcn.10023420
mov byte [ebp - 4], 0x1a
or eax, 0xffffffff
mov edi, dword [ebp - 0xcc]
test edi, edi
je 0x100246a0
lock xadd dword [edi + 4], eax
jne 0x1002469d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [edi + 8], eax
jne 0x1002469d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
or eax, 0xffffffff
mov byte [ebp - 4], 0x15
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x100246ca
lock xadd dword [edi + 4], eax
jne 0x100246ca
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or ecx, 0xffffffff
lock xadd dword [edi + 8], ecx
dec ecx
jne 0x100246ca
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0xf
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0xb9], 1
and ebx, 0xfffffffe
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], ebx
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x198]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.10023f20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb8]
call fcn.10023f20
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.10005200
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x24]
call fcn.10005200
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x60]
test ecx, ecx
je 0x1002476d
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp + 0x3c]
cmp ecx, eax
setne dl
push edx
call esi
mov dword [ebp + 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x64]
call fcn.10005200
mov al, byte [ebp - 0xb9]
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.100662e1
mov esp, ebp
pop ebp
ret 0x7c