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

Disassembly:
sub esp, 0x74
push ebp
push esi
mov esi, dword [esp + 0x94]
test esi, esi
mov ebp, 1
mov dword [esp + 0x14], ebp
jg 0x1004df51
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 0x1004df74
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1004df74
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 0x74
ret
imul esi, esi, 0x3e8
push edi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x34]
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
mov dword [esp + 0x40], 0
call fcn.10044740
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
add esp, 0x28
test eax, eax
jne 0x1004e06a
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebp
sub eax, dword [esp + 0x10]
cmp eax, esi
jae 0x1004e057
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x1004e003
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e057
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x34]
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.10044740
add esp, 0x28
test eax, eax
jne 0x1004e064
push 0x64
call edi
call ebp
sub eax, dword [esp + 0x10]
cmp eax, esi
jb 0x1004dff1
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x74
ret
xor ebp, ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, esi
jae 0x1004e1f4
lea esp, [esp]
mov eax, dword [ebx + 0x18]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x14], ebp
je 0x1004e09c
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e1e0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x38]
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.10044740
add esp, 0x28
test eax, eax
jne 0x1004e0f4
mov ebp, 1
push 0x64
mov dword [esp + 0x20], ebp
call edi
jmp 0x1004e1cc
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x60]
jne 0x1004e1e7
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x64]
jne 0x1004e1e7
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x2c]
jne 0x1004e1e7
mov edi, dword [esp + 0x14]
imul eax, ecx
cmp eax, 4
mov edx, dword [esp + 0x18]
mov ecx, edi
jb 0x1004e144
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1004e148
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1004e130
cmp eax, ebp
je 0x1004e1a5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1004e197
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1004e1a5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1004e197
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1004e1a5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1004e197
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1004e1a5
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x1004e1a5
test esi, esi
mov eax, 1
jg 0x1004e1a7
or eax, 0xffffffff
jmp 0x1004e1a7
xor eax, eax
xor ebp, ebp
cmp eax, ebp
push edi
jne 0x1004e1ec
call fcn.100ff60b
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
add esp, 4
push 0x64
mov dword [esp + 0x18], ebp
call edi
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, esi
jb 0x1004e080
jmp 0x1004e1f4
mov ebp, 1
jmp 0x1004e1f4
mov edx, dword [esp + 0x14]
push edx
call fcn.100ff60b
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call fcn.100ff60b
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 0x74
ret