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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
cmp dword [ebp + 0x10], 0
je 0x623e7734
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evutil_tv_to_msec_
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
sub esp, 4
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edx, dword [ebp - 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x623e7801
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x24]
cmp dword [ebp - 0x18], eax
je 0x623e7801
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x20]
lea edx, [eax - 1]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
lea edx, [eax - 1]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], edx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
jmp 0x623e78a0
cmp dword [ebp - 0x10], 0
je 0x623e7837
cmp dword [ebp - 0x10], 0x102
jne 0x623e7817
mov eax, 1
jmp 0x623e781c
mov eax, 0xffffffff
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
lea edx, [eax - 1]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], edx
mov dword [ebp - 0x30], 0
jmp 0x623e78a0
cmp dword [ebp - 0x28], 0xffffffff
je 0x623e7881
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
add eax, edx
cmp dword [ebp - 0xc], eax
jb 0x623e7873
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
lea edx, [eax - 1]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], edx
mov dword [ebp - 0x30], 0
jmp 0x623e78a0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
add eax, edx
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x623e789f
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
call eax
sub esp, 4
jmp 0x623e78a0
nop
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
sub esp, 4
cmp dword [ebp - 0x30], 0
jne 0x623e778c
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x623e78fc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
sub esp, 4
mov eax, dword [ebp - 0x2c]
leave
ret