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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51de7e
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x51de59
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebx + 0x5c1], 0
jne 0x51da52
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51de63
cmp byte [ebx + 0x5c8], 0
jne 0x51da68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51de63
mov eax, dword [ebx + 0x5d0]
call fcn.004060d8
dec eax
jge 0x51da83
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51de63
mov eax, dword [ebx + 0x5d8]
call fcn.004060d8
dec eax
test eax, eax
jl 0x51de4f
inc eax
mov dword [ebp - 0x18], eax
xor edi, edi
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
imul eax, edi, 0x91
mov edx, dword [ebx + 0x5d8]
lea esi, [edx + eax*2]
cmp byte [esi], 0
je 0x51de45
push dword [esi + 0x10d]
push dword [esi + 0x109]
imul eax, dword [esi + 1], 0x3e8
cdq
push edx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.005432d0
test al, al
jne 0x51daf4
cmp byte [esi + 0x121], 0
je 0x51daf4
xor eax, eax
jmp 0x51daf6
mov al, 1
test al, al
je 0x51de45
lea eax, [ebp - 0x20]
lea edx, [esi + 9]
mov ecx, pe_nt_image_headers32
call fcn.0040504c
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004096d8
cmp dword [ebp - 0x1c], 0
je 0x51de45
cmp dword [esi + 5], 1
jne 0x51dbbe
push dword [esi + 0x10d]
push dword [esi + 0x109]
push 0
push 0x7d0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.005432d0
test al, al
je 0x51de45
imul eax, edi, 0x91
mov edx, dword [ebx + 0x5d8]
mov eax, dword [edx + eax*2 + 0x119]
shl eax, 2
mov edx, dword [ebx + 0x5d0]
mov eax, dword [edx + eax*8 - 0x18]
push eax
push 0
lea eax, [ebp - 0x24]
lea edx, [esi + 9]
mov ecx, pe_nt_image_headers32
call fcn.0040504c
mov eax, dword [ebp - 0x24]
push eax
push ebx
call fcn.00532474
test al, al
je 0x51dbb2
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x109], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x10d], eax
mov byte [esi + 0x121], 1
jmp 0x51de3e
mov byte [esi + 0x121], 0
jmp 0x51de3e
lea eax, [ebp - 0x28]
lea edx, [esi + 9]
mov ecx, pe_nt_image_headers32
call fcn.0040504c
mov eax, dword [ebp - 0x28]
push eax
push ebx
call fcn.00520050
cmp eax, 0x270f
je 0x51de45
mov edx, eax
shl edx, 4
add edx, eax
mov ecx, dword [ebx + 0x11e]
mov edx, dword [ecx + edx*4 + 0x28]
cmp edx, dword [ebx + 0xcd]
ja 0x51de45
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebx + 0x11e]
mov eax, dword [edx + eax*4 + 0x34]
mov dword [ebp - 0x14], eax
call sub.kernel32.dll_GetTickCount_1
cmp eax, dword [ebp - 0x14]
jb 0x51de45
mov eax, dword [esi + 0x119]
shl eax, 2
mov edx, dword [ebx + 0x5d0]
cmp dword [edx + eax*8 - 0x1c], 0
jne 0x51dce2
imul eax, edi, 0x91
mov edx, dword [ebx + 0x5d8]
inc dword [edx + eax*2 + 0x119]
imul eax, edi, 0x91
mov edx, dword [ebx + 0x5d8]
cmp dword [edx + eax*2 + 0x119], 1
jne 0x51dc77
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x111], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x115], eax
mov eax, dword [ebx + 0x5d0]
call fcn.004060d8
imul edx, edi, 0x91
mov ecx, dword [ebx + 0x5d8]
cmp eax, dword [ecx + edx*2 + 0x119]
jne 0x51dcaf
mov eax, dword [esi + 0x111]
mov dword [esi + 0x109], eax
mov eax, dword [esi + 0x115]
mov dword [esi + 0x10d], eax
mov eax, dword [ebx + 0x5d0]
call fcn.004060d8
imul edx, edi, 0x91
mov ecx, dword [ebx + 0x5d8]
cmp eax, dword [ecx + edx*2 + 0x119]
jge 0x51de45
mov dword [esi + 0x119], 1
jmp 0x51de45
mov eax, edi
shl eax, 2
mov edx, dword [ebx + 0x5d0]
mov edx, dword [edx + eax*8 + 4]
mov eax, dword [0x55d330]
add edx, dword [eax + 0xec]
sub edx, 0x3c
mov eax, ebx
call fcn.00541a04
imul edx, edi, 0x91
mov ecx, dword [ebx + 0x5d8]
mov edx, dword [ecx + edx*2 + 0x119]
shl edx, 2
mov ecx, dword [ebx + 0x5d0]
cmp eax, dword [ecx + edx*8 - 0x18]
jne 0x51de45
push 0
push 0
push 0
imul eax, edi, 0x91
mov edx, dword [ebx + 0x5d8]
mov eax, dword [edx + eax*2 + 0x119]
shl eax, 2
mov edx, dword [ebx + 0x5d0]
mov eax, dword [edx + eax*8 - 0x18]
push eax
lea eax, [ebp - 0x2c]
lea edx, [esi + 9]
mov ecx, pe_nt_image_headers32
call fcn.0040504c
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call fcn.00532848
cmp eax, 3
jae 0x51dd8d
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x109], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x10d], eax
mov byte [esi + 0x121], 1
jmp 0x51dd94
mov byte [esi + 0x121], 0
cmp byte [esi + 0x121], 0
je 0x51de3e
imul eax, edi, 0x91
mov edx, dword [ebx + 0x5d8]
inc dword [edx + eax*2 + 0x119]
imul eax, edi, 0x91
mov edx, dword [ebx + 0x5d8]
cmp dword [edx + eax*2 + 0x119], 1
jne 0x51dddc
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x111], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x115], eax
mov eax, dword [ebx + 0x5d0]
call fcn.004060d8
imul edx, edi, 0x91
mov ecx, dword [ebx + 0x5d8]
cmp eax, dword [ecx + edx*2 + 0x119]
jne 0x51de14
mov eax, dword [esi + 0x111]
mov dword [esi + 0x109], eax
mov eax, dword [esi + 0x115]
mov dword [esi + 0x10d], eax
mov eax, dword [ebx + 0x5d0]
call fcn.004060d8
imul edx, edi, 0x91
mov ecx, dword [ebx + 0x5d8]
cmp eax, dword [ecx + edx*2 + 0x119]
jge 0x51de3e
mov dword [esi + 0x119], 1
push 0x64
call sub.kernel32.dll_Sleep_1
inc edi
dec dword [ebp - 0x18]
jne 0x51da9d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51de63
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51de85
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.00404e00
ret