Function at 0x4a7f10
Capabilities:
Suspend thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d75c
mov eax, dword fs:[0]
push eax
mov eax, 0x1618
call fcn.004fa800
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x414], 0
push 0x3ff
push 0
lea eax, [ebp - 0x413]
push eax
call fcn.004f8090
add esp, 0xc
lea ecx, [ebp - 0x112c]
call fcn.004a83b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x4a7f98
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x30c
lea edx, [ebp - 0x10f8]
push edx
call fcn.004fe1b0
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x4a7fce
mov eax, dword [ebp + 0x14]
push eax
push 0x300
lea ecx, [ebp - 0xae0]
push ecx
call fcn.004fe1b0
add esp, 0xc
mov edx, dword [ebp - 0x1128]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0x1120]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [ebp - 0x112c]
push ecx
call fcn.004ab040
add esp, 4
mov edx, dword [ebp - 0x1118]
mov dword [ebp - 0x15ac], edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x15ac]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1108]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1104]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1100]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x10fc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 0
ja 0x4a8113
mov dword [ebp - 0x135c], 0
mov dword [ebp - 0x1358], 0
lea edx, [ebp - 0x1354]
mov dword [ebp - 0x15b0], edx
mov eax, dword [ebp - 0x15b0]
mov dword [eax], 0
mov dword [eax + 4], 0
lea ecx, [ebp - 0x134c]
mov dword [ebp - 0x15b4], ecx
mov edx, dword [ebp - 0x15b4]
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x15a0]
call fcn.0044f380
mov dword [ebp - 0x161c], eax
mov ecx, dword [ebp - 0x161c]
mov dword [ebp - 0x15c0], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x15c0]
mov eax, dword [edx]
mov dword [ebp - 0x15c4], eax
lea ecx, [ebp - 0x135c]
push ecx
mov edx, dword [ebp - 0x15c4]
push edx
call fcn.004b44d1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x15a0]
sub eax, 0x10
mov dword [ebp - 0x15c8], eax
mov ecx, dword [ebp - 0x15c8]
call fcn.00451230
mov ecx, dword [ebp - 0x1344]
mov dword [ebp - 0x420], ecx
mov edx, dword [ebp - 0x4e0]
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x1128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp + 0x14], 0
je 0x4a832f
cmp dword [ebp + 0x18], 0
jle 0x4a832f
mov ecx, dword [ebp - 0x420]
cmp ecx, dword [ebp + 0x18]
jae 0x4a832f
mov edx, dword [ebp - 0x1110]
mov dword [ebp - 0x15cc], edx
push 0x2710
mov eax, dword [ebp - 0x15cc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1360], eax
cmp dword [ebp - 0x1360], 0
jne 0x4a8325
mov ecx, dword [ebp - 0x4d4]
mov dword [ebp - 0x418], ecx
mov edx, dword [ebp - 0x4d0]
mov dword [ebp - 0x420], edx
cmp dword [ebp - 0x420], 0
ja 0x4a8323
mov dword [ebp - 0x1594], 0
mov dword [ebp - 0x1590], 0
lea eax, [ebp - 0x158c]
mov dword [ebp - 0x15d0], eax
mov ecx, dword [ebp - 0x15d0]
mov dword [ecx], 0
mov dword [ecx + 4], 0
lea edx, [ebp - 0x1584]
mov dword [ebp - 0x15d4], edx
mov eax, dword [ebp - 0x15d4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x1598]
call fcn.0044f380
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1598]
mov dword [ebp - 0x15e4], edx
push 0x5c
mov eax, dword [ebp - 0x15e4]
push eax
call fcn.004f8f45
add esp, 8
mov dword [ebp - 0x15e0], eax
cmp dword [ebp - 0x15e0], 0
jne 0x4a8242
mov dword [ebp - 0x1620], 0xffffffff
jmp 0x4a8256
mov ecx, dword [ebp - 0x15e0]
sub ecx, dword [ebp - 0x1598]
sar ecx, 1
mov dword [ebp - 0x1620], ecx
mov edx, dword [ebp - 0x1620]
mov dword [ebp - 0x159c], edx
push 0
mov eax, dword [ebp - 0x159c]
add eax, 1
push eax
lea ecx, [ebp - 0x1598]
call fcn.004a8780
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x15a4]
call fcn.0044f380
mov dword [ebp - 0x1624], eax
mov edx, dword [ebp - 0x1624]
mov dword [ebp - 0x15fc], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x15fc]
mov ecx, dword [eax]
mov dword [ebp - 0x1600], ecx
mov edx, dword [ebp - 0x1600]
push edx
mov eax, dword [ebp - 0x159c]
add eax, 1
push eax
lea ecx, [ebp - 0x1598]
call fcn.00476560
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x15a4]
sub ecx, 0x10
mov dword [ebp - 0x1614], ecx
mov ecx, dword [ebp - 0x1614]
call fcn.00451230
lea edx, [ebp - 0x1594]
push edx
mov eax, dword [ebp - 0x1598]
push eax
call fcn.004b44d1
mov ecx, dword [ebp - 0x157c]
mov dword [ebp - 0x420], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1598]
sub edx, 0x10
mov dword [ebp - 0x1618], edx
mov ecx, dword [ebp - 0x1618]
call fcn.00451230
jmp 0x4a832f
mov dword [ebp - 0x418], 0
cmp dword [ebp - 0x418], 0
je 0x4a8358
mov eax, dword [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [ebp + 0x1c]
add esp, 0xc
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x1120]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [ebp - 0x41c]
mov dword [ebp - 0x15a8], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x112c]
call fcn.004a8530
mov eax, dword [ebp - 0x15a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret