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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x21
push 0
push 0
dec ecx
jne 0x5f3134
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5f349b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.005a3e84
test al, al
je 0x5f33cb
cmp byte [ebx + 0x3e8], 0
je 0x5f3174
mov edx, dword [ebx + 0x398]
mov eax, ebx
call fcn.005f1fe0
call sub.KERNEL32.DLL_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x394]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, ebx
call fcn.005f2fdc
cmp dword [ebp - 4], 0
jne 0x5f31ac
cmp dword [ebp - 8], 0x1f4
jae 0x5f31c6
jmp 0x5f31ae
jge 0x5f31c6
cmp dword [ebp - 4], 0
jne 0x5f31c0
cmp dword [ebp - 8], 0
jae 0x5f33cb
jmp 0x5f31c6
jge 0x5f33cb
cmp esi, 0xffffffff
jge 0x5f31ce
or esi, 0xffffffff
cmp esi, 0x64
jle 0x5f31d8
mov esi, 0x64
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [ebx + 0x394], eax
cmp esi, 0xffffffff
je 0x5f32d9
lea eax, [ebp - 0x68]
mov edx, 0x5f34b8
call fcn.00436d40
push esi
lea esi, [ebp - 0x68]
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x78]
mov edx, dword [ebx + 0x3a4]
mov cl, 0xfc
call fcn.00436a38
push esi
lea esi, [ebp - 0x78]
lea edi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x88]
mov edx, esi
mov cl, 0xfc
call fcn.00436a38
push esi
lea esi, [ebp - 0x88]
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x98]
xor edx, edx
call fcn.00436c54
push esi
lea esi, [ebp - 0x98]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0xa8]
mov edx, dword [0x6a63f4]
mov edx, dword [edx]
mov cl, 0xfc
call fcn.00436a38
push esi
lea esi, [ebp - 0xa8]
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x58]
push eax
push 4
mov eax, 0x5f34d4
mov dword [ebp - 0xbc], eax
mov eax, 0x5f34f0
mov dword [ebp - 0xb8], eax
mov eax, 0x5f3508
mov dword [ebp - 0xb4], eax
mov eax, 0x5f3528
mov dword [ebp - 0xb0], eax
mov eax, 0x5f3544
mov dword [ebp - 0xac], eax
lea edx, [ebp - 0xbc]
mov ecx, 4
mov eax, ebx
call fcn.005f1b40
mov dword [ebx + 0x398], esi
jmp 0x5f33cb
lea eax, [ebp - 0xcc]
mov edx, 0x5f34b8
call fcn.00436d40
push esi
lea esi, [ebp - 0xcc]
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0xdc]
mov edx, dword [ebx + 0x3a4]
mov cl, 0xfc
call fcn.00436a38
push esi
lea esi, [ebp - 0xdc]
lea edi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0xec]
mov edx, dword [ebx + 0x398]
mov cl, 0xfc
call fcn.00436a38
push esi
lea esi, [ebp - 0xec]
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0xfc]
xor edx, edx
call fcn.00436c54
push esi
lea esi, [ebp - 0xfc]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x10c]
mov edx, dword [0x6a63f4]
mov edx, dword [edx]
mov cl, 0xfc
call fcn.00436a38
push esi
lea esi, [ebp - 0x10c]
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x58]
push eax
push 4
mov eax, 0x5f34d4
mov dword [ebp - 0xbc], eax
mov eax, 0x5f34f0
mov dword [ebp - 0xb8], eax
mov eax, 0x5f3508
mov dword [ebp - 0xb4], eax
mov eax, 0x5f3528
mov dword [ebp - 0xb0], eax
mov eax, 0x5f3544
mov dword [ebp - 0xac], eax
lea edx, [ebp - 0xbc]
mov ecx, 4
mov eax, ebx
call fcn.005f1b40
cmp esi, 0xffffffff
jne 0x5f33d6
mov esi, dword [ebx + 0x398]
mov dword [ebx + 0x398], esi
call sub.KERNEL32.DLL_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x39c]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x5f340a
cmp dword [ebp - 8], 0x32
jae 0x5f341c
jmp 0x5f340c
jge 0x5f341c
cmp dword [ebp - 4], 0
jne 0x5f341a
cmp dword [ebp - 8], 0
jae 0x5f3461
jmp 0x5f341c
jge 0x5f3461
mov eax, dword [ebx + 0x3a4]
cmp eax, 0x101
jne 0x5f3437
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x128]
jmp 0x5f344a
cmp eax, 0x102
jne 0x5f344a
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x12c]
mov eax, dword [0x6a6ea0]
mov eax, dword [eax]
call fcn.005486a8
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [ebx + 0x39c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f34a2
lea eax, [ebp - 0x10c]
mov edx, dword [0x4012f0]
mov ecx, 5
call fcn.00408a28
lea eax, [ebp - 0xa8]
mov edx, dword [0x4012f0]
mov ecx, 5
call fcn.00408a28
ret