Function at 0x1008d4d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 1
mov eax, dword [edi + 0x98]
mov edx, dword [edi + 0x58]
mov dword [esp + 0x2c], edx
test eax, eax
jne 0x1008d51b
mov eax, dword [edi + 0xfc]
cmp dword [ebx + 0x10], 0
lea ebp, [ebx + 0x10]
lea ecx, [edi + 4]
jne 0x1008d57c
push dword [edi + 0xb4]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.100a5be0
test eax, eax
jne 0x1008d584
lea esi, [ebx + 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x68]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
add ecx, 8
push dword [eax + 4]
push edi
call fcn.1001f180
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10151433
add esp, 0x34
ret 0x18
push ecx
mov ecx, ebp
call fcn.100a6090
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], eax
test eax, eax
jl 0x1008d609
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
jg 0x1008d59e
test eax, eax
je 0x1008d609
lea edi, [ebx + 0x4c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx + 0x64]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x1008d949
xor edi, edi
lea eax, [ebx + 0x10]
cmp dword [eax], edi
jle 0x1008d5eb
xor ebp, ebp
mov esi, dword [eax + 0x24]
add esi, ebp
push 0
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1008d6ad
inc edi
lea eax, [ebx + 0x10]
add ebp, 0x78
cmp edi, dword [eax]
jl 0x1008d5c5
lea ebp, [ebx + 0x10]
push 5
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x18], 0
jl 0x1008d609
jg 0x1008d59e
cmp dword [esp + 0x1c], 0
ja 0x1008d59e
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [ebx + 0x44]
call ebp
lea esi, [ebx + 0x40]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x1008d647
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
push 1
call edi
push 0xffffffffffffffff
push dword [ebx + 0x44]
call ebp
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x1008d630
mov edi, dword [ebx + 0x38]
test edi, edi
je 0x1008d67b
lea esi, [edi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push dword [edi + 0x24]
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push dword [edi + 0x30]
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [ebx + 0x4c]
push edi
mov byte [ebx + 0x48], 1
call ebp
mov esi, dword [ebx + 0x64]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1008d97a
lea ecx, [ebx + 0x10]
call fcn.100a6190
push edi
call ebp
jmp 0x1008d958
lea ebp, [ebx + 0x10]
mov dword [ebp + 4], edi
mov esi, dword [esi + 0x38]
mov dword [esp + 0x20], esi
test esi, esi
je 0x1008d5ee
mov eax, dword [esp + 0x18]
test eax, eax
ja 0x1008d6dc
mov ecx, dword [esp + 0x1c]
jb 0x1008d6d8
cmp ecx, 0x20000
jae 0x1008d6dc
mov edx, eax
jmp 0x1008d6e3
mov ecx, 0x20000
xor edx, edx
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x1f0], 0
lea edi, [eax + 0x198]
jne 0x1008d917
mov eax, dword [edi]
lea ebp, [esp + 0x34]
push ebp
push edx
push ecx
push esi
mov ecx, edi
call dword [eax + 0x1c]
push dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov esi, eax
push dword [esp + 0x38]
call fcn.1001fd00
lea ebp, [ebx + 0x10]
test esi, esi
je 0x1008d917
cmp dword [esp + 0x28], 0
je 0x1008d757
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x1008d74f
mov eax, dword [esp + 0x10]
xor edx, edx
mov eax, dword [eax + 0x220]
cmp dword [eax], 0x46445025
cmove ecx, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x28], 0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
sub edi, esi
mov eax, dword [esp + 0x18]
sbb eax, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push 0x101eb0a8
push esi
mov dword [esp + 0x24], edi
mov ecx, dword [eax + 0x60]
not ecx
call fcn.10108970
mov ecx, dword [esp + 0x14]
not eax
mov dword [ecx + 0x60], eax
mov eax, edi
or eax, dword [esp + 0x18]
jne 0x1008d79f
lea edx, [eax + 1]
jmp 0x1008d7a1
xor edx, edx
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x34]
shl ecx, 4
sub ecx, dword [ebx + 0x14]
mov dword [eax + ecx*8 + 0x40], esi
mov dword [eax + ecx*8 + 0x44], edx
lea edi, [eax + ecx*8]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov dword [edi + 0x50], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x58], eax
mov eax, dword [esp + 0x5c]
mov dword [edi + 0x54], ecx
mov ecx, edi
mov dword [edi + 0x6c], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x24], eax
call fcn.100f1100
mov edx, dword [edi + 0x58]
push ecx
mov ecx, edi
call fcn.100f12c0
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x1008d80c
mov edx, dword [esp + 0x24]
mov ecx, edi
push eax
call fcn.100f0f10
add esp, 4
cmp esi, 0x8000
mov eax, 0x8000
cmova esi, eax
mov dword [ebx + 0x28], esi
mov eax, dword [edi + 0x38]
sub eax, esi
push esi
add eax, 0x20000
push eax
push dword [ebx + 0x24]
call fcn.101528b0
add esp, 0xc
lock inc dword [ebx + 0x40]
push dword [ebx + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call esi
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebx + 0x2c]
call esi
add dword [ebx + 0x18], 1
mov edi, dword [esp + 0x10]
adc dword [ebx + 0x1c], 0
cmp dword [edi + 0x4b0], 0
jne 0x1008d8f8
cmp dword [esp + 0x58], 0
je 0x1008d5f9
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x74]
mov esi, dword [ebx + 0x78]
mov edi, dword [ebx + 0x7c]
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jl 0x1008d5f9
jg 0x1008d8b4
cmp esi, 0x1e00000
jbe 0x1008d5f9
push 0
push 0x64
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.10178b70
push edi
push esi
push edx
push eax
call fcn.10178910
mov ecx, eax
call fcn.1017af10
comisd xmm0, xmmword [0x101d23e8]
jb 0x1008d5f9
mov dword [esp + 0x2c], 0
mov dword [esp + 0x58], 0
jmp 0x1008d5f9
mov ecx, ebp
call fcn.100a6190
mov eax, dword [esp + 0x14]
lea ecx, [edi + 8]
push 0
push dword [eax + 4]
push 0xa0000017
call fcn.1001f180
jmp 0x1008d982
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
mov ecx, ebp
mov esi, eax
call fcn.100a6190
mov edx, dword [esp + 0x14]
test esi, esi
mov ecx, dword [esp + 0x10]
mov eax, 0xa0000102
push 0
cmovne eax, esi
push dword [edx + 4]
lea ecx, [ecx + 8]
push eax
call fcn.1001f180
jmp 0x1008d982
mov ecx, ebp
call fcn.100a6190
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
call eax
mov esi, dword [ebx + 0x68]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push dword [eax + 4]
lea ecx, [ecx + 8]
push esi
call fcn.1001f180
jmp 0x1008d982
mov dword [esp + 0x30], 1
lea esi, [ebx + 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x70]
mov ebx, dword [ebx + 0x74]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
add dword [eax + 0x50], edi
pop edi
adc dword [eax + 0x54], ebx
mov eax, dword [esp + 0x2c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0x34
ret 0x18