Function at 0x100e0944
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 0xc]
inc esi
mov edi, dword [ebx + 0x2b0]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], eax
test edi, edi
jne 0x100e0988
call fcn.101d7256
cmp eax, esi
jle 0x100e099a
lea edi, [eax + 1]
push 0x10
pop eax
cmp edi, eax
cmovg edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebx + 0x2b0], edi
cmp edi, esi
jg 0x100e09a2
and dword [ebx + 0x2b8], 0
xor eax, eax
jmp 0x100e0c06
mov dword [ebx + 0x2b0], esi
jmp 0x100e098c
push 0x28
call fcn.101d0768
mov esi, eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x18], esi
pop ecx
mov dword [eax + 0x10], esi
test esi, esi
jne 0x100e09c1
push 0xfffffffffffffff4
pop eax
jmp 0x100e0c06
push 0xb8
push edi
call fcn.101d0520
mov dword [esi], eax
pop ecx
pop ecx
test eax, eax
jne 0x100e09e3
mov eax, dword [ebx + 0x1c]
add eax, 0x10
push eax
call fcn.101d06dd
pop ecx
jmp 0x100e09b9
mov edi, dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
lea eax, [esi + 8]
push eax
call edi
lea eax, [esi + 0xc]
push eax
call edi
lea eax, [esi + 0x10]
push eax
call edi
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
xor eax, eax
inc eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jne 0x100e0a21
mov eax, dword [ebx + 0x2b0]
dec eax
mov dword [ebx + 0x58], eax
and dword [ebp - 8], 0
push 0x398
call fcn.101d070f
imul edi, dword [ebp - 8], 0xb8
mov dword [ebp + 8], eax
pop ecx
add edi, dword [esi]
mov dword [ebp - 0x14], edi
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
lea eax, [edi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea eax, [edi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
call fcn.101cf1cf
mov dword [edi + 0x78], eax
test eax, eax
je 0x100e0be5
mov dword [edi], esi
mov eax, dword [ebp + 8]
mov dword [edi + 0x2c], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x100e0bef
mov ecx, 0xe6
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x88
call fcn.101d070f
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x100e0bdf
mov esi, dword [ebx + 0x1c]
push 0x22
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
lea ecx, [edi + 0x30]
mov dword [eax + 0x10], edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x58]
mov dword [eax + 0x58], ecx
cmp dword [esi + 0x38], 0
je 0x100e0b31
push dword [esi + 0x38]
call fcn.101d0768
pop ecx
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x100e0bef
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x100e0b34
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebx + 0x18]
push dword [eax + 0x18]
call fcn.101d43d6
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
js 0x100e0bf6
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x100e0b47
mov eax, dword [edx + 0x1c]
mov dword [eax], 1
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x100e0b5d
push edx
call eax
mov edx, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x100e0b60
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100e0bf6
test ecx, ecx
jne 0x100e0b7b
push 1
push edx
push ebx
call fcn.100e197c
mov edx, dword [ebp + 8]
add esp, 0xc
movzx eax, word [edx + 0x242]
lea esi, [edi + 4]
and eax, 1
mov dword [esi + 4], 0x100e1261
mov dword [edi + 0xb0], eax
xor eax, eax
push eax
push eax
push esi
push 0x100e1cfc
push eax
push eax
mov dword [esi + 8], edi
call fcn.10232f88
xor ecx, ecx
mov dword [esi], eax
add esp, 0x18
test eax, eax
setne cl
dec ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
test eax, eax
setne cl
mov dword [edi + 0x14], ecx
test eax, eax
je 0x100e0bf6
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x10]
jge 0x100e0993
mov esi, dword [ebp - 0x18]
jmp 0x100e0a25
and dword [eax + 0x18], 0
jmp 0x100e0bef
lea eax, [ebp + 8]
push eax
call fcn.101d06dd
pop ecx
mov dword [ebp - 4], 0xfffffff4
mov eax, dword [ebp - 8]
inc eax
push eax
push ebx
call fcn.100e06c4
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret