Function at 0x4cdaf6
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.004cb958
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4cdb30
mov eax, 0xb
jmp 0x4cde57
cmp dword [ebp + 8], 0
je 0x4cdb44
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 0x4cdbaf
jmp 0x4cdbd8
cmp dword [ebp - 0x10], 0
jne 0x4cdbbc
mov eax, 0
jmp 0x4cdbc1
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 0x4cdb74
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.004cba4f
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 0x4cdc54
cmp dword [ebp + 8], 0
je 0x4cdc3f
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.004cb874
mov eax, 0xb
jmp 0x4cde57
cmp dword [ebp + 0xc], 0
je 0x4cdcaa
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.004cd69e
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4cdc9e
call fcn.004ccb08
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x6c], edx
jmp 0x4cdcaa
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], 0x4cd908
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 0x4cdcee
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x4cdd82
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4cdd15
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.004c9fb9
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.004cba4f
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 0x4cdd6d
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.004cb874
mov eax, 0xb
jmp 0x4cde57
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xfffffff2
jge 0x4cdd9a
mov dword [ebp - 0x18], 0xfffffff1
jmp 0x4cddc5
cmp dword [ebp - 0x18], 0xffffffff
jge 0x4cdda9
mov dword [ebp - 0x18], 0xfffffffe
jmp 0x4cddc5
cmp dword [ebp - 0x18], 0xe
jle 0x4cddb8
mov dword [ebp - 0x18], 0xf
jmp 0x4cddc5
cmp dword [ebp - 0x18], 1
jle 0x4cddc5
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 0x4cde28
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 0x4cde41
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