Function at 0x100150a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c12f5
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x1010739c]
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 - 0xbc], 0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 7
mov word [ebp - 0xac], ax
mov byte [ebp - 4], 4
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
mov byte [ebp - 4], 5
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
mov byte [ebp - 4], 6
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0xb
lea eax, [ebp + 0x24]
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x94]
push dword [ebp + 0x34]
cmovae eax, dword [ebp + 0x24]
push eax
call fcn.10009130
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xac]
push eax
call fcn.10009130
cmp dword [ebp + 0x78], 8
lea eax, [ebp + 0x64]
push dword [ebp + 0x74]
cmovae eax, dword [ebp + 0x64]
lea ecx, [ebp - 0x7c]
push eax
call fcn.10009130
mov eax, dword [ebp + 0x7c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x80]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xd0], 0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp + 0x60]
test ecx, ecx
je 0x10015204
mov eax, dword [ecx]
lea edx, [ebp - 0xf4]
push edx
call dword [eax]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xf4]
call fcn.10016980
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xd0]
test ecx, ecx
je 0x10015242
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xf4]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0x64], 1
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x194]
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0x18c]
lea eax, [ebp - 0x18c]
mov dword [ebp - 0x194], 0x10015670
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xb0]
push eax
call fcn.100146b0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xf8], 0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100152d2
mov eax, dword [ecx]
lea edx, [ebp - 0x11c]
push edx
call dword [eax]
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 0xf
mov ebx, 1
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xc0], esi
test esi, esi
je 0x100152fc
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0x18
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x1001533d
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x10007fb0
push 0
push 0
call fcn.10095900
add esp, 0x18
mov dword [esi + 0x18], eax
test eax, eax
jne 0x1001533d
mov byte [ebp - 4], 0xf
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0xb1], 0
jmp 0x1001549f
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x23c]
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0x23c]
lea eax, [ebp - 0x194]
push eax
call fcn.10014400
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xbc], 3
push eax
call fcn.10014220
add esp, 8
mov byte [ebp - 4], 0x1c
mov ebx, 3
mov dword [ebp - 0xbc], ebx
and ebx, 0xfffffffd
mov dword [ebp - 0xbc], ebx
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0x23c]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0x1d
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0x1d
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0x234]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0x1d
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0x1d
mov ecx, eax
call fcn.10014c40
mov ecx, dword [ebp - 0x14]
lea edx, [esi + 0x20]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
test ecx, ecx
je 0x1001540e
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], ecx
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0xc8]
push eax
mov ecx, edx
call fcn.100140d0
mov byte [ebp - 4], 0x1d
or eax, 0xffffffff
mov edi, dword [ebp - 0xc4]
test edi, edi
je 0x10015463
lock xadd dword [edi + 4], eax
jne 0x10015460
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [edi + 8], eax
jne 0x10015460
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
or eax, 0xffffffff
mov byte [ebp - 4], 0x18
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x1001548d
lock xadd dword [edi + 4], eax
jne 0x1001548d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or ecx, 0xffffffff
lock xadd dword [edi + 8], ecx
dec ecx
jne 0x1001548d
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 - 0xb1], 1
and ebx, 0xfffffffe
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], ebx
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x194]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18c]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.10014c40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb0]
call fcn.10014c40
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.100055d0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x24]
call fcn.100055d0
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x60]
test ecx, ecx
je 0x10015530
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.100055d0
mov al, byte [ebp - 0xb1]
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.100512b9
mov esp, ebp
pop ebp
ret 0x7c