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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x521158
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
call fcn.0047944c
xor eax, eax
push ebp
push 0x52112e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0xc]
jle 0x521112
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
mov edx, dword [ebp - 0xc]
call fcn.004195b0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xc], 0x28
jl 0x520a6e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
mov edx, dword [ebp - 0xc]
call fcn.00419434
mov edx, 0x10
mov eax, dword [ebp - 0x14]
call fcn.00402b08
inc dword [ebp - 0xc]
jmp 0x520a19
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
cmp eax, 6
ja case.default.0x520a7d
jmp dword [eax*4 + 0x520a84]
mov eax, dword [0x53f164]
mov eax, dword [eax]
mov edx, 0x2a
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je case.default.0x520a7d
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0046df40
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc4]
sub ecx, 0x19
mov eax, dword [ebp - 0x14]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x14]
sub edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.0046e108
jmp case.default.0x520a7d
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x53f164]
mov eax, dword [eax]
mov edx, 0x11
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x520b58
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0046df40
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc4]
sub ecx, 0xa
mov eax, dword [ebp - 0x14]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.0046e108
mov eax, dword [ebx + 8]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
call fcn.0040974c
mov eax, dword [ebp - 0x18]
call fcn.0040500c
mov esi, eax
test esi, esi
jle case.default.0x520a7d
mov edi, 1
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + edi - 1]
call fcn.00404f24
mov eax, dword [ebp - 0x2c]
call fcn.004098b8
mov edx, eax
add edx, 6
mov eax, dword [0x53f164]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x520bef
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0046df40
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc4]
sub ecx, 0xa
mov eax, dword [ebp - 0x14]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0046e108
mov eax, dword [ebx + 8]
add dword [ebp - 0x10], eax
inc edi
dec esi
jne 0x520b7d
jmp case.default.0x520a7d
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x53f164]
mov eax, dword [eax]
mov edx, 0x10
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x520c58
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0046df40
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc4]
sub ecx, 0xa
mov eax, dword [ebp - 0x14]
sub ecx, dword [eax + 0xc]
add ecx, 4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.0046e108
mov eax, dword [ebx + 8]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
call fcn.0040974c
mov eax, dword [ebp - 0x18]
call fcn.0040500c
mov esi, eax
test esi, esi
jle case.default.0x520a7d
mov edi, 1
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + edi - 1]
call fcn.00404f24
mov eax, dword [ebp - 0x30]
call fcn.004098b8
mov edx, eax
add edx, 6
mov eax, dword [0x53f164]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x520cef
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0046df40
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc4]
sub ecx, 0xa
mov eax, dword [ebp - 0x14]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0046e108
mov eax, dword [ebx + 8]
add dword [ebp - 0x10], eax
inc edi
dec esi
jne 0x520c7d
jmp case.default.0x520a7d
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x53f164]
mov eax, dword [eax]
mov edx, 0x1d
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x520d55
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0046df40
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc4]
sub ecx, 0xa
mov eax, dword [ebp - 0x14]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.0046e108
mov eax, dword [ebx + 8]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
call fcn.0040974c
mov eax, dword [ebp - 0x18]
call fcn.0040500c
mov esi, eax
test esi, esi
jle case.default.0x520a7d
mov edi, 1
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + edi - 1]
call fcn.00404f24
mov eax, dword [ebp - 0x34]
call fcn.004098b8
mov edx, eax
add edx, 0x12
mov eax, dword [0x53f164]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x520dec
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0046df40
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc4]
sub ecx, 0xa
mov eax, dword [ebp - 0x14]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0046e108
mov eax, dword [ebx + 8]
add dword [ebp - 0x10], eax
inc edi
dec esi
jne 0x520d7a
jmp case.default.0x520a7d
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x53f164]
mov eax, dword [eax]
mov edx, 0x1c
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x520e55
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0046df40
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc4]
sub ecx, 0xa
mov eax, dword [ebp - 0x14]
sub ecx, dword [eax + 0xc]
add ecx, 4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.0046e108
mov eax, dword [ebx + 8]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
call fcn.0040974c
mov eax, dword [ebp - 0x18]
call fcn.0040500c
mov esi, eax
test esi, esi
jle case.default.0x520a7d
mov edi, 1
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + edi - 1]
call fcn.00404f24
mov eax, dword [ebp - 0x38]
call fcn.004098b8
mov edx, eax
add edx, 0x12
mov eax, dword [0x53f164]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x520eec
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0046df40
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc4]
sub ecx, 0xa
mov eax, dword [ebp - 0x14]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0046e108
mov eax, dword [ebx + 8]
add dword [ebp - 0x10], eax
inc edi
dec esi
jne 0x520e7a
jmp case.default.0x520a7d
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x53f164]
mov eax, dword [eax]
mov edx, 0x29
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x520f52
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0046df40
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc4]
sub ecx, 0xa
mov eax, dword [ebp - 0x14]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.0046e108
mov eax, dword [ebx + 8]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
call fcn.0040974c
mov eax, dword [ebp - 0x18]
call fcn.0040500c
mov esi, eax
test esi, esi
jle case.default.0x520a7d
mov edi, 1
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + edi - 1]
call fcn.00404f24
mov eax, dword [ebp - 0x3c]
call fcn.004098b8
mov edx, eax
add edx, 0x1e
mov eax, dword [0x53f164]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x520fe9
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0046df40
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc4]
sub ecx, 0xa
mov eax, dword [ebp - 0x14]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0046e108
mov eax, dword [ebx + 8]
add dword [ebp - 0x10], eax
inc edi
dec esi
jne 0x520f77
jmp case.default.0x520a7d
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x53f164]
mov eax, dword [eax]
mov edx, 0x28
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x521052
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0046df40
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc4]
sub ecx, 0xa
mov eax, dword [ebp - 0x14]
sub ecx, dword [eax + 0xc]
add ecx, 4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.0046e108
mov eax, dword [ebx + 8]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
call fcn.0040974c
mov eax, dword [ebp - 0x18]
call fcn.0040500c
mov esi, eax
test esi, esi
jle case.default.0x520a7d
mov edi, 1
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + edi - 1]
call fcn.00404f24
mov eax, dword [ebp - 0x40]
call fcn.004098b8
mov edx, eax
add edx, 0x1e
mov eax, dword [0x53f164]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x5210e5
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0046df40
lea eax, [ebp - 0x28]
push eax
push ebx
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc4]
sub ecx, 0xa
mov eax, dword [ebp - 0x14]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0xc]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0046e108
mov eax, dword [ebx + 8]
add dword [ebp - 0x10], eax
inc edi
dec esi
jne 0x521073
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x14]
sub eax, dword [edx + 8]
cmp eax, 0xa
jbe 0x52110a
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x14]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x14]
inc dword [eax + 0xc]
inc dword [ebp - 0xc]
jmp 0x520a19
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x521135
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
call fcn.00479458
ret