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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482850
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x4c2320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, 0x4ce234
push edi
mov dword [ebp - 0x14], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x10], edi
call esi
cmp dword [0x4ce128], 0
mov dword [ebp - 4], 0
je case.0x466b95.6
mov eax, dword [ebx]
cmp eax, 0x19
ja case.0x466b95.6
movzx eax, byte [eax + 0x467304]
jmp dword [eax*4 + 0x4672c4]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, dword [0x4ce11c]
push ecx
push edx
push eax
call fcn.00467a40
add esp, 0xc
test eax, eax
je 0x466bd6
add eax, 0xfffffff8
lea esi, [ebx + 0x10]
lea edi, [eax + 0x48]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, 0x4ce234
jmp 0x466bf2
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
lea ecx, [ebx + 0x10]
push ecx
push edx
push eax
call fcn.004620b0
add esp, 0xc
test eax, eax
je case.0x466b95.6
or dword [eax + 0x8b], 0x40
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push 0x1c
add eax, 0x53
push eax
push ecx
push edx
call fcn.00462990
add esp, 0x10
push edi
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ecx, 0x4ce268
mov byte [ebp - 4], 1
call fcn.00464190
push edi
call esi
jmp case.0x466b95.6
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
lea eax, [ebx + 0x10]
push eax
push ecx
push edx
call fcn.004620b0
add esp, 0xc
push edi
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ecx, 0x4ce268
mov byte [ebp - 4], 2
call fcn.00464190
push edi
call esi
jmp case.0x466b95.6
push edi
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ecx, 0x4ce268
mov byte [ebp - 4], 3
call fcn.00464190
push edi
call esi
jmp case.0x466b95.6
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov edx, dword [0x4ce11c]
push eax
push ecx
push edx
call fcn.00467a40
add esp, 0xc
test eax, eax
je 0x466dd8
lea edi, [eax - 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x44], eax
mov eax, dword [ebx + 0xc]
lea ecx, [edi + 0x14]
test eax, eax
je 0x466d05
cmp dword [ecx], ecx
je 0x466d05
mov esi, dword [ecx + 4]
mov ecx, dword [esi + 0x14]
lea edx, [ecx + eax]
cmp edx, 0x2000
ja 0x466d05
push eax
lea eax, [ebx + 0x10]
push eax
lea ecx, [ecx + esi + 0x18]
push ecx
call fcn.0044d7e0
mov edx, dword [ebx + 0xc]
add dword [esi + 0x14], edx
mov eax, dword [ebx + 0xc]
add esp, 0xc
add dword [edi + 0x1c], eax
jmp 0x466d65
push 0
push 0x2018
call fcn.00467be0
mov esi, eax
add esp, 8
test esi, esi
je 0x466dbb
mov ecx, dword [ebx + 4]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 0x10], edx
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x14], ecx
cmp dword [ebx + 0xc], 0
jbe 0x466d4f
mov edx, dword [ebx + 0xc]
push edx
lea eax, [ebx + 0x10]
push eax
lea ecx, [esi + 0x18]
push ecx
call fcn.0044d7e0
add esp, 0xc
mov edx, dword [ebx + 0xc]
add dword [edi + 0x1c], edx
mov ecx, dword [edi + 0x18]
lea eax, [edi + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [ecx], esi
mov dword [eax + 4], esi
mov eax, 0x40000
cmp dword [edi + 0x40], eax
jae 0x466d7e
cmp dword [edi + 0x34], eax
jae 0x466d7e
cmp dword [edi + 0x28], eax
jae 0x466d7e
cmp dword [edi + 0x1c], eax
jb 0x466d88
push 1
call fcn.004624f0
add esp, 4
push 0x4ce234
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], 0x4ce234
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 4
push ebx
mov ecx, 0x4ce268
call fcn.00464190
push 0x4ce234
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, 0x4ce234
push edi
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
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
lea ecx, [ebx + 0x10]
push ecx
push edx
push eax
call fcn.004647a0
add esp, 0x10
jmp case.0x466b95.6
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, dword [0x4ce11c]
push ecx
push edx
push eax
call fcn.00467a40
add esp, 0xc
test eax, eax
je 0x466f00
lea edi, [eax - 8]
lea esi, [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x44], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x466e5b
cmp dword [esi], esi
je 0x466e5b
mov esi, dword [esi + 4]
mov ecx, dword [esi + 0x14]
lea edx, [ecx + eax]
cmp edx, 0x2000
ja 0x466e5b
push eax
lea eax, [ebx + 0x10]
push eax
lea ecx, [ecx + esi + 0x18]
push ecx
call fcn.0044d7e0
mov edx, dword [ebx + 0xc]
add dword [esi + 0x14], edx
mov eax, dword [ebx + 0xc]
add esp, 0xc
add dword [edi + 0x28], eax
jmp 0x466ebb
push 0
push 0x2018
call fcn.00467be0
mov esi, eax
add esp, 8
test esi, esi
je 0x466dbb
mov ecx, dword [ebx + 4]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 0x10], edx
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x14], ecx
cmp dword [ebx + 0xc], 0
jbe 0x466ea5
mov edx, dword [ebx + 0xc]
push edx
lea eax, [ebx + 0x10]
push eax
lea ecx, [esi + 0x18]
push ecx
call fcn.0044d7e0
add esp, 0xc
mov edx, dword [ebx + 0xc]
add dword [edi + 0x28], edx
mov ecx, dword [edi + 0x24]
lea eax, [edi + 0x20]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [ecx], esi
mov dword [eax + 4], esi
mov eax, 0x40000
cmp dword [edi + 0x40], eax
jae 0x466ed4
cmp dword [edi + 0x34], eax
jae 0x466ed4
cmp dword [edi + 0x28], eax
jae 0x466ed4
cmp dword [edi + 0x1c], eax
jb 0x466ede
push 1
call fcn.004624f0
add esp, 4
push 0x4ce234
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], 0x4ce234
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 5
jmp 0x466da5
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
lea ecx, [ebx + 0x10]
push ecx
push edx
push eax
call fcn.00464780
add esp, 0x10
jmp case.0x466b95.6
push edi
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ecx, 0x4ce2f0
mov byte [ebp - 4], 6
call fcn.00464190
push edi
call esi
jmp case.0x466b95.6
push edi
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ecx, 0x4ce2f0
mov byte [ebp - 4], 7
call fcn.00464190
push edi
call esi
jmp case.0x466b95.6
push edi
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push 0x19
push ecx
push edx
mov byte [ebp - 4], 8
call fcn.004644a0
add esp, 0xc
push edi
call esi
jmp case.0x466b95.6
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
lea eax, [ebx + 0x10]
push eax
push ecx
push edx
call fcn.00462220
add esp, 0xc
push edi
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ecx, 0x4ce268
mov byte [ebp - 4], 9
call fcn.00464190
push edi
call esi
jmp case.0x466b95.6
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov edx, dword [0x4ce124]
push eax
push ecx
push edx
call fcn.00467a40
add esp, 0xc
test eax, eax
je 0x46700d
lea esi, [ebx + 0x10]
lea edi, [eax + 0x5e]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, 0x4ce234
push edi
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ecx, 0x4ce268
mov byte [ebp - 4], 0xa
call fcn.00464190
push edi
call esi
jmp case.0x466b95.6
push edi
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ecx, 0x4ce268
mov byte [ebp - 4], 0xb
call fcn.00464190
push edi
call esi
jmp case.0x466b95.6
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov edx, dword [0x4ce124]
push eax
push ecx
push edx
call fcn.00467a40
add esp, 0xc
test eax, eax
jne 0x4670bb
mov edx, dword [ebx + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], ax
mov ax, word [ebx + 0x10]
lea ecx, [ebp - 0x40]
push ecx
mov word [ebp - 0x3c], ax
mov eax, dword [ebx + 4]
push edx
push eax
call fcn.00462220
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4670be
jmp case.0x466b95.6
lea esi, [eax - 8]
push 0
push 0x20018
call fcn.00467be0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4670dd
push 0x4ce234
jmp 0x466dc1
mov ecx, dword [ebx + 4]
mov dword [edi + 0xc], ecx
mov edx, dword [ebx + 8]
mov dword [edi + 0x10], edx
mov eax, dword [ebx]
mov dword [edi + 8], eax
mov ecx, dword [ebx + 0xc]
mov dword [edi + 0x14], ecx
cmp dword [ebx + 0xc], 0
jbe 0x46710e
mov edx, dword [ebx + 0xc]
push edx
lea eax, [ebx + 0x10]
push eax
lea eax, [edi + 0x18]
push eax
call fcn.0044d7e0
add esp, 0xc
mov ecx, dword [ebx + 0xc]
add dword [esi + 0x1c], ecx
mov ecx, dword [esi + 0x18]
lea eax, [esi + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [eax + 4], edi
mov eax, 0x40000
cmp dword [esi + 0x40], eax
jae 0x46713d
cmp dword [esi + 0x34], eax
jae 0x46713d
cmp dword [esi + 0x28], eax
jae 0x46713d
cmp dword [esi + 0x1c], eax
jb 0x467149
push 1
mov edi, esi
call fcn.00462600
add esp, 4
push 0x4ce234
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], 0x4ce234
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0xc
jmp 0x466da5
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ecx, dword [0x4ce124]
push edx
push eax
push ecx
call fcn.00467a40
add esp, 0xc
test eax, eax
jne 0x4671c9
mov dx, word [ebx + 0x10]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x40]
push eax
mov word [ebp - 0x3c], dx
mov edx, dword [ebx + 4]
push ecx
push edx
call fcn.00462220
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4671cc
jmp case.0x466b95.6
lea esi, [eax - 8]
push 0
push 0x20018
call fcn.00467be0
mov edi, eax
add esp, 8
test edi, edi
je 0x4670d3
mov eax, dword [ebx + 4]
mov dword [edi + 0xc], eax
mov ecx, dword [ebx + 8]
mov dword [edi + 0x10], ecx
mov edx, dword [ebx]
mov dword [edi + 8], edx
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x14], eax
cmp dword [ebx + 0xc], 0
jbe 0x467216
mov ecx, dword [ebx + 0xc]
push ecx
lea eax, [ebx + 0x10]
push eax
lea edx, [edi + 0x18]
push edx
call fcn.0044d7e0
add esp, 0xc
mov eax, dword [ebx + 0xc]
add dword [esi + 0x28], eax
mov ecx, dword [esi + 0x24]
lea eax, [esi + 0x20]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [eax + 4], edi
mov eax, 0x40000
cmp dword [esi + 0x40], eax
jae 0x467245
cmp dword [esi + 0x34], eax
jae 0x467245
cmp dword [esi + 0x28], eax
jae 0x467245
cmp dword [esi + 0x1c], eax
jb 0x467251
push 1
mov edi, esi
call fcn.00462600
add esp, 4
push 0x4ce234
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], 0x4ce234
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0xd
jmp 0x466da5
push edi
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ecx, 0x4ce2f0
mov byte [ebp - 4], 0xe
call fcn.00464190
push edi
call esi
jmp case.0x466b95.6
push edi
mov dword [ebp - 0x1c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ecx, 0x4ce2f0
mov byte [ebp - 4], 0xf
call fcn.00464190
push edi
call esi
jmp case.0x466b95.6