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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x884f78
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x3c], esi
xor ebp, ebp
push esi
mov dword [esp + 0x38], ebp
xor edi, edi
mov dword [esp + 0x3c], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x80], ebp
lea ecx, [ecx]
cmp dword [esi + 0x50], ebp
jne 0x84e4b0
cmp dword [esi + 0x44], ebp
je 0x84e33f
mov ecx, esi
call fcn.0084e110
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x28]
call fcn.005dc270
mov ebx, eax
mov eax, dword [esi + 0x5c]
cmp eax, ebp
je 0x84e357
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp ebx, ebp
je 0x84e382
cmp ebx, 0xfffffff0
ja 0x84e376
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
mov dword [ecx + eax*4], ebx
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x24]
jne 0x84e320
jmp 0x84e3b9
cmp ebx, 0xfffffffe
jne 0x84e39a
cmp dword [esi + 0x3c], ebp
je 0x84e320
jmp 0x84e3b9
cmp dword [esi + 0x20], ebp
jne 0x84e38c
cmp dword [esi + 0x3c], ebp
jne 0x84e3b9
mov eax, 1
add dword [esi + 0x40], eax
mov dword [esp + 0x34], eax
jmp 0x84e3bf
cmp ebx, 0xfffffffb
jne 0x84e3b9
mov ecx, dword [esi + 0x28]
call fcn.005dc270
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x5c]
cmp eax, ebp
je 0x84e3b9
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x3c], ebp
push esi
mov dword [esp + 0x84], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x34], ebp
je 0x84e3e8
mov edx, dword [esi + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x84e303
cmp edi, ebp
je 0x84e43b
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x84e424
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esi + 0x38]
push edi
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x58]
test ecx, ecx
jne 0x84e41b
mov dword [esi + 0x58], ebp
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebp, ebp
mov edx, dword [esi + 0x38]
mov eax, dword [edx + edi*4 - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
dec edi
push eax
call edx
cmp edi, ebp
jne 0x84e424
mov eax, dword [esi + 0x58]
cmp ebx, 0xfffffffd
jne 0x84e45b
mov ecx, dword [esi + 0x58]
test ecx, ecx
jne 0x84e303
mov eax, dword [esi + 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x38]
call eax
jmp 0x84e303
cmp ebx, 0xfffffffc
jne 0x84e472
mov ecx, dword [esi + 0x30]
push ecx
mov dword [esi + 0x58], ebp
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x84e303
cmp ebx, 0xfffffffb
jne 0x84e303
mov edi, dword [esp + 0x38]
fld qword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov eax, dword [esi + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
sub esp, 8
fstp qword [esp]
push ecx
mov ecx, dword [edi + 8]
push ecx
mov ecx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push ecx
push eax
call edx
push edi
call fcn.007c8563
add esp, 4
jmp 0x84e303
mov ecx, esi
call fcn.0084e110
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret