Function at 0x1066e00
Capabilities:
Create thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp dword [eax + 0x2c], 0
sete cl
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jne 0x1066e32
push 0x214
push 0x1117ffc
call fcn.0100a6d0
test eax, eax
je 0x1066e32
int3
cmp dword [ebp - 0x20], 0
jne 0x1066e3d
call fcn.010062d0
xor eax, eax
jne 0x1066e09
push 0x1c
push 0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.010a0510
add esp, 0xc
call fcn.0100f9e0
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0xc], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
je 0x1066e93
cmp dword [ebp - 8], 0
jne 0x1066ee7
push str.Warning:_CreateEvent_failed_in_CWinThread::CreateThread._n
push 0
mov ecx, 0x11609f0
call fcn.01001320
push eax
push 0x21f
push 0x1118034
lea ecx, [ebp - 0x28]
call fcn.010012d0
push eax
call fcn.010012f0
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x1066ed0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x1066ee0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1067002
mov eax, dword [ebp - 0x2c]
add eax, 0x30
push eax
mov ecx, dword [ebp + 8]
or ecx, 4
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0x1065f70
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.010a85f0
add esp, 0x18
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x2c], 0
jne 0x1066f24
xor eax, eax
jmp 0x1067002
mov ecx, dword [ebp - 0x2c]
call fcn.01040a40
cmp eax, 0xffffffff
jne 0x1066f45
push 0x22e
push 0x11180a8
call fcn.0100a6d0
test eax, eax
je 0x1066f45
int3
push 0xffffffffffffffff
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1066f69
push 0x22f
push 0x11180e0
call fcn.0100a6d0
test eax, eax
je 0x1066f69
int3
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
and edx, 4
je 0x1066fa1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1066fa1
push 0x234
push 0x1118118
call fcn.0100a6d0
test eax, eax
je 0x1066fa1
int3
cmp dword [ebp - 4], 0
je 0x1066ff3
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1066fce
push 0x239
push 0x1118150
call fcn.0100a6d0
test eax, eax
je 0x1066fce
int3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1067002
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc