Function at 0x68d588df
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.68d56d45
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x68d58906
mov eax, 3
jmp 0x68d58c83
cmp dword [ebp - 0xc], 0
jne 0x68d58916
mov eax, 3
jmp 0x68d58c83
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x68d58949
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
cmp eax, 0xffffffff
je 0x68d58949
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetHandleInformation]
call eax
sub esp, 8
test eax, eax
jne 0x68d58953
mov eax, 3
jmp 0x68d58c83
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.68d56640
call fcn.68d58491
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.68d58155
test eax, eax
je 0x68d58a63
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 3
test al, al
je 0x68d589bb
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.68d566e9
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 0xc
test al, al
je 0x68d589b1
mov eax, 3
jmp 0x68d58c83
mov eax, 0
jmp 0x68d58c83
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x20]
and edx, 0xfffffffc
or edx, 1
mov byte [eax + 0x20], dl
mov dword [ebp - 0x10], 0x68f01a94
mov eax, dword [ebp - 0x10]
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x68d589fb
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
and eax, 2
test eax, eax
je 0x68d58a4b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
and eax, 1
test eax, eax
je 0x68d58a4b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
and eax, 0xfffffffe
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x20]
and edx, 0xfffffff3
or edx, 4
mov byte [eax + 0x20], dl
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.68d566e9
call fcn.68d586df
jmp 0x68d58a59
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.68d566e9
mov eax, 0
jmp 0x68d58c83
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
and eax, 2
test eax, eax
je 0x68d58bf5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
and eax, 1
test eax, eax
je 0x68d58bf5
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 0xc
test al, al
je 0x68d58ac3
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.68d566e9
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 0xc
test al, al
je 0x68d58ab9
mov eax, 3
jmp 0x68d58c83
mov eax, 0
jmp 0x68d58c83
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 3
test al, al
jne 0x68d58adf
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 0xc
test al, al
je 0x68d58ae9
mov eax, 3
jmp 0x68d58c83
mov dword [ebp - 0x2e8], 0x10001
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SuspendThread]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
cmp eax, 0x102
jne 0x68d58c6f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
lea edx, [ebp - 0x2e8]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadContext]
call eax
sub esp, 8
mov eax, fcn.68d586df
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
lea edx, [ebp - 0x2e8]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetThreadContext]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x20]
and edx, 0xfffffffc
or edx, 1
mov byte [eax + 0x20], dl
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
and eax, 0xfffffffe
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x20]
and edx, 0xfffffff3
or edx, 4
mov byte [eax + 0x20], dl
mov dword [ebp - 0x14], 0x68f01a94
mov eax, dword [ebp - 0x14]
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x68d58bd2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.68d566e9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResumeThread]
call eax
sub esp, 4
jmp 0x68d58c6f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 3
test al, al
jne 0x68d58c45
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x20]
and edx, 0xfffffffc
or edx, 1
mov byte [eax + 0x20], dl
mov dword [ebp - 0x18], 0x68f01a94
mov eax, dword [ebp - 0x18]
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x68d58c70
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
call eax
sub esp, 4
jmp 0x68d58c70
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.68d566e9
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x20]
and eax, 0xc
test al, al
je 0x68d58c68
mov eax, 3
jmp 0x68d58c83
mov eax, 0
jmp 0x68d58c83
nop
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], eax
call fcn.68d566e9
mov eax, 0
leave
ret