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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10014
call fcn.00494440
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x47423b
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00472b80
cmp dword [ebp + 0x14], 0
jne 0x474248
mov dword [ebp + 0x14], 0x1f4
mov eax, 1
cmp dword [ebp + 0x18], eax
jge 0x474259
mov dword [ebp + 0x18], 0x32
cmp dword [ebp + 0xc], eax
jge 0x474261
mov dword [ebp + 0xc], eax
test esi, esi
je 0x47440f
mov ebx, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea eax, [esp + 0x1c]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push esi
call ebx
test eax, eax
je 0x47440f
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [esp + 0x1c]
jg 0x47440f
push 0x10000
xor eax, eax
mov ecx, esi
lea edi, [esp + 0x18]
call fcn.004716a0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x47440c
mov edi, dword [ebp + 0xc]
xor edx, edx
dec edi
mov word [esp + 0x20], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push 0x7d0
push 2
push 0
push edi
push 0x40c
push esi
call ebx
test eax, eax
je 0x474350
mov ecx, 0x7fff
cmp word [esp + 0xc], cx
ja 0x474395
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push 0x7d0
push 2
push eax
push edi
push 0x40d
push esi
call ebx
test eax, eax
je 0x474350
movzx ecx, word [esp + 0xc]
push 0
lea edx, [ecx + ecx + 2]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x47438e
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x20]
call fcn.00473720
test al, al
jne 0x4743b2
cmp dword [ebp + 8], 0
jne 0x47439b
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4743e0
cmp dword [ebp + 0x14], 0
jl 0x47437b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x18]
add ecx, dword [ebp + 0x14]
sub ecx, eax
cmp ecx, 5
jle 0x4743ca
mov eax, dword [ebp + 0x18]
push 1
push eax
call fcn.004012b0
add esp, 8
jmp 0x4742d2
xor ecx, ecx
mov word [esp + 0x20], cx
cmp dword [ebp + 8], 0
je 0x4743e0
mov ecx, dword [ebp + 8]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
push edx
call fcn.00472b80
mov esi, eax
jmp 0x4743e5
mov ecx, dword [0x4c26cc]
push 1
push 0
push 0xffffffffffffffff
push 0x49c8d0
call fcn.00472b80
jmp 0x474395
mov ecx, dword [0x4c26cc]
push 1
push 0
push 0xffffffffffffffff
push 0x49f36c
call fcn.00472b80
mov esi, 1
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push 0x8000
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov eax, 0x49f36c
test edi, edi
jne 0x47441d
mov eax, 0x49f5dc
mov ecx, dword [0x4be40c]
cmp byte [ecx + 0x104], 0
jne 0x474445
mov ecx, dword [0x4c26cc]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.00472b80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4c4664]
push 0x4a6b2c
push 0
push 0x49f36c
call fcn.0042f160
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret