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

Disassembly:
sub esp, 0x74
push ebp
mov ebp, 1
push esi
mov dword [esp + 0x24], ebp
mov esi, esi
mov esi, dword [esp + 0x94]
test esi, esi
jg 0x1004c443
pop esi
xor eax, eax
pop ebp
add esp, 0x74
ret
push ebx
mov ebx, dword [esp + 0x84]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1004c466
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1004c466
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 0x74
ret
imul esi, esi, 0x3e8
push edi
mov dword [esp + 0x30], esi
push ecx
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0x28], eax
mov cl, cl
mov bh, bh
mov al, al
mov dword [esp + 0x10], 0
mov edi, edi
mov bh, bh
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.10042660
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
add esp, 0x28
test eax, eax
jne 0x1004c56e
xchg ebx, eax
xchg ebx, eax
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebp
sub eax, dword [esp + 0x28]
cmp eax, esi
jae 0x1004c559
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1004c503
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004c559
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.10042660
add esp, 0x28
test eax, eax
jne 0x1004c566
push 0x64
call edi
mov ah, ah
call ebp
sub eax, dword [esp + 0x28]
cmp eax, esi
jb 0x1004c4f1
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x74
ret
xor ebp, ebp
mov dword [esp + 0x2c], ebp
mov ch, ch
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [esp + 0x28]
cmp eax, esi
jae 0x1004c730
xchg ebx, eax
xchg ebx, eax
mov dh, dh
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov dh, dh
mov eax, dword [ebx + 0x1c]
cmp eax, ebp
je 0x1004c5a2
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004c6f4
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.10042660
add esp, 0x28
test eax, eax
jne 0x1004c5fe
mov ebp, 1
mov dword [esp + 0x2c], ebp
mov ebx, ebx
push 0x64
call edi
mov ecx, ecx
jmp 0x1004c6e0
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x60]
jne 0x1004c718
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x64]
jne 0x1004c718
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x24]
jne 0x1004c718
mov edi, dword [esp + 0x20]
imul eax, ecx
cmp eax, 4
mov edx, dword [esp + 0x10]
mov ecx, edi
jb 0x1004c654
lea ebx, [ebx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1004c658
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1004c640
cmp eax, ebp
je 0x1004c6b5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1004c6a7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1004c6b5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1004c6a7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1004c6b5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1004c6a7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1004c6b5
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x1004c6b5
test esi, esi
mov eax, 1
jg 0x1004c6b7
or eax, 0xffffffff
jmp 0x1004c6b7
xor eax, eax
xor ebp, ebp
cmp eax, ebp
jne 0x1004c6fd
push edi
call fcn.100f4b3b
add esp, 4
mov dword [esp + 0x20], ebp
mov edx, edx
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x64
call edi
mov edi, edi
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 0x1004c580
jmp 0x1004c730
mov ebp, 1
mov dh, dh
jmp 0x1004c730
mov ch, ch
mov edx, dword [esp + 0x20]
push edx
call fcn.100f4b3b
add esp, 4
mov dword [esp + 0x20], 0
mov edi, edi
jmp 0x1004c730
nop
mov eax, dword [esp + 0x20]
push eax
call fcn.100f4b3b
add esp, 4
mov dword [esp + 0x20], 0
push edx
pop edx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100f4b3b
add esp, 4
mov dword [esp + 0x10], 0
push ebx
pop ebx
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 0x74
ret