Function at 0x10863f0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebp, dword [esp + 0x50]
call fcn.01084b90
mov ebx, eax
mov eax, 0xb
test ebx, ebx
je 0x10865d2
test ebp, ebp
je 0x108641c
mov eax, dword [ebx + 0xb8]
mov dword [ebp], eax
mov eax, dword [esp + 0x5c]
mov esi, 1
mov edx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x24], 1
mov dword [ebx + 0x14], 0xffffffff
mov dword [esp + 0x2c], edx
mov dword [ebx + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call edi
sub esp, 0x10
test eax, eax
mov dword [ebx + 0x18], eax
jne 0x10864b2
cmp esi, 1
je 0x10864a0
mov dword [esp], 0x14
call dword [esp + 0x2c]
sub esp, 4
cmp esi, 5
je 0x10865e0
add esi, 1
jmp 0x1086454
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x108649b
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0xfeedbab1
mov dword [ebx + 0x3c], 1
mov dword [ebx], 0xbab1f00d
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x68], 0
mov edi, dword [esp + 0x54]
xor esi, esi
test edi, edi
je 0x108650a
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
mov esi, dword [edx + 8]
test al, 8
mov dword [ebx + 0x24], eax
jne 0x10866a4
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 0xc]
mov dword [ebx + 0x70], eax
lock or dword [esp], 0
mov dword [esp + 4], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x1085680
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
cmp eax, 0xffffffff
mov esi, eax
je 0x1086650
test eax, eax
je 0x1086650
mov eax, dword [ebx + 0x70]
cmp eax, 0xfffffff2
jl 0x1086640
cmp eax, 0xffffffff
jl 0x10866c0
cmp eax, 0xe
jg 0x10866b4
cmp eax, 2
mov edx, 2
cmovge eax, edx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebx + 0x18]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
sub esp, 4
test byte [ebx + 0x24], 4
je 0x1086690
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
sub esp, 4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0xfeedbab1
test eax, eax
mov dword [ebx + 0x3c], 1
mov dword [ebx], 0xbab1f00d
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x68], 0
jne 0x10864e2
test ebp, ebp
je 0x1086626
mov dword [ebp], 0
mov eax, ebx
call fcn.010849e0
add esp, 0x3c
mov eax, 0xb
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xfffffff1
jmp 0x1086578
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x1086663
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.01083470
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0xfeedbab1
mov dword [ebx + 0x3c], 1
mov dword [ebx + 0x18], 0
jmp 0x108661b
mov dword [ebx + 0x14], esi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
jmp 0x10865c0
call fcn.01084cd0
mov eax, dword [eax + 0x70]
mov dword [ebx + 0x70], eax
jmp 0x108650a
mov eax, 0xf
jmp 0x1086578
mov eax, 0xfffffffe
jmp 0x1086578