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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5b68c8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [0x5d33a8]
cmp byte [eax], 0
je 0x5b64cb
mov eax, dword [0x5d3e1c]
cmp dword [eax], 1
jge 0x5b68ad
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3e94]
sub eax, dword [edx]
cmp eax, 0x3938700
jmp 0x5b651a
mov eax, dword [0x5d3cc0]
cmp byte [eax], 0
jne 0x5b652e
mov eax, dword [0x5d33a8]
cmp byte [eax], 0
je 0x5b6583
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5d338c]
mov eax, dword [eax]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x5b6583
inc edi
xor esi, esi
mov eax, dword [0x5d338c]
mov eax, dword [eax]
mov edx, esi
call fcn.00419afc
mov ebx, eax
cmp dword [ebx + 4], 0
je 0x5b657f
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 4]
call fcn.005b4df8
mov ebx, eax
test ebx, ebx
je 0x5b657f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, ebx
call fcn.004199a0
inc esi
dec edi
jne 0x5b654b
mov eax, dword [0x5d3d3c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d3774]
xor edx, edx
mov dword [eax], edx
mov dword [ebp - 0x10], 0x7fffffff
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x5d3cf4]
cmp byte [eax], 0
je 0x5b68ad
xor esi, esi
jmp 0x5b684a
mov edi, 0x7fffffff
mov eax, ebx
mov edx, esi
call fcn.00419afc
mov ebx, eax
cmp dword [ebx + 0x5c], 7
jne 0x5b6690
cmp byte [ebx + 0x78], 0
jne 0x5b6690
push ebp
mov eax, ebx
call fcn.005b6408
pop ecx
mov eax, dword [0x5d3b94]
cmp byte [eax], 0
jne 0x5b6677
mov eax, dword [0x5d3e28]
mov eax, dword [eax]
cmp byte [eax + 0x86c], 0
je 0x5b6639
push 0xff0000
push 0x5b68e4
push dword [ebx + 0x11c]
push 0x5b68f8
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404794
mov edx, dword [ebp - 0x18]
mov eax, dword [0x5d3f60]
mov eax, dword [eax]
mov ecx, 0xffffff
call fcn.005b2b94
jmp 0x5b666f
push 0xff0000
push 0x5b68e4
push dword [ebx + 0x11c]
push 0x5b6910
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404794
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x5d3f60]
mov eax, dword [eax]
mov ecx, 0xffffff
call fcn.005b2b94
mov eax, dword [0x5d3b94]
mov byte [eax], 1
mov eax, dword [0x5d3e28]
mov eax, dword [eax]
cmp byte [eax + 0x86c], 0
jne 0x5b68ad
jmp 0x5b682c
cmp byte [ebx + 0x65], 0
jne 0x5b66e3
mov edx, dword [ebx + 0x11c]
mov eax, dword [ebx + 0x7c]
call fcn.005ca208
test al, al
je 0x5b66e3
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, ebx
call fcn.00536154
test al, al
jne 0x5b66e3
mov eax, dword [0x5d34c0]
cmp ebx, dword [eax]
je 0x5b66e3
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.005b5d5c
mov edi, eax
cmp edi, 0x7fffffff
jge 0x5b682c
sub edi, 0x64
jmp 0x5b682c
cmp byte [ebx + 0x54], 0
je 0x5b682c
cmp byte [ebx + 0x78], 0
jne 0x5b682c
cmp dword [ebx + 0x5c], 6
jge 0x5b682c
cmp byte [ebx + 0x59], 0
jne 0x5b682c
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx eax, word [eax + 0x122]
push eax
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx ecx, word [eax + 0x120]
movzx edx, word [ebx + 0x122]
movzx eax, word [ebx + 0x120]
call fcn.005c40a0
mov edx, dword [0x5d3c84]
cmp eax, dword [edx]
jg 0x5b682c
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx eax, word [eax + 0x122]
push eax
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx ecx, word [eax + 0x120]
movzx edx, word [ebx + 0x122]
movzx eax, word [ebx + 0x120]
call fcn.005c40a0
test eax, eax
jle 0x5b682c
cmp byte [ebx + 0xd], 0
jne 0x5b682c
mov byte [ebp - 0x11], 0
mov eax, dword [ebx + 0x104]
test eax, eax
jle 0x5b67aa
mov edx, dword [0x5d37a0]
mov edx, dword [edx]
xchg edx, eax
call fcn.00535fec
mov byte [ebp - 0x11], al
mov edx, dword [0x5d3864]
mov edx, dword [edx]
mov eax, ebx
call fcn.005c4cd4
mov byte [ebp - 0x12], al
mov edx, dword [0x5d34c0]
mov edx, dword [edx]
mov edx, dword [edx + 0x60]
mov eax, dword [ebx + 0x104]
cmp edx, eax
sete dl
or dl, byte [ebp - 0x11]
jne 0x5b67db
test eax, eax
jne 0x5b6802
cmp byte [ebp - 0x12], 0
jne 0x5b6802
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.005b5d5c
mov edi, eax
cmp byte [ebp - 0x11], 0
je 0x5b682c
mov eax, dword [0x5d3e1c]
cmp dword [eax], 0
jle 0x5b682c
sub edi, 0x64
jmp 0x5b682c
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x10c]
cmp eax, 0x7530
jbe 0x5b682c
cmp byte [ebp - 0x12], 0
jne 0x5b682c
cmp byte [ebx + 0xd], 0
jne 0x5b682c
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.005b5d5c
mov edi, eax
cmp edi, dword [ebp - 0x10]
jge 0x5b6849
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ebx
mov eax, dword [0x5d3a08]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d327c]
xor edx, edx
mov dword [eax], edx
inc esi
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x10]
cmp esi, dword [ebx + 8]
jl 0x5b65b6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5b68ad
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 8]
mov dword [edx + 0x4c], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 8]
mov dword [edx + 0xf8], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 8]
mov dword [edx + 0xfc], eax
mov eax, dword [ebp - 8]
mov byte [eax + 0xe], 0
mov eax, dword [0x5d3d3c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d387c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d3b94]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b68cf
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404438
ret