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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov ebx, eax
cmp byte [ebx + 0x14], 0
je 0x59e0e9
mov eax, dword [0x68fdf8]
cmp dword [eax], 0
jne 0x59e0cb
mov eax, ebx
call fcn.0059d4d0
mov eax, dword [0x68fdf8]
cmp dword [eax], 0
je 0x59e0e9
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
cmp byte [eax + 0x4d], 0
je 0x59e0e9
mov eax, ebx
call fcn.0059d4d0
cmp byte [ebx + 0x14], 0
je 0x59e473
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x18]
cmp eax, 0xc8
jbe 0x59e473
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x18], eax
mov eax, dword [0x68f6f8]
mov eax, dword [eax]
mov edx, dword [ebx + 4]
call fcn.0052c8ec
test al, al
jne 0x59e126
xor eax, eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
test esi, esi
je 0x59e13f
mov edx, esi
mov eax, ebx
call fcn.0059db98
test al, al
jne 0x59e13f
xor eax, eax
mov dword [ebx + 4], eax
cmp dword [ebx + 4], 0
jne 0x59e14c
mov eax, ebx
call fcn.0059dc54
mov eax, dword [ebx + 4]
test eax, eax
je 0x59e339
or esi, 0xffffffff
mov edx, dword [0x68fdf8]
mov edx, dword [edx]
cmp byte [edx + 0x39], 0
jbe 0x59e32c
mov eax, dword [0x68fc5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x650]
call fcn.0048de1c
test eax, eax
jl 0x59e1da
mov eax, dword [0x68fc5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x650]
mov eax, dword [eax + 0x388]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edi, eax
mov eax, dword [0x68fc5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x650]
call fcn.0048de1c
cmp edi, eax
jle 0x59e1da
mov eax, dword [0x68fc5c]
mov eax, dword [eax]
mov esi, dword [eax + 0x650]
mov eax, esi
call fcn.0048de1c
mov edx, eax
mov eax, dword [0x68fc5c]
mov eax, dword [esi + 0x388]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
jl 0x59e2bb
cmp esi, 0x7d
jg 0x59e2bb
imul eax, esi, 0xb7
mov edx, dword [0x68fac4]
cmp byte [edx + eax*2], 0
je 0x59e2bb
mov eax, dword [0x68f8d4]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x68fee8]
mov edx, dword [ebx + 4]
mov dword [eax], edx
mov edx, dword [0x690300]
push edx
mov edx, dword [0x6901a8]
push edx
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [0x68f6f8]
mov eax, dword [eax]
call fcn.0052ba6c
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x1c]
cmp eax, 0x3e8
jbe 0x59e28a
mov eax, dword [0x68fc2c]
mov eax, dword [eax]
cmp dword [eax + 0x40c], 0
jne 0x59e28a
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x1c], eax
imul eax, esi, 0xb7
mov edx, dword [0x68fac4]
lea eax, [edx + eax*2]
push eax
mov ecx, dword [0x6901a8]
mov ecx, dword [ecx]
mov edx, dword [0x690300]
mov edx, dword [edx]
mov eax, dword [0x68fc2c]
mov eax, dword [eax]
call fcn.00504c70
push 2
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, ebx
call fcn.0059db04
test eax, eax
jle 0x59e473
mov eax, ebx
call fcn.0059de0c
jmp 0x59e473
mov esi, dword [ebx + 4]
mov eax, dword [esi + 0x10]
push eax
mov ecx, dword [esi + 0xc]
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
call fcn.005b5e80
movzx eax, al
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
push ecx
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0xc]
mov edx, dword [edx + 0x10]
xchg ecx, eax
call fcn.005b5fe0
push 1
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, ebx
call fcn.0059d784
test al, al
je 0x59e31e
mov eax, dword [0x68f8d4]
mov edx, dword [ebx + 4]
mov dword [eax], edx
jmp 0x59e473
mov eax, dword [0x68f8d4]
xor edx, edx
mov dword [eax], edx
jmp 0x59e473
mov edx, dword [0x68f8d4]
mov dword [edx], eax
jmp 0x59e473
mov eax, dword [0x68fee0]
cmp dword [eax], 0
jle 0x59e403
mov eax, dword [0x68fdd4]
cmp dword [eax], 0
jle 0x59e403
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov edx, dword [0x68fee0]
sub eax, dword [edx]
cdq
xor eax, edx
sub eax, edx
dec eax
jge 0x59e473
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edx, dword [0x68fdd4]
sub eax, dword [edx]
cdq
xor eax, edx
sub eax, edx
dec eax
jge 0x59e473
lea ecx, [esp + 4]
mov edx, esp
mov eax, ebx
call fcn.0059da2c
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
sub eax, dword [esp]
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jge 0x59e3cd
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
sub eax, dword [esp + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jl 0x59e3d7
mov eax, dword [0x690450]
mov byte [eax], 1
jmp 0x59e3df
mov eax, dword [0x690450]
mov byte [eax], 0
mov eax, dword [0x68fee0]
mov edx, dword [esp]
mov dword [eax], edx
mov eax, dword [0x68fdd4]
mov edx, dword [esp + 4]
mov dword [eax], edx
mov eax, dword [esp]
mov dword [ebx + 8], eax
mov eax, dword [esp + 4]
mov dword [ebx + 0xc], eax
jmp 0x59e473
lea ecx, [esp + 4]
mov edx, esp
mov eax, ebx
call fcn.0059da2c
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
sub eax, dword [esp]
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jge 0x59e43f
mov eax, dword [0x68fdf8]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
sub eax, dword [esp + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jl 0x59e449
mov eax, dword [0x690450]
mov byte [eax], 1
jmp 0x59e451
mov eax, dword [0x690450]
mov byte [eax], 0
mov eax, dword [0x68fee0]
mov edx, dword [esp]
mov dword [eax], edx
mov eax, dword [0x68fdd4]
mov edx, dword [esp + 4]
mov dword [eax], edx
mov eax, dword [esp]
mov dword [ebx + 8], eax
mov eax, dword [esp + 4]
mov dword [ebx + 0xc], eax
add esp, 0x10
pop edi
pop esi
pop ebx
ret