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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor edx, edx
push ebp
push 0x5209b3
push dword fs:[edx]
mov dword fs:[edx], esp
fld dword [ebp + 8]
fcomp dword [0x5209cc]
fnstsw ax
sahf
jae 0x5205be
xor eax, eax
mov dword [ebp + 8], eax
mov byte [ebp - 1], 0
test esi, esi
jne 0x5205d3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5209bd
xor edi, edi
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebx + 0xee]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0xf2]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0xf6]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
cmp byte [ebx + 0x6c], 0
jne 0x520628
cmp byte [ebx + 0x6d], 0
je 0x520628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5209bd
cmp dword [ebx + 0xc9], 1
jae 0x52063e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5209bd
mov edx, esi
mov eax, ebx
call fcn.0051ffac
test al, al
jne 0x520658
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5209bd
cmp esi, dword [ebx + 0x142]
je 0x52066d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5209bd
lea ecx, [ebp - 0x20]
mov eax, dword [0x55d330]
mov edx, dword [eax + 0xec]
add edx, esi
mov eax, ebx
call fcn.0053e0cc
lea edx, [ebx + 0xee]
lea eax, [ebp - 0x20]
call fcn.0054321c
fstp dword [ebp - 0x14]
wait
fld dword [ebp + 8]
fadd dword [0x5209d0]
fcomp dword [ebp - 0x14]
fnstsw ax
sahf
jb 0x5206b8
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5209bd
cmp byte [ebx + 0xed], 1
je 0x5207b0
inc edi
cmp edi, 3
jle 0x5206d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5209bd
fld dword [ebp + 8]
fsub dword [0x5209d0]
add esp, 0xfffffffc
fstp dword [esp]
wait
lea ecx, [ebp - 0x38]
mov edx, esi
mov eax, ebx
call fcn.005202ac
fld dword [ebp - 0x38]
fcomp dword [0x5209cc]
fnstsw ax
sahf
jne 0x52071d
fld dword [ebp - 0x30]
fcomp dword [0x5209cc]
fnstsw ax
sahf
jne 0x52071d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5209bd
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push ebx
call fcn.00541800
mov ecx, 0x1f4
mov edx, 1
mov eax, ebx
call fcn.0051ee98
test al, al
jne 0x520903
fld dword [ebp + 8]
fsub dword [0x5209d4]
add esp, 0xfffffffc
fstp dword [esp]
wait
lea ecx, [ebp - 0x38]
mov edx, esi
mov eax, ebx
call fcn.005202ac
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push ebx
call fcn.00541800
mov ecx, 0x1f4
mov edx, 1
mov eax, ebx
call fcn.0051ee98
test al, al
jne 0x520903
fld dword [ebp + 8]
fsub dword [0x5209d8]
add esp, 0xfffffffc
fstp dword [esp]
wait
lea ecx, [ebp - 0x38]
mov edx, esi
mov eax, ebx
call fcn.005202ac
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push ebx
call fcn.00541800
jmp 0x520903
fld dword [ebp - 0x20]
call fcn.00403204
push edx
push eax
fld dword [ebp - 0x2c]
call fcn.00403204
cmp edx, dword [esp + 4]
jne 0x5207cb
cmp eax, dword [esp]
pop edx
pop eax
jne 0x5207f2
fld dword [ebp - 0x18]
call fcn.00403204
push edx
push eax
fld dword [ebp - 0x24]
call fcn.00403204
cmp edx, dword [esp + 4]
jne 0x5207ea
cmp eax, dword [esp]
pop edx
pop eax
je 0x520903
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
lea edx, [ebx + 0xee]
lea eax, [ebp - 0x20]
call fcn.0054321c
fstp dword [ebp - 0x14]
wait
fld dword [ebp + 8]
fadd dword [0x5209d0]
fcomp dword [ebp - 0x14]
fnstsw ax
sahf
jb 0x520838
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5209bd
fld dword [ebp + 8]
fsub dword [0x5209d0]
add esp, 0xfffffffc
fstp dword [esp]
wait
lea ecx, [ebp - 0x38]
mov edx, esi
mov eax, ebx
call fcn.005202ac
fld dword [ebp - 0x38]
fcomp dword [0x5209cc]
fnstsw ax
sahf
jne 0x52087d
fld dword [ebp - 0x30]
fcomp dword [0x5209cc]
fnstsw ax
sahf
jne 0x52087d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5209bd
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push ebx
call fcn.00541800
mov ecx, 0x1f4
mov edx, 1
mov eax, ebx
call fcn.0051ee98
test al, al
jne 0x520903
fld dword [ebp + 8]
fsub dword [0x5209d4]
add esp, 0xfffffffc
fstp dword [esp]
wait
lea ecx, [ebp - 0x38]
mov edx, esi
mov eax, ebx
call fcn.005202ac
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push ebx
call fcn.00541800
mov ecx, 0x1f4
mov edx, 1
mov eax, ebx
call fcn.0051ee98
test al, al
jne 0x520903
fld dword [ebp + 8]
fsub dword [0x5209d8]
add esp, 0xfffffffc
fstp dword [esp]
wait
lea ecx, [ebp - 0x38]
mov edx, esi
mov eax, ebx
call fcn.005202ac
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push ebx
call fcn.00541800
fld dword [ebp - 0x44]
call fcn.00403204
push edx
push eax
fld dword [ebx + 0xee]
call fcn.00403204
cmp edx, dword [esp + 4]
jne 0x520921
cmp eax, dword [esp]
pop edx
pop eax
jne 0x520947
fld dword [ebp - 0x3c]
call fcn.00403204
push edx
push eax
fld dword [ebx + 0xf6]
call fcn.00403204
cmp edx, dword [esp + 4]
jne 0x520943
cmp eax, dword [esp]
pop edx
pop eax
je 0x520971
mov eax, dword [ebx + 0xee]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0xf2]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0xf6]
mov dword [ebp - 0x3c], eax
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x52099c
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, 0
jne 0x52098c
cmp eax, 0xbb8
jbe 0x52099c
jmp 0x52098e
jle 0x52099c
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5209bd
push 0xc8
call sub.kernel32.dll_Sleep_1
jmp 0x52060f
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4