Function at 0x42b140
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 0x42b172
push 0x214
push 0x5262dc
call fcn.0045b590
test eax, eax
je 0x42b172
int3
cmp dword [ebp - 0x20], 0
jne 0x42b17d
call fcn.00431d30
xor eax, eax
jne 0x42b149
push 0x1c
push 0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004db5b0
add esp, 0xc
call fcn.0045b760
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_CreateEventW]
mov dword [ebp - 0xc], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
je 0x42b1d3
cmp dword [ebp - 8], 0
jne 0x42b227
push str.Warning:_CreateEvent_failed_in_CWinThread::CreateThread._n
push 0
mov ecx, 0x5c97d8
call fcn.0040d7e0
push eax
push 0x21f
push 0x526314
lea ecx, [ebp - 0x28]
call fcn.00401100
push eax
call fcn.00429920
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x42b210
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x42b220
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x42b342
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 0x42a2a0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004dcf90
add esp, 0x18
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x2c], 0
jne 0x42b264
xor eax, eax
jmp 0x42b342
mov ecx, dword [ebp - 0x2c]
call fcn.004397f0
cmp eax, 0xffffffff
jne 0x42b285
push 0x22e
push 0x526388
call fcn.0045b590
test eax, eax
je 0x42b285
int3
push 0xffffffffffffffff
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42b2a9
push 0x22f
push 0x5263c0
call fcn.0045b590
test eax, eax
je 0x42b2a9
int3
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
and edx, 4
je 0x42b2e1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x42b2e1
push 0x234
push 0x5263f8
call fcn.0045b590
test eax, eax
je 0x42b2e1
int3
cmp dword [ebp - 4], 0
je 0x42b333
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 0x42b30e
push 0x239
push 0x526430
call fcn.0045b590
test eax, eax
je 0x42b30e
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 0x42b342
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc