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

Disassembly:
sub esp, 0x74
push ebp
mov ebp, 1
push esi
mov dword [esp + 0x24], ebp
test edx, edx
mov esi, dword [esp + 0x94]
test esi, esi
jg 0x100470e3
pop esi
xor eax, eax
pop ebp
add esp, 0x74
ret
push ebx
mov ebx, dword [esp + 0x84]
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10047106
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10047106
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 0x74
ret
imul esi, esi, 0x3e8
push edi
mov dword [esp + 0x30], esi
mov ebp, ebp
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0x28], eax
test edi, edi
mov bh, bh
test cl, cl
mov dword [esp + 0x10], 0
push ecx
pop ecx
test al, al
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0xa4]
push eax
push ecx
push edx
push ebx
call fcn.1003cc50
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
add esp, 0x28
test eax, eax
jne 0x10047211
test eax, 0x3a14
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebp
sub eax, dword [esp + 0x28]
cmp eax, esi
jae 0x100471fc
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x100471a6
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100471fc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0xa4]
push eax
push ecx
push edx
push ebx
call fcn.1003cc50
add esp, 0x28
test eax, eax
jne 0x10047209
push 0x64
call edi
mov edi, edi
call ebp
sub eax, dword [esp + 0x28]
cmp eax, esi
jb 0x10047194
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x74
ret
xor ebp, ebp
mov dword [esp + 0x2c], ebp
mov bh, bh
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [esp + 0x28]
cmp eax, esi
jae 0x100473d1
test bh, bh
test esi, esi
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov esi, esi
mov eax, dword [ebx + 0x18]
cmp eax, ebp
je 0x10047245
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10047394
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0xa4]
push eax
push ecx
push edx
push ebx
call fcn.1003cc50
add esp, 0x28
test eax, eax
jne 0x100472a1
mov ebp, 1
mov dword [esp + 0x2c], ebp
mov ch, ch
push 0x64
call edi
mov dl, dl
jmp 0x10047380
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x60]
jne 0x100473b8
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x64]
jne 0x100473b8
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x24]
jne 0x100473b8
mov edi, dword [esp + 0x20]
imul eax, ecx
cmp eax, 4
mov edx, dword [esp + 0x10]
mov ecx, edi
jb 0x100472f4
lea ecx, [ecx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x100472f8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x100472e0
cmp eax, ebp
je 0x10047355
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x10047347
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10047355
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x10047347
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10047355
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x10047347
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10047355
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x10047355
test esi, esi
mov eax, 1
jg 0x10047357
or eax, 0xffffffff
jmp 0x10047357
xor eax, eax
xor ebp, ebp
cmp eax, ebp
jne 0x1004739d
push edi
call fcn.100f3efb
add esp, 4
mov dword [esp + 0x20], ebp
mov bl, bl
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x64
call edi
push eax
pop eax
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [esp + 0x28]
cmp eax, esi
jb 0x10047223
jmp 0x100473d1
mov ebp, 1
push ebx
pop ebx
jmp 0x100473d1
test esi, esi
mov edx, dword [esp + 0x20]
push edx
call fcn.100f3efb
add esp, 4
mov dword [esp + 0x20], 0
test edx, edx
jmp 0x100473d1
mov edx, edx
mov eax, dword [esp + 0x20]
push eax
call fcn.100f3efb
add esp, 4
mov dword [esp + 0x20], 0
mov ah, ah
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100f3efb
add esp, 4
mov dword [esp + 0x10], 0
mov ch, ch
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 0x74
ret