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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525840
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x588eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 4]
cmp eax, 1
jne 0x4ce9e9
mov eax, dword [esi + 0x10]
shr eax, 0x19
test al, 1
je 0x4ce789
mov eax, dword [esi + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x19
mov dword [ebp - 0x24], 0
call fcn.004d2080
add esp, 4
push 0x58acb8
mov dword [ebp - 0x1c], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x18], 0x58acb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0xc]
mov dword [ebp - 4], 0
push dword [esi + 8]
push dword [0x58aca8]
call fcn.004d3050
add esp, 0xc
test eax, eax
je 0x4cebc9
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [eax - 8]
mov eax, dword [esi + 0x10]
shr eax, 4
test al, 1
je 0x4ce8b9
mov edx, dword [ebx + 0x34]
mov dword [ebp - 0x14], edx
call ecx
mov edi, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [ebx + 0x5c], eax
cmp edi, ecx
je 0x4ce896
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4ce805
cmp dword [edi + 0x14], eax
ja 0x4ce893
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push 0x58acb8
mov dword [eax], ecx
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi + 8]
push eax
call fcn.004d2080
add esp, 4
mov esi, eax
push 0x58acb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x4ce883
mov eax, dword [ebx + 0x34]
mov ecx, dword [edi + 0x14]
cmp eax, ecx
jb 0x4ce848
sub eax, ecx
mov dword [ebx + 0x34], eax
jmp 0x4ce84f
mov dword [ebx + 0x34], 0
mov esi, dword [edi + 0x14]
push 0
push edi
call fcn.004d3220
mov edx, dword [ebp - 0x14]
lea ecx, [ebx + 0x2c]
mov edi, dword [ecx]
mov eax, edx
sub eax, esi
mov dword [ebp - 0x14], 0
add esp, 8
cmp edx, esi
cmovb eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
cmp edi, ecx
jne 0x4ce7f8
jmp 0x4ce893
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [eax + 4], edi
mov dword [ecx], edi
mov esi, dword [ebp - 0x10]
test byte [ebx + 0xab], 2
jne 0x4ce8b3
cmp edi, ecx
jne 0x4ce8b3
push 4
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.004d21d0
add esp, 0xc
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 0x10]
shr eax, 5
test al, 1
je 0x4ce99e
mov edx, dword [ebx + 0x40]
mov dword [ebp - 0x14], edx
call ecx
mov edi, dword [ebx + 0x38]
lea ecx, [ebx + 0x38]
mov dword [ebx + 0x5c], eax
cmp edi, ecx
je 0x4ce981
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4ce8f0
cmp dword [edi + 0x14], eax
ja 0x4ce97e
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push 0x58acb8
mov dword [eax], ecx
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi + 8]
push eax
call fcn.004d2080
add esp, 4
mov esi, eax
push 0x58acb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x4ce96e
mov eax, dword [ebx + 0x40]
mov ecx, dword [edi + 0x14]
cmp eax, ecx
jb 0x4ce933
sub eax, ecx
mov dword [ebx + 0x40], eax
jmp 0x4ce93a
mov dword [ebx + 0x40], 0
mov esi, dword [edi + 0x14]
push 0
push edi
call fcn.004d3220
mov edx, dword [ebp - 0x14]
lea ecx, [ebx + 0x38]
mov edi, dword [ecx]
mov eax, edx
sub eax, esi
mov dword [ebp - 0x14], 0
add esp, 8
cmp edx, esi
cmovb eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
cmp edi, ecx
jne 0x4ce8e3
jmp 0x4ce97e
mov eax, dword [ebx + 0x38]
lea ecx, [ebx + 0x38]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [eax + 4], edi
mov dword [ecx], edi
mov esi, dword [ebp - 0x10]
test byte [ebx + 0xab], 2
jne 0x4ce99e
cmp edi, ecx
jne 0x4ce99e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.004d21d0
add esp, 0xc
cmp dword [ebx + 0x40], 0x800000
ja 0x4ce9d1
cmp dword [ebx + 0x34], 0x800000
ja 0x4ce9d1
cmp dword [ebx + 0x28], 0x800000
ja 0x4ce9d1
cmp dword [ebx + 0x1c], 0x800000
ja 0x4ce9d1
push dword [ebx + 0xa7]
push ebx
call fcn.004d2640
add esp, 8
mov eax, dword [esi + 0x10]
shr eax, 1
test al, 1
je 0x4cebc9
push ebx
call fcn.004d0760
jmp 0x4cebc6
cmp eax, 2
jne 0x4cebd4
push 0x58acb8
mov dword [ebp - 0x1c], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x18], 0x58acb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0xc]
mov dword [ebp - 4], 1
push dword [esi + 8]
push dword [0x58acac]
call fcn.004d3050
add esp, 0xc
test eax, eax
je 0x4cebc9
lea edi, [eax - 8]
mov eax, dword [esi + 0x10]
shr eax, 0xc
test al, 1
je 0x4ceacb
mov ebx, dword [edi + 0x2c]
lea eax, [edi + 0x2c]
cmp ebx, eax
je 0x4ceab0
push 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 8]
push eax
call fcn.004d2080
add esp, 4
mov esi, eax
push 0x58acb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x4ceaa5
mov eax, dword [edi + 0x34]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
jb 0x4cea82
sub eax, ecx
mov dword [edi + 0x34], eax
jmp 0x4cea89
mov dword [edi + 0x34], 0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push 0
push ebx
mov dword [eax], ecx
mov dword [ecx + 4], eax
call fcn.004d3220
add esp, 8
or dword [edi + 0xc0], 2
mov ebx, dword [edi + 0x2c]
lea eax, [edi + 0x2c]
mov esi, dword [ebp - 0x10]
jmp 0x4ceab7
and dword [edi + 0xc0], 0xfffffffd
cmp ebx, eax
jne 0x4ceacb
push 0xc
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.004d21d0
add esp, 0xc
mov eax, dword [esi + 0x10]
shr eax, 0xd
test al, 1
je 0x4ceb83
mov eax, dword [edi + 0x40]
mov ebx, dword [edi + 0x38]
mov dword [ebp - 0x14], eax
lea eax, [edi + 0x38]
cmp ebx, eax
je 0x4ceb6f
nop dword [eax]
push 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 8]
push eax
call fcn.004d2080
add esp, 4
mov esi, eax
push 0x58acb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x4ceb69
mov eax, dword [edi + 0x40]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
jb 0x4ceb29
sub eax, ecx
mov dword [edi + 0x40], eax
jmp 0x4ceb30
mov dword [edi + 0x40], 0
mov eax, dword [ebx + 0x14]
xor esi, esi
mov ecx, dword [ebp - 0x14]
sub ecx, eax
cmp dword [ebp - 0x14], eax
mov eax, dword [ebx + 4]
cmovb ecx, esi
mov esi, ecx
mov ecx, dword [ebx]
push 0
mov dword [eax], ecx
push ebx
mov dword [ebp - 0x14], esi
mov dword [ecx + 4], eax
call fcn.004d3220
add esp, 8
lea eax, [edi + 0x38]
test esi, esi
je 0x4ceb6c
mov ebx, dword [eax]
cmp ebx, eax
jne 0x4ceaf0
jmp 0x4ceb6c
lea eax, [edi + 0x38]
mov esi, dword [ebp - 0x10]
cmp dword [eax], eax
jne 0x4ceb83
push 0xd
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.004d21d0
add esp, 0xc
cmp dword [edi + 0x40], 0x800000
ja 0x4cebb6
cmp dword [edi + 0x34], 0x800000
ja 0x4cebb6
cmp dword [edi + 0x28], 0x800000
ja 0x4cebb6
cmp dword [edi + 0x1c], 0x800000
ja 0x4cebb6
push dword [edi + 0xbc]
push edi
call fcn.004d2a40
add esp, 8
mov eax, dword [esi + 0x10]
shr eax, 9
test al, 1
je 0x4cebc9
push edi
call fcn.004d05c0
add esp, 4
push 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret