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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ee40
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x559540]
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 - 0x2c], ebx
cmp dword [ebx + 4], 1
jne 0x4e7c82
mov eax, dword [ebx + 0x10]
shr eax, 0x19
test al, 1
je 0x4e7a5a
mov eax, dword [ebx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x19
mov dword [ebp - 0x18], 0
call fcn.004e9670
add esp, 4
push 0x5646a4
mov dword [ebp - 0x34], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x30], 0x5646a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebx + 0xc]
mov dword [ebp - 4], 0
push dword [ebx + 8]
push dword [0x564698]
call fcn.004eb120
add esp, 0xc
test eax, eax
jne 0x4e7aa2
push 0x5646a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4e7eb7
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [eax - 8]
mov eax, dword [ebx + 0x10]
shr eax, 4
test al, 1
je 0x4e7b6c
call ecx
mov esi, dword [edi + 0x2c]
lea edx, [edi + 0x2c]
mov dword [edi + 0x44], eax
mov dword [ebp - 0x28], esi
cmp esi, edx
je 0x4e7b42
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0x5646a4
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
lea eax, [esi + 8]
push eax
call fcn.004e9670
add esp, 4
mov esi, eax
push 0x5646a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x28]
test esi, esi
jne 0x4e7b30
mov eax, dword [edi + 0x34]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jb 0x4e7b12
sub eax, edx
mov dword [edi + 0x34], eax
jmp 0x4e7b19
mov dword [edi + 0x34], 0
push 0
push ecx
call fcn.004eb2f0
add esp, 8
lea edx, [edi + 0x2c]
or dword [edi + 0x93], 8
jmp 0x4e7b49
mov eax, dword [edi + 0x2c]
lea edx, [edi + 0x2c]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [eax + 4], ecx
mov dword [edx], ecx
jmp 0x4e7b49
and dword [edi + 0x93], 0xfffffff7
test byte [edi + 0x93], 2
jne 0x4e7b66
cmp dword [edx], edx
jne 0x4e7b66
push 4
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.004e97c0
add esp, 0xc
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebx + 0x10]
shr eax, 5
test al, 1
je 0x4e7c37
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x28], eax
call ecx
lea ecx, [edi + 0x38]
mov dword [edi + 0x44], eax
cmp dword [ecx], ecx
je 0x4e7c1a
mov ebx, dword [ecx]
push 0x5646a4
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 8]
push eax
call fcn.004e9670
add esp, 4
mov esi, eax
push 0x5646a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x4e7c07
mov eax, dword [edi + 0x40]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
jb 0x4e7bd5
sub eax, ecx
mov dword [edi + 0x40], eax
jmp 0x4e7bdc
mov dword [edi + 0x40], 0
mov eax, dword [ebx + 0x14]
mov esi, dword [ebp - 0x28]
cmp esi, eax
jb 0x4e7bea
sub esi, eax
jmp 0x4e7bec
xor esi, esi
push 0
push ebx
mov dword [ebp - 0x28], esi
call fcn.004eb2f0
add esp, 8
lea ecx, [edi + 0x38]
test esi, esi
je 0x4e7c17
cmp dword [ecx], ecx
jne 0x4e7b90
jmp 0x4e7c17
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 ebx, dword [ebp - 0x2c]
test byte [edi + 0x93], 2
jne 0x4e7c37
cmp dword [ecx], ecx
jne 0x4e7c37
push 5
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.004e97c0
add esp, 0xc
cmp dword [edi + 0x40], 0x40000
ja 0x4e7c6a
cmp dword [edi + 0x34], 0x40000
ja 0x4e7c6a
cmp dword [edi + 0x28], 0x40000
ja 0x4e7c6a
cmp dword [edi + 0x1c], 0x40000
ja 0x4e7c6a
push dword [edi + 0x8f]
push edi
call fcn.004e9e70
add esp, 8
mov eax, dword [ebx + 0x10]
shr eax, 1
test al, 1
je 0x4e7eab
push edi
call fcn.004e6c60
jmp 0x4e7ea8
push 0x5646a4
mov dword [ebp - 0x34], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x30], 0x5646a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebx + 0xc]
mov dword [ebp - 4], 1
push dword [ebx + 8]
push dword [0x5646a0]
call fcn.004eb120
add esp, 0xc
test eax, eax
je 0x4e7a92
lea edi, [eax - 8]
mov eax, dword [ebx + 0x10]
shr eax, 0xc
test al, 1
je 0x4e7d7b
mov esi, dword [edi + 0x2c]
lea eax, [edi + 0x2c]
mov dword [ebp - 0x28], esi
cmp esi, eax
je 0x4e7ddb
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5646a4
call eax
lea eax, [esi + 8]
push eax
call fcn.004e9670
add esp, 4
mov esi, eax
push 0x5646a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x4e7d40
mov edx, dword [ebp - 0x28]
mov eax, dword [edi + 0x34]
mov ecx, dword [edx + 0x14]
cmp eax, ecx
jb 0x4e7d1d
sub eax, ecx
mov dword [edi + 0x34], eax
jmp 0x4e7d24
mov dword [edi + 0x34], 0
mov eax, dword [edx + 4]
mov ecx, dword [edx]
push 0
push edx
mov dword [eax], ecx
mov dword [ecx + 4], eax
call fcn.004eb2f0
add esp, 8
or dword [edi + 0xb0], 2
lea eax, [edi + 0x2c]
cmp dword [eax], eax
jne 0x4e7d7b
mov eax, dword [ebx + 8]
mov ecx, 0x5646d8
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x18], 0
call fcn.004ea520
push dword [0x564718]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x10]
shr eax, 0xd
test al, 1
je 0x4e7e65
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x28], eax
lea eax, [edi + 0x38]
cmp dword [eax], eax
je 0x4e7e31
lea ebx, [ebx]
mov ebx, dword [eax]
push 0x5646a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 8]
push eax
call fcn.004e9670
add esp, 4
mov esi, eax
push 0x5646a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x4e7e27
mov eax, dword [edi + 0x40]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
jb 0x4e7de7
sub eax, ecx
mov dword [edi + 0x40], eax
jmp 0x4e7dee
and dword [edi + 0xb0], 0xfffffffd
jmp 0x4e7d43
mov dword [edi + 0x40], 0
mov eax, dword [ebx + 0x14]
mov esi, dword [ebp - 0x28]
cmp esi, eax
jb 0x4e7dfc
sub esi, eax
jmp 0x4e7dfe
xor esi, esi
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push 0
push ebx
mov dword [eax], ecx
mov dword [ebp - 0x28], esi
mov dword [ecx + 4], eax
call fcn.004eb2f0
add esp, 8
lea eax, [edi + 0x38]
test esi, esi
je 0x4e7e2a
cmp dword [eax], eax
jne 0x4e7da0
jmp 0x4e7e2a
lea eax, [edi + 0x38]
mov ebx, dword [ebp - 0x2c]
cmp dword [eax], eax
jne 0x4e7e65
mov eax, dword [ebx + 8]
mov ecx, 0x5646d8
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0xd
mov dword [ebp - 0x18], 0
call fcn.004ea520
push dword [0x564718]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [edi + 0x40], 0x40000
ja 0x4e7e98
cmp dword [edi + 0x34], 0x40000
ja 0x4e7e98
cmp dword [edi + 0x28], 0x40000
ja 0x4e7e98
cmp dword [edi + 0x1c], 0x40000
ja 0x4e7e98
push dword [edi + 0xac]
push edi
call fcn.004ea270
add esp, 8
mov eax, dword [ebx + 0x10]
shr eax, 9
test al, 1
je 0x4e7eab
push edi
call fcn.004e6a70
add esp, 4
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5646a4
call eax
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.004ebd2c
mov esp, ebp
pop ebp
ret