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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x595184
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x595579
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x326]
sub al, 2
jae 0x5951cd
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0056b88c
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
add eax, 0x320
call fcn.00414afc
jmp 0x595201
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x31c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x344]
jb 0x5951f3
mov eax, dword [ebp - 4]
add eax, 0x320
call fcn.0041470c
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x31c], eax
movzx eax, word [ebx]
sub ax, 8
je 0x59524d
dec ax
je 0x59521e
sub ax, 0x12
jne 0x5953d0
jmp 0x59552d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x319], 0
je 0x59552d
mov eax, dword [ebp - 4]
call fcn.00593458
test al, al
je 0x59552d
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0059347c
jmp 0x59552d
push ebp
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.00595090
pop ecx
test al, al
je 0x595270
push ebp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.005950d4
pop ecx
jmp 0x5953ba
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x326]
sub al, 2
jae 0x595376
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0056b88c
mov eax, dword [ebp - 0x38]
call fcn.00414be4
test eax, eax
jle 0x595376
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0056b88c
mov esi, dword [ebp - 0x10]
jmp 0x5952ae
dec esi
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.00437064
cmp al, 2
je 0x5952ad
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00415764
push 0
push 0xffffffffffffffff
push 0x14e
mov eax, dword [ebp - 4]
call fcn.0057544c
push eax
call fcn.006c4fb6
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 0x14]
inc edx
mov ecx, 0x7fffffff
mov eax, dword [ebp - 0xc]
call fcn.00415764
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 8]
call fcn.004155f4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0056b8dc
mov edi, esi
dec edi
mov edx, edi
mov eax, edi
call fcn.0041f9e4
push eax
push 0
push 0x142
mov eax, dword [ebp - 4]
call fcn.0057544c
push eax
call fcn.006c4fb6
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.0056b88c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
add eax, 0x320
call fcn.00414afc
jmp 0x5953ba
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
call fcn.00414be4
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x320
mov ecx, 1
call fcn.004157ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
call fcn.00414be4
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
call fcn.00437064
cmp al, 2
je 0x595354
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
call fcn.00414be4
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x320
mov ecx, 1
call fcn.004157ac
mov word [ebx], 0
mov eax, dword [ebp - 4]
mov si, 0xffad
call fcn.00412e08
jmp 0x59552d
push ebp
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.00595090
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x326], 2
jae 0x59545f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
call fcn.00414be4
cmp eax, dword [ebp - 0x10]
jle 0x59545f
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
mov ecx, dword [ebp - 0x10]
mov edx, 1
call fcn.00415764
push dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
movzx edx, word [ebx]
call fcn.004153b0
push dword [ebp - 0x4c]
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
call fcn.00414be4
mov ecx, eax
mov edx, dword [ebp - 0x14]
inc edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
call fcn.00415764
push dword [ebp - 0x50]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0041567c
jmp 0x59547e
lea eax, [ebp - 0x54]
movzx edx, word [ebx]
call fcn.004153b0
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x320]
lea eax, [ebp - 0xc]
call fcn.004155f4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x319], 0
je 0x5954a0
mov eax, dword [ebp - 4]
call fcn.00593458
test al, al
jne 0x5954a0
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0059347c
movzx eax, word [ebx]
call fcn.0042dc14
test al, al
je 0x595519
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0057544c
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.006c4f5c
test eax, eax
je 0x59552d
cmp dword [ebp - 0x2c], 0x102
jne 0x59552d
lea eax, [ebp - 0x5c]
movzx edx, word [ebp - 0x28]
call fcn.004153b0
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0xc]
call fcn.004155f4
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.00595588
test al, al
je 0x59552d
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0057544c
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.006c4f5c
mov word [ebx], 0
jmp 0x59552d
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00595588
test al, al
je 0x59552d
mov word [ebx], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x595580
lea eax, [ebp - 0x5c]
mov edx, 6
call fcn.0041476c
lea eax, [ebp - 0x44]
call fcn.0041470c
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0041476c
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0041476c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0041476c
pop eax
jmp eax