Function at 0x10085460
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a2402
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10112018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0x78]
mov edx, dword [eax + 8]
lea ecx, [edi + 0x78]
call edx
mov esi, eax
mov dword [esp + 0x24], esi
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov eax, dword [sym.ACE.dll_unsigned_long_int_ACE_OS::NULL_thread]
mov dword [esi + 4], eax
mov ecx, dword [sym.ACE.dll_void__ACE_OS::NULL_hthread]
push 0x10115520
push 0x40
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], edi
mov dword [esi + 0x20], ebx
mov byte [esi + 0x30], bl
call fcn.1009ae46
mov edi, eax
add esp, 8
mov dword [esp + 0x1c], edi
mov byte [esp + 0x38], 1
cmp edi, ebx
je 0x10085531
call sym.ACE.dll_public:_static_class_ACE_OS_Object_Manager____cdecl_ACE_OS_Object_Manager::instance_void_
mov edx, dword [eax + 0x24]
mov dword [esp + 0x18], edx
call sym.ACE.dll_public:_static_class_ACE_OS_Object_Manager____cdecl_ACE_OS_Object_Manager::instance_void_
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
mov eax, dword [ebp + 0xc]
push esi
push sym.ACE.dll_ace_thread_adapter
push eax
push ecx
mov ecx, edi
call sym.ACE.dll_protected:_void___thiscall_ACE_Base_Thread_Adapter::constructor_unsigned_long_int____cdecl___void____void___unsigned_long_int____cdecl___void____class_ACE_OS_Thread_Descriptor___int____cdecl___void____int____cdecl___void____long_int_
mov edx, dword [esp + 0x14]
mov dword [edi], vtable.ACE_Thread_Adapter.0
mov dword [edi + 0x3c], edx
jmp 0x10085533
xor edi, edi
mov byte [esp + 0x38], bl
cmp edi, ebx
jne 0x1008558a
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0xc
mov edi, dword [esi + 0x2c]
cmp edi, ebx
je 0x10085568
cmp byte [edi + 0x18], bl
jne 0x1008555e
push edi
mov byte [edi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov dword [esp + 0x18], edi
mov byte [esp + 0x38], 2
cmp dword [ebp + 0x14], ebx
jne 0x1008559f
lea eax, [esp + 0x28]
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x1c]
push edi
push edx
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x30]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call sym.ACE.dll_int___cdecl_ACE_OS::thr_create_unsigned_long_int____cdecl___void____void___long_int__unsigned_long_int___void____long_int__void___unsigned_int__class_ACE_Base_Thread_Adapter___char_const___
add esp, 0x28
cmp eax, ebx
je 0x10085612
call dword [sym.imp.MSVCR100.dll__errno]
mov ecx, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x2c]
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov dword [eax], edx
mov byte [esp + 0x38], bl
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
jmp 0x10085547
mov eax, dword [ebp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x1008563c
push 2
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x20]
push esi
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x20]
push eax
push 1
push edi
push edx
mov dword [esp + 0x40], ebx
call sym.ACE.dll_protected:_int___thiscall_ACE_Thread_Manager::append_thr_unsigned_long_int__void___unsigned_int__int__class_ACE_Task_Base___long_int__class_ACE_Thread_Descriptor__
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c