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

Disassembly:
push 0xffffffffffffffff
push 0x480489
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
mov dword [esp + 0x10], esi
xor ebp, ebp
push esi
mov dword [esp + 0x24], ebp
call dword [sym.imp.ace.dll_public:_static_int___cdecl_ACE_OS::mutex_lock_struct_ACE_mutex_t__]
add esp, 4
cmp eax, 0xffffffff
je 0x460a4c
cmp dword [esi + 0x74], ebp
je 0x460a39
mov ebp, dword [sym.imp.ace.dll_public:_static_int___cdecl_ACE_OS::cond_wait_class_ACE_cond_t___struct_ACE_mutex_t__]
lea ebx, [esi + 0x48]
mov edx, dword [esi + 0x70]
push esi
inc edx
push ebx
mov dword [esi + 0x70], edx
call ebp
add esp, 8
cmp eax, 0xffffffff
je 0x460a40
mov ecx, dword [esi + 0x70]
mov eax, dword [esi + 0x74]
dec ecx
test eax, eax
mov dword [esi + 0x70], ecx
jne 0x460a18
mov dword [esi + 0x74], 0xffffffff
push esi
call dword [sym.imp.ace.dll_public:_static_int___cdecl_ACE_OS::mutex_unlock_struct_ACE_mutex_t__]
add esp, 4
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov eax, dword [edi + 0xd0]
mov dword [esp + 0x20], 1
cmp eax, 0xfffffffe
je 0x460a82
mov ecx, dword [esp + 0x28]
mov edx, dword [edi + 0xac]
mov ebx, dword [ecx]
mov ecx, eax
shl ecx, 4
add ecx, edx
cmp dword [ecx], ebx
je 0x460a90
mov eax, dword [ecx + 8]
cmp eax, 0xfffffffe
jne 0x460a6f
mov dword [esp + 0x28], 0xffffffff
mov ebx, dword [esp + 0x28]
jmp 0x460ab6
lea edx, [edi + 0xb8]
push 0xffffffffffffffff
push edx
lea ecx, [edi + 0xc8]
push 0xfffffffffffffffe
xor ebx, ebx
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x3c], ebx
call fcn.00461280
dec dword [edi + 0xb4]
mov eax, dword [esi]
mov dword [esp + 0x20], 0xffffffff
dec eax
je 0x460b12
dec eax
je 0x460ae9
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0x16
mov eax, ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
mov edx, dword [esi + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebp
je 0x460b1c
cmp eax, 0x80
je 0x460b1c
call dword [sym.imp.MSVCRT.dll__errno]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x460ad2
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x74]
cmp eax, ebp
jle 0x460b29
dec eax
mov dword [esi + 0x74], eax
jmp 0x460b31
cmp eax, 0xffffffff
jne 0x460ad2
mov dword [esi + 0x74], ebp
mov ebp, dword [sym.imp.MSVCRT.dll__errno]
call ebp
mov ebx, eax
mov dword [esp + 0x10], ebx
mov edi, dword [ebx]
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x78]
mov dword [esp + 0x20], 2
test eax, eax
je 0x460b66
cmp dword [esi + 0x74], 1
jne 0x460b66
lea ecx, [esi + 0x7c]
push ecx
call dword [sym.imp.ace.dll_public:_static_int___cdecl_ACE_OS::cond_signal_class_ACE_cond_t__]
jmp 0x460b95
mov eax, dword [esi + 0x70]
test eax, eax
jle 0x460b80
mov ecx, dword [esi + 0x74]
test ecx, ecx
jne 0x460b80
lea edx, [esi + 0x48]
push edx
call dword [sym.imp.ace.dll_public:_static_int___cdecl_ACE_OS::cond_signal_class_ACE_cond_t__]
jmp 0x460b95
mov ecx, dword [esi + 0x44]
test ecx, ecx
jle 0x460ba0
test eax, eax
jne 0x460ba0
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.ace.dll_public:_static_int___cdecl_ACE_OS::cond_broadcast_class_ACE_cond_t__]
add esp, 4
call ebp
mov edi, dword [eax]
mov dword [esp + 0x14], edi
push esi
call dword [sym.imp.ace.dll_public:_static_int___cdecl_ACE_OS::mutex_unlock_struct_ACE_mutex_t__]
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [ebx], edi
jmp 0x460ad4