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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x745c40
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x82384c]
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 0x4ca2b5
mov eax, dword [esi + 0x10]
shr eax, 0x19
test al, 1
je 0x4ca019
mov eax, dword [esi + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x19
mov dword [ebp - 0x2c], 0
call fcn.004cfad0
add esp, 4
push 0x8305f0
mov dword [ebp - 0x1c], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x18], 0x8305f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0xc]
mov dword [ebp - 4], 0
push dword [esi + 8]
push dword [0x8304d8]
call fcn.004d1c70
add esp, 0xc
test eax, eax
je 0x4ca496
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [eax - 8]
mov eax, dword [esi + 0x10]
shr eax, 4
test al, 1
je 0x4ca16b
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x14], eax
call ecx
lea ecx, [edi + 0x2c]
mov dword [edi + 0x58], eax
cmp dword [ecx], ecx
je 0x4ca148
mov esi, dword [ebp - 0x14]
mov ebx, dword [ecx]
test esi, esi
jne 0x4ca094
cmp dword [ebx + 0x14], esi
ja 0x4ca145
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov dword [ecx + 4], eax
cmp byte [edi + 0xa8], 0
je 0x4ca0b1
push 0
push ebx
call fcn.004d1e40
jmp 0x4ca125
push 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 8]
push eax
call fcn.004cfad0
add esp, 4
mov esi, eax
push 0x8305f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x4ca135
cmp dword [ebx + 0x14], esi
jne 0x4ca0ef
mov byte [edi + 0xa8], 1
mov dword [edi + 0xac], 0xea60
mov eax, dword [edi + 0x34]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
jb 0x4ca100
sub eax, ecx
mov dword [edi + 0x34], eax
jmp 0x4ca107
mov dword [edi + 0x34], 0
mov ecx, dword [ebx + 0x14]
xor eax, eax
mov edx, dword [ebp - 0x14]
sub edx, ecx
cmp dword [ebp - 0x14], ecx
push 0
cmovae eax, edx
push ebx
mov dword [ebp - 0x14], eax
call fcn.004d1e40
mov esi, dword [ebp - 0x14]
lea ecx, [edi + 0x2c]
add esp, 8
cmp dword [ecx], ecx
jne 0x4ca085
jmp 0x4ca145
mov eax, dword [edi + 0x2c]
lea ecx, [edi + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [eax + 4], ebx
mov dword [ecx], ebx
mov esi, dword [ebp - 0x10]
cmp byte [edi + 0xa2], 0
jne 0x4ca165
cmp dword [ecx], ecx
jne 0x4ca165
push 4
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.004cfc40
add esp, 0xc
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 0x10]
shr eax, 5
test al, 1
je 0x4ca268
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x14], eax
call ecx
lea ecx, [edi + 0x38]
mov dword [edi + 0x58], eax
cmp dword [ecx], ecx
je 0x4ca24b
mov esi, dword [ebp - 0x14]
mov ebx, dword [ecx]
test esi, esi
jne 0x4ca1a1
cmp dword [ebx + 0x14], esi
ja 0x4ca248
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov dword [ecx + 4], eax
cmp byte [edi + 0xa9], 0
je 0x4ca1be
push 0
push ebx
call fcn.004d1e40
jmp 0x4ca228
push 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 8]
push eax
call fcn.004cfad0
add esp, 4
mov esi, eax
push 0x8305f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x4ca238
cmp dword [ebx + 0x14], esi
jne 0x4ca1f2
mov byte [edi + 0xa9], 1
mov eax, dword [edi + 0x40]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
jb 0x4ca203
sub eax, ecx
mov dword [edi + 0x40], eax
jmp 0x4ca20a
mov dword [edi + 0x40], 0
mov ecx, dword [ebx + 0x14]
xor eax, eax
mov edx, dword [ebp - 0x14]
sub edx, ecx
cmp dword [ebp - 0x14], ecx
push 0
cmovae eax, edx
push ebx
mov dword [ebp - 0x14], eax
call fcn.004d1e40
mov esi, dword [ebp - 0x14]
lea ecx, [edi + 0x38]
add esp, 8
cmp dword [ecx], ecx
jne 0x4ca192
jmp 0x4ca248
mov eax, dword [edi + 0x38]
lea ecx, [edi + 0x38]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [eax + 4], ebx
mov dword [ecx], ebx
mov esi, dword [ebp - 0x10]
cmp byte [edi + 0xa2], 0
jne 0x4ca268
cmp dword [ecx], ecx
jne 0x4ca268
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.004cfc40
add esp, 0xc
cmp dword [edi + 0x40], 0x100000
ja 0x4ca29d
cmp dword [edi + 0x34], 0x100000
ja 0x4ca29d
cmp dword [edi + 0x28], 0x40000
ja 0x4ca29d
cmp dword [edi + 0x1c], 0x800000
ja 0x4ca29d
movzx eax, byte [edi + 0xa0]
push eax
push edi
call fcn.004d0680
add esp, 8
mov eax, dword [esi + 0x10]
shr eax, 1
test al, 1
je 0x4ca496
push edi
call fcn.004ccb30
jmp 0x4ca493
cmp eax, 2
jne 0x4ca4a1
push 0x8305f0
mov dword [ebp - 0x24], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x20], 0x8305f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0xc]
mov dword [ebp - 4], 1
push dword [esi + 8]
push dword [0x8304dc]
call fcn.004d1c70
add esp, 0xc
test eax, eax
je 0x4ca496
lea edi, [eax - 8]
mov eax, dword [esi + 0x10]
shr eax, 0xc
test al, 1
je 0x4ca38f
mov ebx, dword [edi + 0x2c]
lea eax, [edi + 0x2c]
cmp ebx, eax
je 0x4ca3f1
push 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 8]
push eax
call fcn.004cfad0
add esp, 4
mov esi, eax
push 0x8305f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x4ca375
mov eax, dword [edi + 0x34]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
jb 0x4ca352
sub eax, ecx
mov dword [edi + 0x34], eax
jmp 0x4ca359
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.004d1e40
add esp, 8
mov byte [edi + 0xbb], 1
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x2c]
cmp dword [eax], eax
jne 0x4ca38f
push 0xc
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.004cfc40
add esp, 0xc
mov eax, dword [esi + 0x10]
shr eax, 0xd
test al, 1
je 0x4ca44e
mov eax, dword [edi + 0x40]
lea ebx, [edi + 0x38]
mov dword [ebp - 0x14], eax
cmp dword [ebx], ebx
je 0x4ca43e
nop
mov esi, dword [ebx]
push 0x8305f0
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + 8]
push eax
call fcn.004cfad0
add esp, 4
mov esi, eax
push 0x8305f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x4ca437
mov esi, dword [ebp - 0x18]
mov eax, dword [edi + 0x40]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
jb 0x4ca3fa
sub eax, ecx
mov dword [edi + 0x40], eax
jmp 0x4ca401
mov byte [edi + 0xbb], 0
jmp 0x4ca37b
mov dword [edi + 0x40], 0
mov ecx, dword [esi + 0x14]
xor eax, eax
mov edx, dword [ebp - 0x14]
sub edx, ecx
cmp dword [ebp - 0x14], ecx
mov ecx, dword [esi]
cmovae eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
push 0
push esi
mov dword [eax], ecx
mov dword [ecx + 4], eax
call fcn.004d1e40
add esp, 8
cmp dword [ebp - 0x14], 0
je 0x4ca437
cmp dword [ebx], ebx
jne 0x4ca3b0
mov esi, dword [ebp - 0x10]
cmp dword [ebx], ebx
jne 0x4ca44e
push 0xd
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.004cfc40
add esp, 0xc
cmp dword [edi + 0x40], 0x100000
ja 0x4ca483
cmp dword [edi + 0x34], 0x100000
ja 0x4ca483
cmp dword [edi + 0x28], 0x800000
ja 0x4ca483
cmp dword [edi + 0x1c], 0x800000
ja 0x4ca483
movzx eax, byte [edi + 0xb9]
push eax
push edi
call fcn.004d0cc0
add esp, 8
mov eax, dword [esi + 0x10]
shr eax, 9
test al, 1
je 0x4ca496
push edi
call fcn.004cc820
add esp, 4
push 0x8305f0
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