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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x100a69a0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x54], 0
and dword [ebp - 0x50], 0
push ebx
push esi
push edi
pushal
mov ecx, dword ds:[0xe7b850]
mov eax, 0x836440
call eax
mov dword [ebp - 0x54], eax
popal
cmp dword [ebp - 0x54], 0
jne 0x10058adb
push 7
mov ecx, 0x2f9a2b0
pop edx
mov eax, dword [ecx]
test eax, eax
je 0x100588a5
cmp byte [eax + 0x330], 0
je 0x100588a5
inc dword [ebp - 0x50]
add ecx, 4
dec edx
jne 0x10058893
mov ebx, dword [ebp - 0x50]
cmp ebx, dword [0x103af1d4]
jge 0x10058adb
xor edi, edi
inc edi
test ebx, ebx
jne 0x100588cd
cmp dword [0x103aed94], edi
je 0x10058adb
push 0x1008c738
call fcn.10006509
mov esi, eax
mov dword [esp], 0x1008c6e8
call fcn.10006509
pop ecx
cmp esi, edi
jne 0x1005893a
test eax, eax
jne 0x1005893a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
sub eax, dword [0x103d26d0]
cmp eax, 0x1e
jb 0x10058adb
push 0
push 3
mov byte [0x103be37c], 0
call fcn.10039277
push 0x1009a98c
call fcn.10006e54
push 0x1009a978
push 0
call fcn.10039334
add esp, 0x14
jmp 0x10058adb
cmp ebx, 7
jge 0x10058adb
test esi, esi
jne 0x10058adb
cmp dword [0x103aed88], edi
je 0x1005895f
cmp dword [0x103aed98], edi
jne 0x100589f5
lea eax, [ebp - 0x48]
push eax
call fcn.10045203
cmp dword [ebp - 0x24], 0
pop ecx
jl 0x100589f5
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x103428e8]
cmp eax, 0x2710
ja 0x10058993
test ebx, ebx
jle 0x10058993
and dword [0x103428e8], 0
call esi
xor edx, edx
mov ecx, 0x3e8
div ecx
push dword [ebp - 0x24]
mov dword [0x103d26d0], eax
call fcn.100393f0
mov eax, dword [ebp - 0x24]
and dword [eax*4 + 0x10122868], 0
lea eax, [ebp - 0x48]
push eax
push 0x103be37c
call sub.MSVCR100.dll_strcpy
lea eax, [ebp - 0x48]
push eax
push 0x1009a970
mov esi, 0x10111d48
push esi
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x48]
push eax
push 0x10110c78
call sub.MSVCR100.dll_strcpy
push esi
call fcn.10006e54
add esp, 0x24
jmp 0x10058adb
cmp dword [0x103aed84], edi
jne 0x10058adb
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
push eax
push eax
mov edi, 0x18b
push edi
push dword [0x103aedc0]
mov dword [ebp - 0x4c], eax
call esi
test eax, eax
jle 0x10058ad4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x4c]
push 0x189
push dword [0x103aedc0]
call esi
and dword [ebp - 0x58], 0
mov ebx, 0x2f9a2b0
mov eax, dword [ebx]
test eax, eax
je 0x10058a65
cmp byte [eax + 0x330], 0
je 0x10058a65
add eax, 0x338
push eax
lea eax, [ebp - 0x18]
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x10058abb
add ebx, 4
inc dword [ebp - 0x58]
cmp dword [ebp - 0x58], 7
jl 0x10058a41
lea eax, [ebp - 0x18]
push 0x34d18e8
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x10058abb
or dword [ebp - 0x24], 0xffffffff
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100450fe
cmp dword [ebp - 0x24], 0
pop ecx
pop ecx
jl 0x10058abb
fld dword [ebp - 0x28]
fild dword [0x103aee88]
fcompp
fnstsw ax
test ah, 1
jne 0x10058abb
mov ebx, dword [ebp - 0x4c]
cmp ebx, dword [0x100a67f8]
jg 0x10058aea
inc dword [ebp - 0x4c]
push 0
push 0
push edi
push dword [0x103aedc0]
call esi
cmp dword [ebp - 0x4c], eax
jl 0x10058a24
or dword [0x100a67f8], 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083e24
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x103428e8]
cmp eax, 0x2710
ja 0x10058b1d
cmp dword [ebp - 0x50], 0
jle 0x10058b1d
and dword [0x103428e8], 0
push 0x1009a964
push 0x10110c3c
call fcn.1003ae92
pop ecx
pop ecx
call esi
xor edx, edx
mov ecx, 0x3e8
div ecx
push dword [ebp - 0x24]
mov dword [0x103d26d0], eax
call fcn.100393f0
lea eax, [ebp - 0x48]
push eax
push 0x103be37c
call sub.MSVCR100.dll_strcpy
mov dword [0x100a67f8], ebx
jmp 0x100589c4