Function at 0x100f0ebc
Capabilities:
Create thread
Resume thread

Disassembly:
push 0x20
mov eax, 0x10176061
call fcn.1012b67a
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x1024c714
push 0x14
mov dword [ebp - 0x14], ebx
call fcn.1012ba4d
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x100f0f0c
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x10], ebx
mov byte [ebp - 4], 1
jmp 0x100f0f0e
mov esi, ebx
mov byte [ebp - 4], bl
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 3
test esi, esi
je 0x100f0faf
mov eax, dword [ebp + 8]
lea ebx, [esi + 0x10]
push ebx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push dword [0x1024b9f8]
push 4
call fcn.1010128b
add esp, 0xc
test eax, eax
je 0x100f0fa6
xor eax, eax
push eax
push 4
push esi
push 0x10105a7e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x100f0fa6
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xea60
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100f0f9f
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x100f0f9f
push dword [ebp + 8]
mov ecx, eax
push dword [esi + 4]
push dword [esi]
call fcn.100e5966
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.101031c4
xor ebx, ebx
mov edi, dword [ebp - 0x28]
mov eax, edi
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
push 0x18
pop esi
cdq
idiv esi
mov dword [ebp - 0x18], esi
test eax, eax
je 0x100f1072
xor esi, esi
mov eax, dword [esi + ecx]
cmp dword [eax - 0xc], 0
jne 0x100f0fdf
mov eax, dword [esi + ecx + 0xc]
cmp dword [eax - 0xc], 0
je 0x100f104b
mov dword [ebp - 0x14], 1
call fcn.10007945
push eax
lea ecx, [ebp - 0x10]
call fcn.10008bfd
mov byte [ebp - 4], 5
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x2c]
push ecx
add eax, 0x14
mov dword [ebp - 0x20], esp
add eax, esi
mov ecx, esp
push eax
call fcn.10008916
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
add eax, esi
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x1c]
mov ecx, edi
call fcn.100f1334
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
test eax, eax
je 0x100f1063
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push 0x18
pop eax
add esi, eax
inc ebx
mov eax, edi
sub eax, ecx
cdq
idiv dword [ebp - 0x18]
cmp ebx, eax
jb 0x100f0fcc
jmp 0x100f1072
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.100bfd13
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.100078bc
mov eax, dword [ebp - 0x14]
call fcn.1012b643
ret 8