Function at 0x4dfc40
Capabilities:
Check for time delay via queryperformancecounter
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x7c]
fild dword [esi + 0x7c]
test eax, eax
jge 0x4dfc57
fadd dword [0x52baf4]
fdivr dword [0x549934]
lea ecx, [esp + 0x24]
push ecx
fstp dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0
push 0x3e8
push edx
push eax
call fcn.004a6d60
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
fstp dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x4dfe6e
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x84], eax
je 0x4dfcc9
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x4dfcd8
push 0x549910
push 0
call fcn.004d40b0
add esp, 8
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x4dfe5d
fld dword [0x5310a8]
push ebp
fdiv dword [esp + 0x10]
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
fstp dword [esp + 0x1c]
lea ebx, [ebx]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4dfd65
push 1
push 0
push 0
push 0
lea eax, [esp + 0x5c]
push eax
call ebp
test eax, eax
je 0x4dfd65
cmp dword [esp + 0x50], 0x12
je 0x4dfd5b
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
lea eax, [esp + 0x4c]
push eax
call dword [edx + 0x24]
test eax, eax
jne 0x4dfd18
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4dfd18
mov dword [esi + 0x8c], 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov eax, ecx
sub eax, edx
mov edx, dword [esp + 0x38]
mov edi, edx
sbb edi, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
fild qword [esp + 0x3c]
fmul dword [esp + 0x1c]
fcom dword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x4dfe3e
fmul dword [0x54990c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
fst dword [esp + 0x14]
fcomp dword [0x549908]
fnstsw ax
test ah, 0x41
jne 0x4dfdd2
fld dword [esp + 0x10]
fmul dword [0x54990c]
fstp dword [esp + 0x14]
mov edi, dword [esi + 0x48]
inc edi
mov ecx, esi
mov dword [esi + 0x48], edi
call fcn.004df080
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004cf690
mov eax, dword [esi + 0x90]
test eax, eax
jne 0x4dfe31
lea edi, [esi + 0x94]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebx]
push 0
mov ecx, ebx
call dword [edx + 4]
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4dfe1a
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx]
mov ecx, esi
call fcn.004cf730
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x4dfe4d
mov edx, dword [esi + 0x80]
fstp st(0)
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x4dfd10
pop edi
pop ebp
mov esi, dword [esi + 0x84]
test esi, esi
je 0x4dfe6e
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
xor eax, eax
pop ebx
add esp, 0x58
ret