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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5862f0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 8], 0
je 0x5862da
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
cmp byte [eax + 0x270], 0
jne 0x5862da
cmp dword [ebp - 8], 0x1388
je 0x585e6d
cmp dword [ebp - 8], 0x1388
je 0x585e6d
cmp dword [ebp + 8], 0
je 0x5862da
cmp dword [ebp - 8], 0x1388
jne 0x585ed3
cmp dword [ebp - 0xc], 0x1388
jne 0x585ed3
mov eax, dword [0x5ab3a8]
mov dword [eax], 0x1c2
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ab514]
mov dword [edx], eax
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3ec]
push eax
lea eax, [ebp - 0x38]
push eax
xor ecx, ecx
xor edx, edx
mov ax, 0x13bf
call fcn.004946d0
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.004949d8
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x5b6a10]
call fcn.0058c260
jmp 0x5862da
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x1a]
mov edx, dword [ebp + 8]
movzx edx, byte [edx + 0x3c]
add eax, edx
mov edx, dword [0x5ab6c4]
mov edx, dword [edx]
cmp eax, dword [edx + 0x57]
jle 0x585f07
mov eax, dword [ebp + 8]
cmp byte [eax + 0x17], 0
je 0x585f07
mov eax, dword [ebp + 8]
cmp word [eax + 8], 0x45
jne 0x5862cb
mov eax, dword [ebp + 8]
mov ax, word [eax + 8]
sub ax, 3
je 0x5862da
dec ax
je 0x5862da
sub ax, 3
je 0x5862da
sub ax, 0x3c
je 0x5862da
mov eax, dword [ebp + 8]
cmp byte [eax + 0x17], 0
jne 0x585fc7
mov eax, dword [ebp + 8]
cmp word [eax + 8], 0x1a
jne 0x585f64
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ac194]
sub eax, dword [edx]
cmp eax, 0x2710
jb 0x5862da
mov eax, dword [ebp + 8]
cmp word [eax + 8], 0x4a
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ab514]
sub eax, dword [edx]
mov edx, dword [0x5ab684]
cmp eax, dword [edx]
jbe 0x5862da
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ab514]
mov dword [edx], eax
mov eax, dword [0x5ab3a8]
xor edx, edx
mov dword [eax], edx
push 0
mov eax, dword [ebp + 8]
movzx eax, word [eax + 8]
push eax
push 0
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
xor ecx, ecx
mov cl, byte [eax + 0x10]
mov edx, 0xbc9
mov eax, dword [ebp - 4]
call fcn.0058d000
jmp 0x5862da
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, 0xaf
mov eax, 0x186
call fcn.00507810
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0059e280
mov eax, dword [ebp + 8]
mov ax, word [eax + 8]
cmp ax, 0x3f
ja 0x586002
and eax, 0x7f
bt dword [0x586300], eax
jae 0x586015
mov eax, dword [0x5ab828]
mov eax, dword [eax]
mov edx, dword [0x5abeb0]
mov dword [edx], eax
jmp 0x58606d
mov eax, dword [0x5ac13c]
cmp byte [eax], 0
je 0x58604f
mov edx, dword [0x5ab828]
mov edx, dword [edx]
mov eax, dword [0x5b6a24]
call fcn.004ce898
test al, al
je 0x58605e
mov eax, dword [0x5ab828]
mov eax, dword [eax]
cmp byte [eax + 0x2c], 0
jne 0x58605e
mov eax, dword [0x5ab828]
mov eax, dword [eax]
cmp byte [eax + 0x12], 0x32
je 0x58605e
mov eax, dword [0x5ab828]
mov eax, dword [eax]
mov edx, dword [0x5ab6e4]
mov dword [edx], eax
mov eax, dword [0x5ab6e4]
mov eax, dword [eax]
mov edx, dword [0x5abeb0]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp word [eax + 8], 0x45
jne 0x5860a1
push 0
mov eax, dword [ebp + 8]
movzx eax, word [eax + 8]
push eax
push 0
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
xor ecx, ecx
mov cl, byte [eax + 0x10]
mov edx, 0xbc9
mov eax, dword [ebp - 4]
call fcn.0058d000
jmp 0x5862da
mov eax, dword [ebp + 8]
cmp word [eax + 8], 0x60
jne 0x5860d5
push 0
mov eax, dword [ebp + 8]
movzx eax, word [eax + 8]
push eax
push 0
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
xor ecx, ecx
mov cl, byte [eax + 0x10]
mov edx, 0xbc9
mov eax, dword [ebp - 4]
call fcn.0058d000
jmp 0x5862da
mov edx, dword [0x5abeb0]
mov edx, dword [edx]
mov eax, dword [0x5b6a24]
call fcn.004ce898
test al, al
je 0x5860f8
mov eax, dword [0x5abeb0]
mov eax, dword [eax]
cmp byte [eax + 0x2c], 0
je 0x586101
mov eax, dword [0x5abeb0]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5abeb0]
cmp dword [eax], 0
jne 0x58612a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x5b6a24]
call fcn.004cddd0
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x586151
mov eax, dword [0x5abeb0]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x5abeb0]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [0x5abeb0]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.0058fbf4
test al, al
je 0x5862da
mov eax, dword [ebp - 4]
call fcn.0058fbb0
test al, al
je 0x5862da
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ab514]
mov dword [edx], eax
mov eax, 0x24
call fcn.004027c4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, 0x24
call fcn.004031c8
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x18]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 1], 4
jne 0x5861db
mov eax, dword [ebp + 8]
mov ax, word [eax + 8]
sub ax, 0xd
je 0x5861c5
sub ax, 0x20
je 0x5861d1
jmp 0x5861db
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0x64
jmp 0x5861db
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0x65
mov eax, dword [ebp + 8]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x38]
add eax, 0xc8
mov edx, dword [0x5ab3a8]
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
cmp eax, 0x1f
ja case.0x586213.0
mov al, byte [eax + 0x58621a]
jmp dword [eax*4 + 0x58623a]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ac258]
mov dword [edx], eax
mov eax, dword [0x5ac2dc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5abeb0]
cmp dword [eax], 0
je 0x5862a2
mov eax, dword [0x5abeb0]
mov eax, dword [eax]
cmp byte [eax + 0x12], 0
je 0x58628b
mov eax, dword [0x5abeb0]
mov eax, dword [eax]
cmp byte [eax + 0x12], 1
je 0x58628b
mov eax, dword [0x5abeb0]
mov eax, dword [eax]
cmp byte [eax + 0x12], 0x96
jne 0x5862a2
mov eax, 0x44c
call fcn.004031e8
add eax, 0x12c
mov edx, dword [0x5ac2dc]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov dx, 0xbc9
call fcn.004f7e3c
jmp 0x5862da
mov edx, 0x586310
mov eax, dword [0x5b6a14]
call fcn.0057ecbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5862f7
lea eax, [ebp - 0x3c]
call fcn.00404788
ret