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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a9408
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x748068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x52fd13
cmp dword [ebx + 0x104], 0
jne 0x52fcf3
call edi
mov dword [ebx + 0x104], eax
call edi
sub eax, dword [ebx + 0x104]
cmp eax, 0x1388
jbe 0x52fd13
push 1
mov ecx, esi
call fcn.00532620
call edi
mov dword [ebx + 0x104], eax
cmp byte [ebx + 0x100], 0
mov ecx, dword [ebx + 0xc]
jne 0x52fd28
test ecx, ecx
je 0x52fd28
mov eax, dword [ecx]
call dword [eax + 0x1c]
call edi
sub eax, dword [ebp - 0x2c]
cmp eax, 0xc8
jae 0x52fe15
mov eax, dword [ebx + 0xf8]
mov esi, dword [eax]
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x52fe15
nop dword [eax + eax]
lea edi, [esi + 8]
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, 0xc8
jae 0x52fe15
mov ebx, dword [ebx + 0xec]
test ebx, ebx
je 0x52fe59
mov edx, dword [edi]
lea edi, [ebx + 0x94]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x18], edi
test edi, edi
je 0x52fda1
mov eax, dword [edi]
test eax, eax
je 0x52fda1
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x4c]
cmp eax, ecx
je 0x52fe37
cmp dword [eax], edx
je 0x52fdc5
add eax, 0x148
cmp eax, ecx
jne 0x52fdb6
jmp 0x52fe37
mov eax, dword [eax + 0x12c]
test eax, eax
je 0x52fe37
mov eax, dword [eax + 8]
test eax, eax
je 0x52fe37
cmp byte [eax + 8], 0
je 0x52fe31
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x52fdfe
mov eax, dword [eax]
test eax, eax
je 0x52fdf7
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
mov esi, dword [esi]
mov dword [ebp - 0x14], esi
cmp esi, dword [ebx + 0xf8]
jne 0x52fd50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064fb08
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x52fe56
mov eax, dword [edi]
test eax, eax
je 0x52fe4f
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx + 0xe8]
test ebx, ebx
je 0x52ff26
mov edx, dword [edi]
lea edi, [ebx + 0x104]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x52fe93
mov eax, dword [edi]
test eax, eax
je 0x52fe93
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 4], 1
mov eax, dword [ebx + 0x108]
mov ecx, dword [ebx + 0x10c]
cmp eax, ecx
je 0x52ff07
nop word [eax + eax]
cmp dword [eax], edx
je 0x52febf
add eax, 0x138
cmp eax, ecx
jne 0x52feb0
jmp 0x52ff07
mov eax, dword [eax + 0x120]
test eax, eax
je 0x52ff07
mov eax, dword [eax + 8]
test eax, eax
je 0x52ff07
cmp byte [eax + 8], 0
je 0x52ff01
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x52fdfe
mov eax, dword [eax]
test eax, eax
je 0x52fef5
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x1c], 0
jmp 0x52fdfe
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x52ff26
mov eax, dword [edi]
test eax, eax
je 0x52ff1f
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.0052ff80
test al, al
je 0x52fe04
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [eax], edi
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x24]
dec dword [ebx + 0xfc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.0052cec0
push pe_nt_image_headers32
push esi
call fcn.0064fde3
add esp, 8
mov esi, edi
jmp 0x52fe06