Function at 0x4e8602
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0xffffffff
call fcn.004e6464
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4e863c
mov eax, 0xb
jmp 0x4e8963
cmp dword [ebp + 8], 0
je 0x4e8650
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0xb4]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 0x10]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4e86bb
jmp 0x4e86e4
cmp dword [ebp - 0x10], 0
jne 0x4e86c8
mov eax, 0
jmp 0x4e86cd
mov eax, 0x14
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 4
jle 0x4e8680
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004e655b
mov eax, dword [ebp - 0x20]
mov dword [eax], 0xbab1f00d
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x6c], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4e8760
cmp dword [ebp + 8], 0
je 0x4e874b
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.004e6380
mov eax, 0xb
jmp 0x4e8963
cmp dword [ebp + 0xc], 0
je 0x4e87b6
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004e81aa
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4e87aa
call fcn.004e7614
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x6c], edx
jmp 0x4e87b6
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x6c], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4e8414
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.msvcrt.dll__beginthreadex]
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4e87fa
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x4e888e
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4e8821
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
add eax, 0x1c
mov dword [esp], eax
call fcn.004e4ac5
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004e655b
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
cmp dword [ebp + 8], 0
je 0x4e8879
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.004e6380
mov eax, 0xb
jmp 0x4e8963
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xfffffff2
jge 0x4e88a6
mov dword [ebp - 0x18], 0xfffffff1
jmp 0x4e88d1
cmp dword [ebp - 0x18], 0xffffffff
jge 0x4e88b5
mov dword [ebp - 0x18], 0xfffffffe
jmp 0x4e88d1
cmp dword [ebp - 0x18], 0xe
jle 0x4e88c4
mov dword [ebp - 0x18], 0xf
jmp 0x4e88d1
cmp dword [ebp - 0x18], 1
jle 0x4e88d1
mov dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call eax
sub esp, 8
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x4e8934
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResumeThread]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
jmp 0x4e894d
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResumeThread]
call eax
sub esp, 4
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, 0
leave
ret