Function at 0x10014d90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ba632
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x100fe39c]
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 edi, ecx
mov dword [ebp - 0xb8], 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 - 0xbc], 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.10008f70
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.10008f70
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.10008f70
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 - 0xcc], 0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp + 0x60]
test ecx, ecx
je 0x10014ef4
mov eax, dword [ecx]
lea edx, [ebp - 0xf0]
push edx
call dword [eax]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xf0]
call fcn.10016540
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xcc]
test ecx, ecx
je 0x10014f32
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xf0]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0x64], 1
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x190]
mov dword [ebp - 0xbc], eax
lea ecx, [ebp - 0x188]
lea eax, [ebp - 0x188]
mov dword [ebp - 0x190], 0x10015260
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xb0]
push eax
call fcn.100143a0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xf4], 0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10014fc2
mov eax, dword [ecx]
lea edx, [ebp - 0x118]
push edx
call dword [eax]
mov dword [ebp - 0xf4], eax
mov byte [ebp - 4], 0xf
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0xbc], edi
test edi, edi
je 0x10014feb
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0x18
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x238]
mov dword [ebp - 0xb4], eax
lea ecx, [ebp - 0x238]
lea eax, [ebp - 0x190]
push eax
call fcn.10014100
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xb8], 3
push eax
call fcn.10013f20
add esp, 8
mov byte [ebp - 4], 0x1c
mov eax, 3
mov dword [ebp - 0xb8], eax
and eax, 0xfffffffd
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0x238]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0x1d
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0x1d
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0x230]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0x1d
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0x1d
mov ecx, eax
call fcn.10014930
mov ecx, dword [ebp - 0x14]
lea edx, [edi + 0x20]
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
test ecx, ecx
je 0x100150c0
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0xc4]
push eax
mov ecx, edx
call fcn.10013dd0
mov byte [ebp - 4], 0x1d
or esi, 0xffffffff
mov ebx, dword [ebp - 0xc0]
test ebx, ebx
je 0x10015111
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x10015111
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x10015111
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp dword [edi + 0x18], 0
jne 0x1001516a
lea eax, [edi + 0x1c]
push eax
push 0
push edi
push 0x10007de0
push 0
push 0
call fcn.1008e013
add esp, 0x18
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 0x18
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1001515b
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x1001515b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x1001515b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov byte [ebp - 4], 0xf
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov bl, 1
jmp 0x100151a0
mov byte [ebp - 4], 0x18
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10015193
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x10015193
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x10015193
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov byte [ebp - 4], 0xf
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor bl, bl
and dword [ebp - 0xb8], 0xfffffffe
mov dword [ebp - 0xbc], 0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x190]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x188]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.10014930
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb0]
call fcn.10014930
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.10005430
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x24]
call fcn.10005430
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x60]
test ecx, ecx
je 0x1001522f
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.10005430
mov al, bl
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.1004f51c
mov esp, ebp
pop ebp
ret 0x7c