Function at 0x1005a7a0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a22ea
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10112018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x10]
test edi, edi
jne 0x1005a83d
push 0x10115520
push 0x3c
call fcn.1009ae46
mov esi, eax
add esp, 8
mov dword [ebp + 0x10], esi
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp esi, ecx
je 0x1005a821
call sym.ACE.dll_public:_static_class_ACE_OS_Object_Manager____cdecl_ACE_OS_Object_Manager::instance_void_
mov edi, dword [eax + 0x24]
call sym.ACE.dll_public:_static_class_ACE_OS_Object_Manager____cdecl_ACE_OS_Object_Manager::instance_void_
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp + 8]
push ebx
push edi
push eax
mov eax, dword [ebp + 0xc]
push 0
push sym.ACE.dll_ace_thread_adapter
push eax
push ecx
mov ecx, esi
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 edi, dword [ebp + 0x28]
mov dword [esi], vtable.ACE_OS_Thread_Adapter.0
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
jne 0x1005a83f
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0xc
jmp 0x1005a991
mov ecx, edi
mov dword [ebp + 0x28], 0
mov dword [ebp - 4], 1
test edi, edi
jne 0x1005a854
mov dword [ebp + 0x28], ecx
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x1005a85e
lea edx, [ebp - 0x10]
cmp dword [ebp + 0x18], 0
jne 0x1005a86a
lea eax, [ebp + 0x10]
mov dword [ebp + 0x18], eax
mov esi, dword [ebp + 0x1c]
mov edi, ebx
shr edi, 2
and edi, 1
test esi, esi
je 0x1005a87c
or ebx, 4
mov eax, dword [ecx + 0xc]
push edx
push ebx
push ecx
mov ecx, dword [ebp + 0x24]
push eax
push ecx
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
mov ebx, dword [ebp + 0x18]
add esp, 0x18
mov dword [ebx], eax
test esi, esi
je 0x1005a8ff
test eax, eax
je 0x1005a8ff
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
neg eax
sbb eax, eax
neg eax
dec eax
cmp eax, 0xffffffff
jne 0x1005a8c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
jmp 0x1005a8c9
test eax, eax
je 0x1005a8e8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x1005a991
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
jmp 0x1005a991
test edi, edi
jne 0x1005a8ff
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1005a8ff
call fcn.1002a850
lea ecx, [ebp + 0x10]
cmp ebx, ecx
jne 0x1005a914
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1005a914
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx], 0
je 0x1005a92d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.MSVCR100.dll__errno]
mov esi, eax
call edi
mov dword [eax], esi
lea eax, [esi - 3]
cmp eax, 0x4d
ja case.0x1005a94e.4
movzx edx, byte [eax + 0x1005a9bc]
jmp dword [edx*4 + 0x1005a9a8]
call edi
mov dword [eax], 0xc
jmp case.0x1005a94e.4
call edi
mov dword [eax], 0x11
jmp case.0x1005a94e.4
call edi
mov dword [eax], 0xd
jmp case.0x1005a94e.4
call edi
mov dword [eax], 2
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x1005a991
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret