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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 4], eax
mov eax, dword [0x5ab6c4]
cmp dword [eax], 0
je 0x584d2f
mov eax, dword [0x5ab81c]
cmp dword [eax], 0
jl 0x584bdd
mov eax, dword [ebp - 4]
call fcn.0058fbf4
test al, al
je 0x584bdd
mov eax, dword [ebp - 4]
call fcn.0058fbb0
test al, al
je 0x584bdd
mov eax, dword [0x5ab81c]
mov eax, dword [eax]
mov edx, dword [0x5ab6c4]
mov edx, dword [edx]
cmp eax, dword [edx + 8]
jne 0x5847b5
mov eax, dword [0x5ab6a4]
mov eax, dword [eax]
mov edx, dword [0x5ab6c4]
mov edx, dword [edx]
cmp eax, dword [edx + 0xc]
je 0x584bdd
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x5ab81c]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [0x5ab6a4]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00507510
mov byte [ebp - 0x19], al
mov eax, dword [0x5abe74]
mov al, byte [eax]
sub al, 1
jb 0x58480e
je 0x584a6e
jmp 0x584bdd
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
call fcn.004f9298
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov cl, byte [ebp - 0x19]
mov edx, 0xbc3
mov eax, dword [ebp - 4]
call fcn.0058fd1c
test al, al
je 0x584a5e
cmp dword [ebp - 0x18], 0
jle 0x584a5e
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x19]
call fcn.0050738c
mov byte [ebp - 0x1d], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x5b6a24]
call fcn.004ce6a4
test al, al
jne 0x584a27
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1a], 0
cmp byte [ebp - 0x1c], 0
jne 0x5848b7
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x19]
call fcn.0050738c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0058a478
test al, al
je 0x5848b7
mov byte [ebp - 0x1d], 1
cmp byte [ebp - 0x1d], 0
jne 0x584975
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x5b6a24]
call fcn.004ce6e8
test al, al
jne 0x584975
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
xor eax, eax
mov al, byte [ebp - 0x19]
call fcn.00507d48
mov byte [ebp - 0x1a], al
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x1a]
call fcn.0050738c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x5b6a48]
call fcn.004b2bc8
test al, al
jne 0x584971
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
xor eax, eax
mov al, byte [ebp - 0x19]
call fcn.00507d70
mov byte [ebp - 0x1a], al
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x1a]
call fcn.0050738c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x5b6a48]
call fcn.004b2bc8
test al, al
je 0x584975
mov byte [ebp - 0x1c], 1
jmp 0x584975
mov byte [ebp - 0x1c], 1
cmp byte [ebp - 0x1c], 0
je 0x5849b2
mov eax, dword [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 0x1a]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov dx, 0xbc3
call fcn.004f7fcc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ab3a4]
mov dword [edx], eax
jmp 0x584bdd
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x10]
call fcn.00507510
mov byte [ebp - 0x1b], al
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov al, byte [eax + 0x10]
cmp al, byte [ebp - 0x1b]
je 0x584a17
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 0x1b]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov dx, 0xbc2
call fcn.004f7e3c
mov eax, dword [0x5ab81c]
mov dword [eax], 0xffffffff
jmp 0x584bdd
mov eax, dword [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 0x19]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov dx, 0xbc3
call fcn.004f7fcc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ab3a4]
mov dword [edx], eax
jmp 0x584bdd
mov eax, dword [0x5ab81c]
mov dword [eax], 0xffffffff
jmp 0x584bdd
mov eax, dword [0x5ac1b0]
cmp byte [eax], 0
jne 0x584a86
mov eax, dword [0x5ac0fc]
cmp dword [eax], 1
jl 0x584bd1
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
call fcn.004f92d0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00507354
cmp eax, 2
jl 0x584b5c
cmp dword [ebp - 0x18], 0
jle 0x584b5c
xor ecx, ecx
mov cl, byte [ebp - 0x19]
mov edx, 0xbc5
mov eax, dword [ebp - 4]
call fcn.0058fd1c
test al, al
je 0x584b4c
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x19]
call fcn.00507448
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov edx, dword [eax + 8]
mov eax, dword [0x5b6a24]
call fcn.004ce4c8
test al, al
je 0x584b3f
mov eax, dword [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 0x19]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov dx, 0xbc5
call fcn.004f7fcc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ab3a4]
mov dword [edx], eax
jmp 0x584bdd
mov eax, dword [0x5abe74]
mov byte [eax], 0
jmp 0x5847b5
mov eax, dword [0x5ab81c]
mov dword [eax], 0xffffffff
jmp 0x584bdd
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x10]
call fcn.00507510
mov byte [ebp - 0x1b], al
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov al, byte [eax + 0x10]
cmp al, byte [ebp - 0x1b]
je 0x584bc1
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 0x1b]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov dx, 0xbc2
call fcn.004f7e3c
mov eax, dword [0x5ab81c]
mov dword [eax], 0xffffffff
jmp 0x58480e
mov eax, dword [0x5ac0fc]
inc dword [eax]
jmp 0x58480e
mov eax, dword [0x5ab81c]
mov dword [eax], 0xffffffff
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
cmp dword [eax + 0x2ec], 0
jle 0x584d2f
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2ec]
mov edx, dword [ebp - 4]
mov dword [edx + 0x3ac], eax
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x3b0], eax
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
cmp dword [eax + 0x2ec], 0xbc9
jne 0x584c89
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f4]
push eax
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
push eax
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2fc]
push eax
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov ecx, dword [eax + 0x2f0]
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov edx, dword [eax + 0x2ec]
mov eax, dword [ebp - 4]
call fcn.0058d000
jmp 0x584cc7
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f4]
push eax
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
push eax
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov ecx, dword [eax + 0x2f0]
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
mov edx, dword [eax + 0x2ec]
mov eax, dword [ebp - 4]
call fcn.0058cf54
mov eax, dword [0x5ab6c4]
mov eax, dword [eax]
xor edx, edx
mov dword [eax + 0x2ec], edx
mov eax, dword [0x5abd90]
cmp dword [eax], 0xffffffff
je 0x584d2f
mov eax, dword [0x5abd90]
mov eax, dword [eax]
mov edx, dword [0x5ab6c4]
mov edx, dword [edx]
sub eax, dword [edx + 8]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x584d18
mov eax, dword [0x5abc38]
mov eax, dword [eax]
mov edx, dword [0x5ab6c4]
mov edx, dword [edx]
sub eax, dword [edx + 0xc]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jl 0x584d2f
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
call fcn.00534630
mov eax, dword [0x5abd90]
mov dword [eax], 0xffffffff
mov esp, ebp
pop ebp
ret