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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009db00
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10112018]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x10112018]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov edi, ecx
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call sym.ACE.dll_private:_void___thiscall_ACE_Time_Value::normalize_bool_
cmp byte [ebp + 0x10], 0
jne 0x10087494
cmp ebx, esi
je 0x10087494
mov eax, dword [ebx]
cmp dword [ebx + 4], esi
jl 0x10087437
jg 0x10087432
cmp eax, 0x7fffffff
jbe 0x10087437
mov eax, bind
mov ebx, dword [ebx + 8]
cdq
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x44], edx
call fcn.10001c90
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esp, 4
add eax, dword [esp + 0x3c]
adc ecx, dword [esp + 0x40]
mov dword [esp + 0x18], ecx
js 0x10087473
jg 0x1008746e
cmp eax, 0x7fffffff
jbe 0x10087473
mov eax, bind
add ebx, dword [esi + 8]
cdq
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ebx
call sym.ACE.dll_private:_void___thiscall_ACE_Time_Value::normalize_bool_
mov dword [esp + 0x10], ecx
mov ebx, ecx
lea esi, [esp + 0x1c]
call fcn.10088380
lea eax, [edi + 0x2c]
xor esi, esi
mov dword [esp + 0x68], esi
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x18], esi
mov byte [esp + 0x68], 1
mov eax, dword [sym.ACE.dll_class_ACE_Object_Manager__ACE_Object_Manager::instance_]
cmp eax, esi
je 0x10087678
xor edx, edx
cmp dword [eax + 4], 2
setg dl
cmp edx, 1
je 0x10087678
cmp byte [ebp + 0xc], 0
je 0x1008761c
mov eax, dword [edi]
mov ebx, dword [eax + 0x18]
cmp ebx, dword [edi]
je 0x10087522
test ebx, ebx
je 0x10087522
test dword [ebx], 0x2000000
je 0x10087519
lea esi, [edi + 0x18]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
call fcn.10088460
mov eax, ebx
sub eax, dword [edi]
neg eax
sbb eax, eax
and eax, ebx
or dword [eax + 0x10], 0x10000000
cmp ebx, dword [edi]
je 0x10087522
mov ebx, dword [ebx + 0x18]
jmp 0x100874e8
mov eax, dword [edi + 0x18]
cmp eax, dword [eax]
je 0x10087618
mov ecx, dword [edi + 0x18]
cmp ecx, dword [ecx]
je 0x10087618
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [eax + 4]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x10]
call eax
or edx, 0xffffffff
add dword [edi + 0x1c], edx
xor ebx, ebx
mov dword [esi + 0x28], ebx
cmp esi, dword [edi]
je 0x10087583
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x10087583
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x10087583
cmp dword [edi + 4], ebx
je 0x10087583
mov dword [eax + 0x18], ecx
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x1c], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
add dword [edi + 4], edx
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 0x78]
mov eax, dword [edx + 4]
lea ecx, [edi + 0x78]
push esi
call eax
cmp dword [edi + 4], ebx
jne 0x1008752d
lea esi, [edi + 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor bl, bl
cmp dword [edi + 0x48], 0
jle 0x100875b9
mov dword [edi + 0x6c], 1
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x1008752d
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x64]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
neg eax
sbb eax, eax
neg eax
dec eax
cmp eax, 0xffffffff
jne 0x10087600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
mov dword [edi + 0x6c], 0
jmp 0x1008752d
lea edx, [edi + 0x68]
push edx
call sym.ACE.dll_int___cdecl_ACE_OS::event_wait_void___
add esp, 4
mov dword [edi + 0x6c], 0
jmp 0x1008752d
mov ebx, dword [esp + 0x10]
cmp dword [edi + 4], 0
jbe 0x1008767f
lea esi, [edi + 0x48]
mov eax, dword [esi + 0x28]
push ebx
push eax
push esi
call sym.ACE.dll_int___cdecl_ACE_OS::cond_timedwait_class_ACE_cond_t___struct__RTL_CRITICAL_SECTION___class_ACE_Time_Value__
add esp, 0xc
cmp eax, 0xffffffff
je 0x10087640
cmp dword [edi + 4], 0
ja 0x10087625
jmp 0x1008767f
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [esp + 0x1c]
mov dword [esp + 0x68], 0xffffffff
call fcn.100889b0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10087670
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x10]
call eax
or eax, 0xffffffff
jmp 0x1008776f
mov ecx, edi
call sym.ACE.dll_protected:_void___thiscall_ACE_Thread_Manager::remove_thr_all_void_
mov ebx, dword [esp + 0x20]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x100876da
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x18]
cmp eax, ecx
je 0x100876bd
mov edx, dword [eax + 0x18]
test edx, edx
je 0x100876bd
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x100876bd
test esi, esi
je 0x100876bd
mov dword [ecx + 0x18], edx
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
mov dword [ecx + 0x1c], edx
xor ecx, ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x18], ecx
dec dword [edi + 0x10]
test eax, eax
je 0x100876da
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x18], edx
mov dword [edx + 0x1c], eax
mov dword [eax + 0x1c], ecx
mov dword [ecx + 0x18], eax
inc ebx
jmp 0x10087683
mov byte [esp + 0x68], 0
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
test ebx, ebx
je 0x10087744
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x18]
cmp esi, eax
je 0x10087726
mov ecx, dword [esi + 0x18]
xor edx, edx
cmp ecx, edx
je 0x10087726
mov eax, dword [esi + 0x1c]
cmp eax, edx
je 0x10087726
mov dword [eax + 0x18], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0x1c], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], edx
dec ebx
test esi, esi
je 0x10087744
test dword [esi], 0x2000000
jne 0x1008773c
mov ecx, dword [esi + 8]
xor eax, eax
call fcn.1000abf0
push esi
call edi
add esp, 4
jmp 0x100876f4
lea esi, [esp + 0x1c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x68], 0xffffffff
call fcn.100889b0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1008776d
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x10]
call eax
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 0xc