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

Disassembly:
sub esp, 0x74
push ebp
mov ebp, 1
push esi
mov dword [esp + 0x24], ebp
push ecx
pop ecx
mov esi, dword [esp + 0x94]
test esi, esi
jg 0x1005e8e3
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 0x1005e906
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1005e906
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 edi, edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0x28], eax
test ebx, ebx
mov esi, esi
mov ecx, ecx
mov dword [esp + 0x10], 0
mov edi, edi
test esi, esi
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.10054960
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
add esp, 0x28
test eax, eax
jne 0x1005ea0e
mov ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebp
sub eax, dword [esp + 0x28]
cmp eax, esi
jae 0x1005e9f9
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x1005e9a3
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1005e9f9
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.10054960
add esp, 0x28
test eax, eax
jne 0x1005ea06
push 0x64
call edi
mov ebp, ebp
call ebp
sub eax, dword [esp + 0x28]
cmp eax, esi
jb 0x1005e991
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x74
ret
xor ebp, ebp
mov dword [esp + 0x2c], ebp
mov edx, edx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [esp + 0x28]
cmp eax, esi
jae 0x1005ebd1
test edx, edx
test bh, bh
xor ebp, ebp
mov dword [esp + 0x20], ebp
test al, al
mov eax, dword [ebx + 0x18]
cmp eax, ebp
je 0x1005ea42
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1005eb94
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.10054960
add esp, 0x28
test eax, eax
jne 0x1005ea9e
mov ebp, 1
mov dword [esp + 0x2c], ebp
push ecx
pop ecx
push 0x64
call edi
mov ebp, ebp
jmp 0x1005eb80
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x60]
jne 0x1005ebb8
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x64]
jne 0x1005ebb8
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x24]
jne 0x1005ebb8
mov edi, dword [esp + 0x20]
imul eax, ecx
cmp eax, 4
mov edx, dword [esp + 0x10]
mov ecx, edi
jb 0x1005eaf4
lea ebx, [ebx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1005eaf8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1005eae0
cmp eax, ebp
je 0x1005eb55
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1005eb47
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1005eb55
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1005eb47
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1005eb55
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1005eb47
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1005eb55
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x1005eb55
test esi, esi
mov eax, 1
jg 0x1005eb57
or eax, 0xffffffff
jmp 0x1005eb57
xor eax, eax
xor ebp, ebp
cmp eax, ebp
jne 0x1005eb9d
push edi
call fcn.10101432
add esp, 4
mov dword [esp + 0x20], ebp
test dh, dh
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x64
call edi
test bh, bh
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 0x1005ea20
jmp 0x1005ebd1
mov ebp, 1
test cl, cl
jmp 0x1005ebd1
test ebx, ebx
mov edx, dword [esp + 0x20]
push edx
call fcn.10101432
add esp, 4
mov dword [esp + 0x20], 0
test esi, esi
jmp 0x1005ebd1
mov edx, edx
mov eax, dword [esp + 0x20]
push eax
call fcn.10101432
add esp, 4
mov dword [esp + 0x20], 0
mov ch, ch
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10101432
add esp, 4
mov dword [esp + 0x10], 0
test edi, edi
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 0x74
ret