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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x862dd1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00407058
lea eax, [ebp - 0xc]
call fcn.004059c8
lea eax, [ebp + 0x14]
call fcn.004059c8
lea eax, [ebp - 0x60]
mov edx, dword [0x861b18]
call fcn.004059e8
xor eax, eax
push ebp
push 0x86328c
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x8631ce
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x70]
mov edx, dword [ebp - 4]
call fcn.004060b8
lea eax, [ebp - 0x70]
call fcn.00419d84
test al, al
je 0x862e55
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x8631d8
lea eax, [ebp - 0x20]
call fcn.00406fe8
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
lea eax, [ebp - 0x14]
call fcn.00406fe8
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405610
push eax
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x862ea1
cmp dword [ebp + 0x10], 0
jne 0x862e94
mov byte [ebp - 0xd], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x8631d8
call fcn.00862d84
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x26], 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
call sub.kernel32.dll_GetTickCount
xor edx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x1c], 0
jbe 0x8631c4
lea ecx, [ebp - 0x60]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
call fcn.00862794
mov eax, dword [ebp + 0x14]
call fcn.00405620
test eax, eax
jle 0x862f2c
lea eax, [ebp - 0x7c]
mov edx, dword [ebp + 0x14]
call fcn.00404f0c
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
call fcn.00410efc
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
call fcn.00405594
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x5c]
call fcn.0040568c
jmp 0x862f37
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x5c]
call fcn.00405410
mov al, byte [ebp + 8]
or al, bl
je 0x862f44
cmp byte [ebp - 0x50], 0
je 0x862f48
xor eax, eax
jmp 0x862f4a
mov al, 1
test al, al
je 0x862fb8
mov edx, dword [0x861b18]
mov eax, 0x30
call fcn.00405ee4
mov esi, eax
mov eax, esi
mov edx, dword [ebp - 0x18]
call fcn.00405518
lea eax, [esi + 4]
mov edx, dword [ebp - 0x5c]
call fcn.004053ec
lea eax, [esi + 8]
mov edx, dword [ebp - 0x58]
call fcn.004053ec
lea eax, [esi + 0xc]
mov edx, dword [ebp - 0x24]
call fcn.004053ec
mov al, byte [ebp - 0x50]
mov byte [esi + 0x10], al
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], bl
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, esi
call fcn.00420f04
cmp byte [ebp - 0x50], 1
jne 0x863178
mov eax, dword [ebp - 0x5c]
mov edx, 0x8632a8
call fcn.00405738
je 0x863178
mov eax, dword [ebp - 0x5c]
mov edx, 0x8632b0
call fcn.00405738
je 0x863178
mov eax, dword [ebp - 0x58]
mov edx, 0x8632a8
call fcn.00405738
je 0x863178
mov eax, dword [ebp - 0x58]
mov edx, 0x8632b0
call fcn.00405738
je 0x863178
test bl, bl
je 0x86303c
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0x10]
inc eax
push eax
push ebx
push 0
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 0x18]
call fcn.00405518
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00862dc8
jmp 0x863170
cmp byte [ebp + 8], 0
je 0x863075
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0x10]
inc eax
push eax
push 0
mov al, byte [ebp + 8]
push eax
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x18]
call fcn.00405518
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00862dc8
jmp 0x863170
lea eax, [ebp - 0x8c]
mov edx, dword [ebp - 0x5c]
call fcn.00404f0c
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
call fcn.0040adfc
mov eax, dword [ebp - 0x88]
mov edx, 0x8632c0
call fcn.00405088
jne 0x8630db
mov byte [ebp - 0x25], 1
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0x10]
inc eax
push eax
push 1
push 0
lea eax, [ebp - 0x90]
mov edx, dword [ebp - 0x18]
call fcn.00405518
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00862dc8
jmp 0x863170
lea eax, [ebp - 0x98]
mov edx, dword [ebp - 0x5c]
call fcn.00404f0c
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.0040adfc
mov eax, dword [ebp - 0x94]
mov edx, 0x8632d0
call fcn.00405088
jne 0x86313e
mov byte [ebp - 0x26], 1
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0x10]
inc eax
push eax
push 0
push 1
lea eax, [ebp - 0x9c]
mov edx, dword [ebp - 0x18]
call fcn.00405518
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00862dc8
jmp 0x863170
cmp dword [ebp + 0x10], 0
jg 0x863170
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0x10]
inc eax
push eax
push 0
push 0
lea eax, [ebp - 0xa0]
mov edx, dword [ebp - 0x18]
call fcn.00405518
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00862dc8
mov al, byte [ebp - 0x25]
and al, byte [ebp - 0x26]
jne 0x8631c4
call sub.kernel32.dll_GetTickCount
xor edx, edx
sub eax, dword [ebp - 0x30]
sbb edx, dword [ebp - 0x2c]
cmp edx, 0
jne 0x863193
cmp eax, 0x3e8
jbe 0x8631a7
jmp 0x863195
jle 0x8631a7
call sub.kernel32.dll_GetTickCount
xor edx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
call fcn.00862d84
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
cmp dword [ebp - 0x1c], 0
ja 0x862ee1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x8631d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x863296
lea eax, [ebp - 0xa0]
mov edx, 2
call fcn.004053c8
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.00404ca0
lea eax, [ebp - 0x90]
call fcn.004053b0
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.00404ca0
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.004053c8
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.00404ca0
lea eax, [ebp - 0x74]
call fcn.004053b0
lea eax, [ebp - 0x70]
call fcn.0040612c
lea eax, [ebp - 0x60]
mov edx, dword [0x861b18]
call fcn.00405ab8
lea eax, [ebp - 0x24]
call fcn.004053b0
lea eax, [ebp - 0x20]
call fcn.00406fe8
lea eax, [ebp - 0x14]
call fcn.00406fe8
lea eax, [ebp - 0xc]
call fcn.004053b0
lea eax, [ebp - 4]
call fcn.00406fe8
lea eax, [ebp + 0x14]
call fcn.004053b0
ret