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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x20]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ebx, eax
lea eax, [ebp - 0x20]
mov edx, dword [0x48a294]
call fcn.00405fdc
xor eax, eax
push ebp
push 0x59d775
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x3b8], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x3bc], eax
cmp dword [ebp - 0x20], 0x139e
jne 0x59cfc7
mov byte [ebx + 0x31], 0
xor eax, eax
mov dword [ebx + 0x34], eax
mov byte [ebx + 0x38], 0
cmp byte [ebx + 0x31], 0
jne 0x59d6ee
mov eax, dword [ebp - 0x20]
cmp eax, 0x139e
jg 0x59cff7
je 0x59d00e
add eax, 0xffffec77
sub eax, 2
jb 0x59d00e
dec eax
sub eax, 3
jb 0x59d00e
dec eax
je 0x59d00e
sub eax, 7
je 0x59d00e
jmp 0x59d02e
sub eax, 0x1480
je 0x59d00e
add eax, 0xffffffd1
sub eax, 2
jb 0x59d00e
add eax, 0xffffffc7
sub eax, 2
jae 0x59d02e
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x2c], eax
test al, 1
je 0x59d027
mov byte [ebx + 0x1ec], 1
jmp 0x59d02e
mov byte [ebx + 0x1ec], 0
mov eax, dword [0x688a9c]
cmp ebx, dword [eax]
jne 0x59d5e2
cmp dword [ebp - 0x20], 2
jne 0x59d05b
mov eax, dword [0x688350]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
call fcn.0052c0b4
test al, al
je 0x59d759
cmp dword [ebp - 0x20], 4
jne 0x59d091
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x688350]
mov eax, dword [eax]
call fcn.0052bdcc
test al, al
je 0x59d759
cmp dword [ebp - 0x20], 5
jne 0x59d0c7
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov eax, dword [0x688a9c]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x688350]
mov eax, dword [eax]
call fcn.0052bc64
test al, al
je 0x59d759
mov eax, dword [ebp - 0x20]
cmp eax, 0x8f
ja case.0x59d0dc.0
movzx eax, byte [eax + 0x59d0e3]
jmp dword [eax*4 + 0x59d173]
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x138d
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x138e
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x138f
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x1390
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14b0
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x1391
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x1392
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x1393
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x1395
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14fa
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x1396
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14fb
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x139b
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14fc
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov eax, dword [0x688628]
cmp byte [eax], 0
je 0x59d3d5
mov dword [ebp - 0x20], 0x14e8
jmp case.0x59d0dc.0
mov dword [ebp - 0x20], 0x14e9
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x1480
jmp case.0x59d0dc.0
cmp dword [ebx + 0x24], 0
je 0x59d42b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x15c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x160], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebx + 0x164], eax
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x147b
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x138b
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14f9
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x139c
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x139d
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14a9
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14aa
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14ab
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14ac
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14ad
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14ae
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14fd
jmp case.0x59d0dc.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a294]
call fcn.004060fc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebx + 0x3d4], eax
mov dword [ebp - 0x20], 0x1394
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x3ac], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x3b0], eax
movzx eax, byte [ebx + 0x14]
mov dword [ebx + 0x3b4], eax
mov eax, dword [ebp - 0x20]
sub eax, 0x1394
je 0x59d63b
sub eax, 0xe
jne 0x59d680
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x258], eax
movzx eax, word [ebx + 0x59]
lea eax, [eax + eax*4]
mov edx, 0xc8
sub edx, eax
mov dword [ebp - 0x24], edx
fild dword [ebp - 0x24]
call fcn.004034fc
cmp eax, 0x50
jle 0x59d624
mov dword [ebx + 0x38c], eax
jmp 0x59d62e
mov dword [ebx + 0x38c], 0x50
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x24c], eax
jmp 0x59d6ad
movzx eax, byte [ebp - 0x14]
mov byte [ebx + 0x14], al
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x59d6ad
mov esi, eax
lea edi, [ebx + 0x1c4]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x1c4], 0xffffffff
mov edx, dword [ebp - 0x1c]
mov dword [ebx + 0x1d8], edx
mov edx, dword [ebp - 0x18]
mov dword [ebx + 0x1dc], edx
mov edx, 0x24
call fcn.00402f70
jmp 0x59d6ad
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x59d6ad
cmp dword [ebp - 0x18], 0
je 0x59d6ad
cmp eax, 0x3e8
jge 0x59d6ad
cmp dword [ebp - 0x18], 0x3e8
jge 0x59d6ad
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x10], eax
movzx eax, byte [ebp - 0x14]
mov byte [ebx + 0x14], al
mov eax, dword [ebp - 0x20]
cmp eax, 0x14af
je 0x59d6be
cmp eax, 0x138c
jne 0x59d6cf
movzx eax, byte [ebp - 0x14]
mov byte [ebx + 0x14], al
movzx eax, word [ebp - 0x14]
shr eax, 8
mov byte [ebx + 0x30], al
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x22c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x230], eax
mov eax, ebx
mov si, 0xffff
call fcn.00404528
jmp 0x59d70d
mov eax, dword [ebp - 0x20]
cmp eax, 0x13a4
jne 0x59d70d
mov dword [ebx + 0x22c], eax
mov eax, ebx
mov si, 0xffff
call fcn.00404528
mov byte [ebx + 0x38], 1
mov eax, dword [ebp - 0x20]
cmp eax, 0x13a3
je 0x59d71e
cmp eax, 0x13a5
jne 0x59d74e
mov byte [ebx + 0x31], 1
cmp dword [ebx + 0x34], 0
jne 0x59d740
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x34], eax
cmp dword [ebp - 0x20], 0x13a3
jne 0x59d740
sub dword [ebx + 0x34], 0x640
mov eax, dword [0x688350]
mov eax, dword [eax]
mov edx, ebx
call fcn.0052d7c4
mov eax, ebx
mov si, 0xfff5
call fcn.00404528
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d77c
lea eax, [ebp - 0x20]
mov edx, dword [0x48a294]
call fcn.00405e98
ret