Function at 0x100081d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028815
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x10035080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov al, byte [edi + 0x2e]
nop
test al, al
je 0x10008218
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [ebp + 8]
lea ecx, [edi + 0x2d]
xchg byte [ecx], al
lea ecx, [edi + 0x30]
xor eax, eax
xchg dword [ecx], eax
lea eax, [ebp - 0x18]
lea ecx, [edi + 4]
push eax
call fcn.10009870
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], edi
test ecx, ecx
je 0x10008248
lock inc dword [ecx + 4]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov al, byte [edi + 0x2c]
nop
mov ebx, dword [ebp - 0x14]
or esi, 0xffffffff
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
test al, al
je 0x100082fd
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x10008282
lock inc dword [ebx + 4]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ebx
mov esi, dword [eax]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.10008930
mov byte [ebp + 8], al
lea eax, [ebp - 0x2c]
push 4
push 0x30
mov dword [ebp - 0x38], eax
call fcn.10008940
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.10006b60
push dword [ebp + 8]
mov ecx, esi
push eax
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call fcn.10009320
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
call fcn.10009640
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 1
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x10008398
or esi, 0xffffffff
jmp 0x1000837a
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x1000830d
lock inc dword [ebx + 4]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
call fcn.10008930
mov byte [ebp + 8], al
lea eax, [ebp - 0x2c]
push 4
push 0x30
mov dword [ebp - 0x38], eax
call fcn.10008940
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.10006b60
mov ecx, dword [ebp - 0x10]
push dword [ebp + 8]
push eax
mov ecx, dword [ecx + 8]
call fcn.100095e0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
call fcn.10009640
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 1
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x10008398
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10008398
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp + 8]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10008398
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x1c]
xor ecx, ecx
sub eax, dword [edi + 0x18]
sar eax, 3
mov dword [ebp + 8], ecx
test eax, eax
je 0x10008499
mov dword [ebp - 0x3c], edi
test ebx, ebx
je 0x100083b9
lock inc dword [ebx + 4]
mov eax, dword [ebp - 0x18]
mov esi, ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ecx
push 0x10
mov byte [ebp - 4], 4
call fcn.1000c853
add esp, 4
test eax, eax
je 0x100083f8
mov ecx, dword [ebp - 0x18]
xor esi, esi
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov dword [eax], edi
mov dword [eax + 8], ebx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], esi
mov dword [eax + 0xc], ecx
jmp 0x100083fa
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
push ecx
push 0
push eax
push 0x10006570
push 0
push 0
call fcn.10013b27
mov edx, eax
add esp, 0x18
mov dword [ebp - 0x20], edx
test edx, edx
je 0x1000850c
mov ecx, dword [edi + 0x18]
mov eax, dword [ebp + 8]
cmp dword [ecx + eax*8 + 4], 0
lea ecx, [ecx + eax*8]
mov byte [ebp - 4], 4
jne 0x1000851a
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ecx], edx
mov dword [ecx + 4], eax
cmp dword [ebp - 0x1c], 0
jne 0x1000851a
mov byte [ebp - 4], 1
test esi, esi
je 0x10008481
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10008481
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10008481
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp + 8]
sub eax, dword [edi + 0x18]
inc ecx
sar eax, 3
mov dword [ebp + 8], ecx
cmp ecx, eax
jb 0x100083b1
mov al, byte [edi + 0x2e]
nop
test al, al
jne 0x100084ae
call sub.KERNEL32.dll_SwitchToThread
mov al, byte [edi + 0x2e]
nop
test al, al
je 0x100084a1
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x100084f6
or ebx, 0xffffffff
lea edi, [esi + 4]
mov eax, ebx
lock xadd dword [edi], eax
jne 0x100084d9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100084d9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, ebx
lock xadd dword [edi], eax
jne 0x100084f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x100084f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [ebp - 0x1c], 0
call fcn.1000c036
call fcn.100138b6
int3