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

Disassembly:
sub esp, 0xd8
mov eax, dword [0x906980]
push ebx
push ebp
mov ebp, dword [esp + 0xe4]
push esi
push edi
mov edi, ecx
test byte [edi + 0x2c], 1
lea ebx, [ebp + 0x88]
mov dword [esp + 0xe4], eax
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
jne 0x85c2a9
test eax, eax
je 0x85c3a7
cmp eax, 5
je 0x85c3a7
mov esi, ebp
call fcn.0085c0a0
cmp dword [ebx], 0
jne 0x85c3c6
call fcn.0083ed50
test eax, eax
mov dword [ebp + 0x98], eax
je 0x85c3c0
mov ecx, dword [edi + 0xe4]
test ecx, ecx
je 0x85c2de
push ecx
push 0x6d696e70
push eax
call fcn.0083e5e0
add esp, 0xc
mov eax, dword [edi + 0xe8]
test eax, eax
je 0x85c2fd
push eax
mov eax, dword [ebp + 0x98]
push 0x6d6f7574
push eax
call fcn.0083e5e0
add esp, 0xc
mov eax, dword [edi + 0xec]
test eax, eax
je 0x85c31c
mov ecx, dword [ebp + 0x98]
push eax
push 0x6d776964
push ecx
call fcn.0083e5e0
add esp, 0xc
push 0x40
lea edx, [esp + 0x28]
push edx
push ebp
mov eax, edi
call fcn.0085bfa0
mov ecx, dword [edi + 0xd4]
imul ecx, ecx, 0xb0
mov edx, dword [ecx + edi + 0x198]
mov esi, eax
mov eax, dword [ebp]
add esp, 0xc
cmp edx, eax
jne 0x85c34d
mov eax, dword [ebp + 4]
movzx ecx, word [ebp + 0x8c]
lea edx, [esp + 0x24]
push edx
mov edx, dword [edi + 0x28]
push ecx
push edx
push eax
call fcn.0083faf0
add esp, 4
push eax
push str._s:_d:_d_s
lea eax, [esp + 0x78]
push 0x80
push eax
call fcn.00846010
mov edx, dword [ebp + 0x98]
lea ecx, [esp + 0x80]
push ecx
push esi
push edx
call fcn.0083e650
add esp, 0x28
mov dword [ebx], 1
call fcn.0084bcb0
mov dword [ebp + 0xa4], eax
jmp 0x85c3c6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xd4]
call fcn.007d6cb0
add esp, 0xd8
ret
mov dword [ebx], 5
cmp dword [ebx], 1
jne 0x85c475
mov eax, dword [ebp + 0x98]
push eax
call fcn.0083e860
add esp, 4
test eax, eax
je 0x85c42c
mov ecx, dword [edi + 0x30]
push ecx
push 0
push eax
call fcn.0083f420
add esp, 0xc
test eax, eax
mov dword [ebp + 0x9c], eax
je 0x85c426
xor eax, eax
mov esi, ebx
call fcn.0085c070
mov edx, dword [ebp + 0x98]
push 0x736f636b
push edx
call fcn.0083ea90
mov dword [edi + 0x184], eax
add esp, 8
mov dword [ebx], 3
jmp 0x85c42c
mov dword [ebx], 5
call fcn.0084bcb0
sub eax, dword [ebp + 0xa4]
cmp eax, 0x2710
jle 0x85c475
mov esi, ebp
call fcn.0085c0a0
cmp word [ebp + 0x8e], 0
jne 0x85c463
mov eax, dword [edi + 0x174]
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
mov dword [ebx], eax
jmp 0x85c475
mov eax, 1
mov esi, ebx
call fcn.0085c070
mov dword [ebx], 5
cmp dword [ebx], 3
jne 0x85c4a8
mov ecx, dword [ebp + 0x9c]
push ecx
call fcn.0083f560
mov cl, byte [eax + 0x55]
add esp, 4
test cl, cl
je 0x85c4a1
mov edx, dword [eax]
mov ecx, dword [eax + 0x20]
mov eax, dword [edi + 0xdc]
sub edx, ecx
cmp edx, eax
jle 0x85c4a8
mov esi, ebp
call fcn.0085c0a0
mov eax, dword [ebx]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
je 0x85c4ea
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x18]
push ecx
xor esi, esi
push edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
mov dword [edi + 0x17c], 1
call dword [edi]
add esp, 0xc
mov dword [edi + 0x17c], esi
mov ecx, dword [ebx]
pop edi
xor eax, eax
pop esi
cmp ecx, 5
mov ecx, dword [esp + 0xdc]
pop ebp
setne al
pop ebx
call fcn.007d6cb0
add esp, 0xd8
ret