Function at 0x70e778e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov esi, eax
lea eax, [esp + 0xc]
push eax
xor edi, edi
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [0x70ea16a8]
cmp esi, edi
je 0x70e7790a
mov dword [esi], eax
cmp eax, edi
je 0x70e77b65
cmp dword [esp + 0xc], edi
je 0x70e77b65
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0xc], eax
jne 0x70e77934
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x70ea0a60
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x70ea1760]
mov ebx, dword [edx]
mov edi, dword [0x70ea174c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
jmp 0x70e77964
mov ebx, dword [esp + 0x24]
mov esi, dword [0x70ea1760]
test edi, edi
je 0x70e77976
cmp edi, dword [0x70ea174c]
je 0x70e7797b
call fcn.70e8699d
cmp ebx, esi
je 0x70e77a85
test edi, edi
jne 0x70e77a37
call fcn.70e8699d
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x70e7799c
call fcn.70e8699d
mov esi, dword [ebx + 8]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x10]
cmp eax, 0x7d0
jb 0x70e77a42
mov eax, dword [esi]
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x70e77a10
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov edx, dword [esp + 0x2c]
cmp edx, dword [esi + 8]
jne 0x70e77a05
mov eax, dword [esp + 0x28]
cmp eax, dword [esi + 4]
jne 0x70e77a05
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x10], eax
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x70e77a3e
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea edi, [esp + 0x20]
call fcn.70e78eb0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov edi, ecx
jmp 0x70e77960
mov eax, dword [edi]
jmp 0x70e77992
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x70e77a81
call fcn.70e8699d
xor eax, eax
mov ebx, dword [esp + 0x24]
cmp ebx, dword [eax + 0x14]
jne 0x70e77a5b
call fcn.70e8699d
mov ecx, dword [esi]
mov eax, dword [ebx]
mov dword [esp + 0x24], eax
cmp ecx, dword [esp + 0xc]
jne 0x70e77960
movzx edi, byte [esi + 0xc]
and edi, 1
mov dword [esp + 0x14], 1
jmp 0x70e77b49
mov eax, dword [edi]
jmp 0x70e77a4d
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.70e86060
add esp, 0xc
test eax, eax
jne 0x70e77b45
mov ecx, dword [esp + 0xc]
push ecx
push eax
push 0x400
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x70e77b45
push 0x14
call fcn.70e866e8
mov edi, dword [esp + 0x14]
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
je 0x70e77b3c
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esi + 4]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test edi, edi
je 0x70e77b03
or dword [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0xc]
mov dword [esi], eax
mov ecx, dword [0x70ea1760]
mov esi, dword [ecx]
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push eax
push esi
call fcn.70e71ec0
mov ebx, eax
call fcn.70e79180
mov dword [esi + 4], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x70e77b49
mov edi, dword [esp + 0x10]
push 0x70ea0a60
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret