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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x55]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
push ebp
push 0x522113
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x55]
mov eax, ebx
call fcn.005218d0
test eax, eax
jne 0x521e78
mov byte [ebp - 1], 1
dec eax
je 0x521e88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52211d
mov eax, dword [ebx + 0x11e]
call fcn.004060d8
dec eax
jge 0x521eb1
mov dword [ebx + 0x31d80], 0
mov dword [ebx + 0x31d84], 0
mov eax, ebx
call fcn.00533540
mov esi, dword [ebx + 0x142]
test esi, esi
jne 0x521ec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52211d
mov eax, dword [ebx + 0x146]
mov dword [ebp - 0x2c], eax
call sub.kernel32.dll_GetTickCount_1
sub eax, 0x4e20
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
call sub.kernel32.dll_GetTickCount_1
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
call sub.kernel32.dll_GetTickCount_1
add eax, 0x2710
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebx + 0xee]
mov dword [ebp - 0x6d], eax
mov eax, dword [ebx + 0xf2]
mov dword [ebp - 0x69], eax
mov eax, dword [ebx + 0xf6]
mov dword [ebp - 0x65], eax
cmp byte [ebx + 0x6c], 0
jne 0x521f3b
cmp byte [ebx + 0x6d], 0
je 0x521f3b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52211d
cmp dword [ebx + 0x146], 0
je 0x521f64
cmp esi, dword [ebx + 0x142]
jne 0x521f64
mov edx, esi
mov eax, ebx
call fcn.0051ffac
test al, al
je 0x521f64
mov eax, dword [ebx + 0x146]
cmp eax, dword [ebp - 0x2c]
je 0x521f96
mov cl, 1
xor edx, edx
mov eax, ebx
call fcn.0052f488
xor eax, eax
mov dword [ebx + 0x142], eax
xor eax, eax
mov dword [ebx + 0x146], eax
mov byte [ebp - 1], 1
inc dword [ebx + 0x31de4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52211d
mov eax, dword [0x55d330]
mov edx, dword [eax + 0xec]
add edx, esi
mov eax, ebx
call fcn.00541a04
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x61]
mov eax, dword [0x55d330]
mov edx, dword [eax + 0x144]
add edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.0053e0cc
mov eax, dword [ebx + 0x11e]
push dword [eax + 0x1c]
mov cl, byte [ebx + 0x25d]
xor cl, 1
mov edx, esi
mov eax, ebx
call fcn.00521024
test al, al
jne 0x52201f
push ebx
call fcn.00540b10
push dword [ebx + 0xf6]
push dword [ebx + 0xee]
mov eax, dword [ebx + 0x1b7]
push eax
push ebx
call fcn.00541968
mov edx, dword [ebx + 0x146]
xor ecx, ecx
mov eax, ebx
call fcn.0052f488
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52211d
mov eax, dword [0x55d330]
mov edx, dword [eax + 0xdc]
add edx, esi
add edx, 0xcc
mov eax, ebx
call fcn.0053e9e4
mov edi, eax
cmp edi, dword [ebp - 0x34]
je 0x522055
mov dword [ebp - 0x34], edi
call sub.kernel32.dll_GetTickCount_1
add eax, 0x2710
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
cmp edx, dword [ebp - 0x24]
jne 0x522068
cmp eax, dword [ebp - 0x28]
jbe 0x52208c
jmp 0x52206a
jle 0x52208c
push ebx
call fcn.00540b10
mov edx, dword [ebx + 0x146]
xor ecx, ecx
mov eax, ebx
call fcn.0052f488
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52211d
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
cmp edx, 0
jne 0x5220a7
cmp eax, 0xea60
jbe 0x5220c8
jmp 0x5220a9
jle 0x5220c8
push ebx
call fcn.00540b10
mov edx, dword [ebx + 0x146]
xor ecx, ecx
mov eax, ebx
call fcn.0052f488
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52211d
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
cmp edx, 0
jne 0x5220e3
cmp eax, 0x258
jbe 0x5220ff
jmp 0x5220e5
jle 0x5220ff
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + 0x146]
push eax
push ebx
call fcn.0053fe54
push 0x32
call sub.kernel32.dll_Sleep_1
jmp 0x521f22
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret