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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x745d80
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x82384c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x8305f0
mov dword [ebp - 0x20], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x1c], 0x8305f0
call edi
cmp dword [0x8304e0], 0
mov dword [ebp - 4], 0
je case.0x4cd51b.6
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, 0x1d
ja case.0x4cd51b.6
movzx eax, byte [eax + 0x4cde88]
jmp dword [eax*4 + 0x4cde3c]
push dword [esi + 8]
push dword [esi + 4]
push dword [0x8304d8]
call fcn.004d1c70
add esp, 0xc
test eax, eax
je 0x4cd576
movups xmm0, xmmword [esi + 0x10]
lea ecx, [eax - 8]
movups xmmword [ecx + 0x5c], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [ecx + 0x6c], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [ecx + 0x7c], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [ecx + 0x8c], xmm0
mov ax, word [esi + 0x50]
mov word [ecx + 0x9c], ax
mov al, byte [esi + 0x52]
mov byte [ecx + 0x9e], al
jmp 0x4cd592
lea eax, [esi + 0x10]
push eax
push dword [esi + 8]
push dword [esi + 4]
call fcn.004cca60
mov ecx, eax
add esp, 0xc
test ecx, ecx
je case.0x4cd51b.6
push 0x1c
lea eax, [ecx + 0x67]
mov byte [ecx + 0xa5], 1
push eax
push dword [esi + 8]
push dword [esi + 4]
call fcn.004cef00
add esp, 0x10
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
push 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov ecx, 0x830620
mov byte [ebp - 4], 1
call fcn.004d1110
jmp 0x4cde19
lea eax, [esi + 0x10]
push eax
push dword [esi + 8]
push dword [esi + 4]
call fcn.004cca60
add esp, 0xc
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
push 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov ecx, 0x830620
mov byte [ebp - 4], 2
call fcn.004d1110
jmp 0x4cde19
cmp dword [esi + 0xc], 0x10
jne 0x4cd63f
push dword [esi + 8]
push dword [esi + 4]
push dword [0x8304d8]
call fcn.004d1c70
add esp, 0xc
test eax, eax
je 0x4cd63f
movups xmm0, xmmword [esi + 0x10]
movups xmmword [eax + 0x3e], xmm0
push 0x8305f0
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov ecx, 0x830620
mov byte [ebp - 4], 3
call fcn.004d1110
jmp 0x4cde19
push dword [esi + 8]
push dword [esi + 4]
push dword [0x8304d8]
call fcn.004d1c70
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4cd7b3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x50], eax
lea eax, [ecx + 0xc]
mov edx, dword [esi + 0xc]
test edx, edx
je 0x4cd6e4
cmp dword [eax], eax
je 0x4cd6e4
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx + 0x14]
add eax, edx
cmp eax, 0x20000
ja 0x4cd6e4
push edx
lea eax, [esi + 0x10]
push eax
mov eax, dword [ecx + 0x14]
add ecx, 0x18
add eax, ecx
push eax
call fcn.005789a0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [esi + 0xc]
add dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0xc]
add ecx, 0xfffffff8
add dword [ecx + 0x1c], eax
jmp 0x4cd757
push 0
push 0x2001b
call fcn.004d1d90
mov edx, eax
add esp, 8
mov dword [ebp - 0x14], edx
test edx, edx
je case.0x4cd51b.6
mov ecx, dword [esi + 4]
mov dword [edx + 0xc], ecx
mov ecx, dword [esi + 8]
mov dword [edx + 0x10], ecx
mov ecx, dword [esi]
mov dword [edx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4cd732
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [edx + 0x18]
push eax
call fcn.005789a0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov edi, dword [ebp - 0x10]
mov eax, dword [esi + 0xc]
lea ecx, [edi - 8]
add dword [ecx + 0x1c], eax
mov eax, dword [edi + 0x10]
add edi, 0xc
mov dword [edx], edi
mov edi, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov dword [eax], edx
mov dword [edi + 0x10], edx
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ecx + 0x40], 0x100000
jae 0x4cd77b
cmp dword [ecx + 0x34], 0x100000
jae 0x4cd77b
cmp dword [ecx + 0x28], 0x40000
jae 0x4cd77b
cmp dword [ecx + 0x1c], 0x800000
jb 0x4cd786
push 1
push ecx
call fcn.004d0680
add esp, 8
push 0x8305f0
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov ecx, 0x830620
mov byte [ebp - 4], 4
call fcn.004d1110
jmp 0x4cde19
push dword [esi + 0xc]
lea eax, [esi + 0x10]
push eax
push dword [esi + 8]
push dword [esi + 4]
call fcn.004d0580
add esp, 0x10
jmp case.0x4cd51b.6
push dword [esi + 8]
push dword [esi + 4]
push dword [0x8304d8]
call fcn.004d1c70
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4cd914
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x50], eax
mov edx, dword [esi + 0xc]
test edx, edx
je 0x4cd845
lea eax, [ecx + 0x18]
cmp dword [eax], eax
je 0x4cd845
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx + 0x14]
add eax, edx
cmp eax, 0x20000
ja 0x4cd845
push edx
lea eax, [esi + 0x10]
push eax
mov eax, dword [ecx + 0x14]
add ecx, 0x18
add eax, ecx
push eax
call fcn.005789a0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [esi + 0xc]
add dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0xc]
add ecx, 0xfffffff8
add dword [ecx + 0x28], eax
jmp 0x4cd8b8
push 0
push 0x2001b
call fcn.004d1d90
mov edx, eax
add esp, 8
mov dword [ebp - 0x14], edx
test edx, edx
je case.0x4cd51b.6
mov ecx, dword [esi + 4]
mov dword [edx + 0xc], ecx
mov ecx, dword [esi + 8]
mov dword [edx + 0x10], ecx
mov ecx, dword [esi]
mov dword [edx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4cd893
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [edx + 0x18]
push eax
call fcn.005789a0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov edi, dword [ebp - 0x10]
mov eax, dword [esi + 0xc]
lea ecx, [edi - 8]
add dword [ecx + 0x28], eax
mov eax, dword [edi + 0x1c]
add edi, 0x18
mov dword [edx], edi
mov edi, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov dword [eax], edx
mov dword [edi + 0x1c], edx
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ecx + 0x40], 0x100000
jae 0x4cd8dc
cmp dword [ecx + 0x34], 0x100000
jae 0x4cd8dc
cmp dword [ecx + 0x28], 0x40000
jae 0x4cd8dc
cmp dword [ecx + 0x1c], 0x800000
jb 0x4cd8e7
push 1
push ecx
call fcn.004d0680
add esp, 8
push 0x8305f0
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov ecx, 0x830620
mov byte [ebp - 4], 5
call fcn.004d1110
jmp 0x4cde19
push dword [esi + 0xc]
lea eax, [esi + 0x10]
push eax
push dword [esi + 8]
push dword [esi + 4]
call fcn.004d05a0
add esp, 0x10
jmp case.0x4cd51b.6
push 0x8305f0
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov ecx, 0x830688
mov byte [ebp - 4], 6
call fcn.004d12b0
jmp 0x4cde19
push 0x8305f0
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov ecx, 0x830688
mov byte [ebp - 4], 7
call fcn.004d12b0
jmp 0x4cde19
push 0x8305f0
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x19
push dword [esi + 8]
mov byte [ebp - 4], 8
push dword [esi + 4]
call fcn.004cfca0
add esp, 0xc
jmp 0x4cde19
push dword [esi + 8]
push dword [esi + 4]
push dword [0x8304d8]
call fcn.004d1c70
add esp, 0xc
test eax, eax
je case.0x4cd51b.6
mov byte [eax + 0x9f], 1
jmp case.0x4cd51b.6
lea eax, [esi + 0x10]
push eax
push dword [esi + 8]
push dword [esi + 4]
call fcn.004cc780
add esp, 0xc
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
push 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov ecx, 0x830620
mov byte [ebp - 4], 9
call fcn.004d1110
jmp 0x4cde19
push dword [esi + 8]
push dword [esi + 4]
push dword [0x8304dc]
call fcn.004d1c70
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4cda6c
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ecx + 0x6e], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [ecx + 0x7e], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [ecx + 0x8e], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [ecx + 0x9e], xmm0
mov ax, word [esi + 0x50]
mov word [ecx + 0xae], ax
push 0x8305f0
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov ecx, 0x830620
mov byte [ebp - 4], 0xa
call fcn.004d1110
jmp 0x4cde19
cmp dword [esi + 0xc], 0x10
jne 0x4cdabf
push dword [esi + 8]
push dword [esi + 4]
push dword [0x8304dc]
call fcn.004d1c70
add esp, 0xc
test eax, eax
je 0x4cdabf
movups xmm0, xmmword [esi + 0x10]
movups xmmword [eax + 0x3c], xmm0
push 0x8305f0
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov ecx, 0x830620
mov byte [ebp - 4], 0xb
call fcn.004d1110
jmp 0x4cde19
push dword [esi + 8]
push dword [esi + 4]
push dword [0x8304dc]
call fcn.004d1c70
add esp, 0xc
test eax, eax
jne 0x4cdb39
xorps xmm0, xmm0
mov word [ebp - 0x2c], ax
mov ax, word [esi + 0x10]
movups xmmword [ebp - 0x4c], xmm0
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x4c]
push eax
push dword [esi + 8]
movups xmmword [ebp - 0x3c], xmm0
push dword [esi + 4]
call fcn.004cc780
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4cdb3f
jmp case.0x4cd51b.6
add eax, 0xfffffff8
mov dword [ebp - 0x10], eax
push 0
push 0x2001b
call fcn.004d1d90
mov edx, eax
add esp, 8
mov dword [ebp - 0x14], edx
test edx, edx
je case.0x4cd51b.6
mov ecx, dword [esi + 4]
mov dword [edx + 0xc], ecx
mov ecx, dword [esi + 8]
mov dword [edx + 0x10], ecx
mov ecx, dword [esi]
mov dword [edx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4cdb8d
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [edx + 0x18]
push eax
call fcn.005789a0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0xc]
add dword [ecx + 0x1c], eax
lea edi, [ecx + 0x14]
mov eax, dword [ecx + 0x18]
mov dword [edx], edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edx + 4], eax
mov dword [eax], edx
mov dword [ecx + 0x18], edx
cmp dword [ecx + 0x40], 0x100000
jae 0x4cdbd0
cmp dword [ecx + 0x34], 0x100000
jae 0x4cdbd0
cmp dword [ecx + 0x28], 0x800000
jae 0x4cdbd0
cmp dword [ecx + 0x1c], 0x800000
jb 0x4cdbdb
push 1
push ecx
call fcn.004d0cc0
add esp, 8
push 0x8305f0
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov ecx, 0x830620
mov byte [ebp - 4], 0xc
call fcn.004d1110
jmp 0x4cde19
push dword [esi + 8]
push dword [esi + 4]
push dword [0x8304dc]
call fcn.004d1c70
add esp, 0xc
test eax, eax
jne 0x4cdc55
xorps xmm0, xmm0
mov word [ebp - 0x2c], ax
mov ax, word [esi + 0x10]
movups xmmword [ebp - 0x4c], xmm0
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x4c]
push eax
push dword [esi + 8]
movups xmmword [ebp - 0x3c], xmm0
push dword [esi + 4]
call fcn.004cc780
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4cdc5b
jmp case.0x4cd51b.6
add eax, 0xfffffff8
mov dword [ebp - 0x10], eax
push 0
push 0x2001b
call fcn.004d1d90
mov edx, eax
add esp, 8
mov dword [ebp - 0x14], edx
test edx, edx
je case.0x4cd51b.6
mov ecx, dword [esi + 4]
mov dword [edx + 0xc], ecx
mov ecx, dword [esi + 8]
mov dword [edx + 0x10], ecx
mov ecx, dword [esi]
mov dword [edx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4cdca9
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [edx + 0x18]
push eax
call fcn.005789a0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0xc]
add dword [ecx + 0x28], eax
lea edi, [ecx + 0x20]
mov eax, dword [ecx + 0x24]
mov dword [edx], edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edx + 4], eax
mov dword [eax], edx
mov dword [ecx + 0x24], edx
cmp dword [ecx + 0x40], 0x100000
jae 0x4cdcec
cmp dword [ecx + 0x34], 0x100000
jae 0x4cdcec
cmp dword [ecx + 0x28], 0x800000
jae 0x4cdcec
cmp dword [ecx + 0x1c], 0x800000
jb 0x4cdcf7
push 1
push ecx
call fcn.004d0cc0
add esp, 8
push 0x8305f0
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov ecx, 0x830620
mov byte [ebp - 4], 0xd
call fcn.004d1110
jmp 0x4cde19
push 0x8305f0
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov ecx, 0x830688
mov byte [ebp - 4], 0xe
call fcn.004d12b0
jmp 0x4cde19
push 0x8305f0
mov dword [ebp - 0x18], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov ecx, 0x830688
mov byte [ebp - 4], 0xf
call fcn.004d12b0
jmp 0x4cde19
lea eax, [esi + 0x10]
mov dword [ebp - 0x28], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x26]
mov esi, dword [esi + 0xc]
push 0x8305f0
mov dword [ebp - 0x14], eax
sub esi, 0x16
mov dword [ebp - 0x24], 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x10]
mov ecx, dword [0x830790]
mov byte [ebp - 4], 0x10
push esi
push dword [ebp - 0x14]
test ecx, ecx
je 0x4cddc4
mov eax, dword [ecx]
call dword [eax]
jmp 0x4cde19
push 0x1c
jmp 0x4cde11
lea eax, [esi + 0x10]
mov dword [ebp - 0x28], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x26]
mov esi, dword [esi + 0xc]
push 0x8305f0
mov dword [ebp - 0x10], eax
sub esi, 0x16
mov dword [ebp - 0x24], 0x8305f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x14]
mov ecx, dword [0x830790]
mov byte [ebp - 4], 0x11
push esi
push dword [ebp - 0x10]
test ecx, ecx
je 0x4cde0f
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4cde19
push 0x1d
call fcn.004cf830
add esp, 0x10
push 0x8305f0
call edi
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
mov esp, ebp
pop ebp
ret