Function at 0x1002e610
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
cmp dword [ebp - 4], 0
jne 0x1002e698
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1002e66e
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x20], eax
jmp 0x1002e675
mov dword [ebp - 0x20], 0
call fcn.1002c910
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x48]
call fcn.10028a40
push str.thread.entry_event
lea edx, [ebp - 0x48]
push edx
call fcn.1002eb20
add esp, 8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], 0
jne 0x1002e71c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1002e6f2
push 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x2c], eax
jmp 0x1002e6f9
mov dword [ebp - 0x2c], 0
call fcn.1002c910
push eax
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x50]
call fcn.10028a40
push str.thread.exit_event
lea edx, [ebp - 0x50]
push edx
call fcn.1002eb20
add esp, 8
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x1002f050
mov edx, dword [ebp + 0xc]
push edx
push 0
call fcn.10051da9
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 0
jne 0x1002e7cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x1002e77d
push 1
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x3c], eax
jmp 0x1002e784
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 4], 0
je 0x1002e794
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], 0
je 0x1002e7aa
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1002c910
push eax
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x58]
call fcn.10028a40
push str.thread
lea edx, [ebp - 0x58]
push edx
call fcn.1002eb20
add esp, 8
cmp dword [ebp - 4], 0
je 0x1002e7e9
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 8