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

Disassembly:
mov eax, 0x1001c
call fcn.004a4980
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x4770e3
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.00475930
mov eax, dword [esp + 0x10038]
mov ecx, 0x1f4
test eax, eax
mov ebx, 1
cmovne ecx, eax
cmp dword [esp + 0x1003c], 1
mov dword [esp + 0x20], ecx
mov ecx, 0x32
cmovge ecx, dword [esp + 0x1003c]
cmp dword [esp + 0x10030], ebx
mov dword [esp + 0x28], ecx
cmovge ebx, dword [esp + 0x10030]
test esi, esi
je 0x4772d7
lea eax, [esp + 0x1c]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x4772d7
cmp ebx, dword [esp + 0x1c]
jg 0x4772d7
push 0
push esi
mov edx, 0x10000
lea ecx, [esp + 0x20]
call fcn.004740e0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4772d7
lea eax, [ebx - 1]
mov dword [esp + 0x14], eax
xor eax, eax
mov word [esp + 0x2c], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
push 0x7d0
push 2
push 0
push dword [esp + 0x24]
push 0x40c
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x47721f
mov eax, 0x7fff
cmp word [esp + 0x10], ax
ja 0x47727b
lea eax, [esp + 0x10]
push eax
push 0x7d0
push 2
push ebp
push dword [esp + 0x24]
push 0x40d
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x47721f
movzx eax, word [esp + 0x10]
push 0
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x34]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x477274
mov edx, dword [esp + 0x10034]
lea ecx, [esp + 0x2c]
call fcn.00476670
test al, al
jne 0x47725c
test edi, edi
jne 0x47727f
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4772d0
test ebx, ebx
js 0x477249
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x24]
add ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x4772ba
mov ecx, dword [esp + 0x28]
mov edx, 1
call fcn.00401e60
jmp 0x477195
mov ecx, dword [0x4d166c]
push 1
push 0
push 0xffffffffffffffff
push 0x4ac300
call fcn.00475930
jmp 0x47727b
xor eax, eax
mov word [esp + 0x2c], ax
test edi, edi
je 0x4772d0
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.00475930
mov esi, eax
mov ebx, dword [esp + 0x18]
push 0x8000
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1001c
ret
mov ecx, dword [0x4d166c]
push 1
push 0
push 0xffffffffffffffff
push 0x4bf994
call fcn.00475930
mov esi, 1
jmp 0x477293
test edi, edi
mov ecx, 0x4bf994
mov eax, 0x4bfc6c
cmove ecx, eax
cmp word [ecx], 0x30
jne 0x4772f3
cmp word [ecx + 2], 0
je 0x477301
mov eax, dword [0x4ce8c8]
cmp byte [eax + 0x108], 0
jne 0x47731e
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4d166c]
call fcn.00475930
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1001c
ret
push 0x4ac22c
push 0
push ecx
mov ecx, dword [0x4d4510]
call fcn.0042cf00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1001c
ret