Function at 0x10bcf20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x113c430
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x115f604]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [0x1161d94]
mov edx, dword [eax + 0xc]
mov ecx, 0x1161d94
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
fld dword [0x1003888]
fstp dword [ebp - 0x4c]
xor ebx, ebx
fld dword [0x1003884]
lea ecx, [ebp - 0x58]
fstp dword [ebp - 0x48]
mov dword [ebp - 4], ebx
fld dword [0x1003880]
mov dword [ebp - 0x58], ebx
fstp dword [ebp - 0x44]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], 0x11
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 0xa
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.01095ff0
add esi, 0x30
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x10]
lea edi, [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [ebp - 0x1c], edi
call esi
mov ecx, dword [edi + 8]
push ecx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [edi + 4], ebx
jle 0x10bcff4
mov edx, dword [edi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp + 8]
lea eax, [edi + 0x30]
mov dword [ebp - 0x28], eax
add eax, 4
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.010962a0
mov esi, dword [ebp - 0x14]
lea eax, [edi + 0x5c]
lea ecx, [esi + 0x5c]
push eax
mov byte [ebp - 4], 3
call fcn.0109c210
mov cl, byte [edi + 0x60]
mov byte [esi + 0x60], cl
mov ecx, esi
call fcn.010ae5d0
xor eax, eax
cmp dword [edi + 4], ebx
je 0x10bd050
mov edx, dword [edi + 8]
cmp edx, ebx
jbe 0x10bd04e
mov esi, dword [edi]
mov ecx, esi
lea esp, [esp]
cmp dword [ecx], ebx
jne 0x10bd07a
add eax, 1
add ecx, 4
cmp eax, edx
jb 0x10bd040
xor eax, eax
cmp eax, ebx
mov esi, eax
je 0x10bd0e1
lea ebx, [ebx]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x10bd161
cmp esi, ebx
mov dword [ebp + 8], esi
jne 0x10bd07f
xor esi, esi
jmp 0x10bd0ae
mov eax, dword [esi + eax*4]
jmp 0x10bd050
mov ecx, dword [esi + 0x34]
cmp ecx, ebx
jne 0x10bd0ac
mov eax, dword [esi + 0x38]
mov esi, dword [edi + 8]
xor edx, edx
div esi
xor ecx, ecx
add edx, 1
cmp edx, esi
jae 0x10bd0ac
mov eax, dword [edi]
cmp dword [eax + edx*4], ebx
lea eax, [eax + edx*4]
je 0x10bd0a5
mov ecx, dword [eax]
add edx, 1
cmp ecx, ebx
je 0x10bd095
mov esi, ecx
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0109c210
mov edx, dword [ebp + 8]
add edx, 4
push edx
lea ecx, [ebp - 0x58]
call fcn.010bca80
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.010bce50
cmp esi, ebx
jne 0x10bd060
mov esi, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [esi + 4]
push edx
call edi
test eax, eax
jne 0x10bd102
cmp dword [esi], ebx
jle 0x10bd102
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [ebp - 0x1c]
push esi
call edi
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x58]
call fcn.0109f9b0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10bd14a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
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 0x80004005
call fcn.01071710
int3