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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8014
call fcn.0048b400
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x47089b
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.0046f180
cmp dword [ebp + 0x14], 0
jne 0x4708a8
mov dword [ebp + 0x14], 0x1f4
mov eax, 1
cmp dword [ebp + 0x18], eax
jge 0x4708b9
mov dword [ebp + 0x18], 0x32
cmp dword [ebp + 0xc], eax
jge 0x4708c1
mov dword [ebp + 0xc], eax
test esi, esi
je 0x470a68
mov ebx, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea eax, [esp + 0x1c]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push esi
call ebx
test eax, eax
je 0x470a68
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [esp + 0x1c]
jg 0x470a68
push 0x8000
xor eax, eax
mov ecx, esi
lea edi, [esp + 0x18]
call fcn.0046dc40
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x470a65
mov edi, dword [ebp + 0xc]
dec edi
mov byte [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
lea edx, [esp + 0xc]
push edx
push 0x7d0
push 2
push 0
push edi
push 0x403
push esi
call ebx
test eax, eax
je 0x4709ab
mov eax, 0x7fff
cmp word [esp + 0xc], ax
ja 0x4709ee
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0x7d0
push 2
push edx
push edi
push 0x402
push esi
call ebx
test eax, eax
je 0x4709ab
movzx eax, word [esp + 0xc]
mov edx, dword [esp + 0x10]
push 0
inc eax
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4709e9
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x20]
call fcn.0046fe00
test al, al
jne 0x470a0b
cmp dword [ebp + 8], 0
jne 0x4709f4
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x470a39
cmp dword [ebp + 0x14], 0
jl 0x4709d6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x18]
add ecx, dword [ebp + 0x14]
sub ecx, eax
cmp ecx, 5
jle 0x470a23
mov eax, dword [ebp + 0x18]
push 1
push eax
call fcn.004012a0
add esp, 8
jmp 0x470930
mov byte [esp + 0x20], 0
cmp dword [ebp + 8], 0
je 0x470a39
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0046f180
mov esi, eax
jmp 0x470a3e
mov ecx, dword [0x4a3434]
push 1
push 0
push 0xffffffffffffffff
push 0x492868
call fcn.0046f180
jmp 0x4709ee
mov ecx, dword [0x4a3434]
push 1
push 0
push 0xffffffffffffffff
push 0x493f18
call fcn.0046f180
mov esi, 1
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push 0x8000
push 0
push edx
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, 0x493f18
test edi, edi
jne 0x470a76
mov eax, 0x494060
mov ecx, dword [0x49f440]
cmp byte [ecx + 0xe4], 0
jne 0x470a9e
mov ecx, dword [0x4a3434]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0046f180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4a4fe4]
push 0x4927f1
push 0
push 0x493f18
call fcn.0042cb70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret