Function at 0x49991a
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0
push 0
call sym.stub.exe_ts_resource_ex
mov edi, dword [ebp + 8]
pop ecx
test edi, edi
pop ecx
mov esi, eax
je 0x499b86
mov eax, dword [esi]
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
push ebx
mov eax, dword [eax + ecx*4 - 4]
cmp dword [eax + 0x2c], 0
jne 0x499a12
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
test eax, eax
mov eax, dword [esi]
mov eax, dword [eax + ecx*4 - 4]
jne 0x499974
or dword [eax + 0x2c], 0xffffffff
jmp 0x499a12
mov ecx, dword [ebp - 8]
mov dword [eax + 0x40], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 0x44], ecx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
test eax, eax
mov eax, dword [esi]
mov eax, dword [eax + ecx*4 - 4]
je 0x49996b
add eax, 0x2c
push eax
call fcn.004998cf
mov eax, dword [esi]
pop ecx
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
fild qword [ebp - 8]
mov ebx, dword [eax + ecx*4 - 4]
fild qword [ebx + 0x40]
fdivp st(1)
fld st(0)
call sub.MSVCRT.dll__ftol
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fsubr st(1)
fmul qword [0x5010b8]
call sub.MSVCRT.dll__ftol
add dword [ebx + 0x30], eax
mov eax, dword [esi]
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
fstp st(0)
mov eax, dword [eax + ecx*4 - 4]
mov ecx, dword [eax + 0x30]
jns 0x499a00
add ecx, 0xf4240
mov dword [eax + 0x30], ecx
mov eax, dword [esi]
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
mov eax, dword [eax + ecx*4 - 4]
dec dword [eax + 0x2c]
mov eax, dword [esi]
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, dword [ebp + 8]
sub dword [eax + 0x2c], ecx
mov eax, dword [esi]
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
mov eax, dword [eax + ecx*4 - 4]
cmp dword [eax + 0x2c], 0
jle 0x499b6c
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x499a4b
mov eax, dword [esi]
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
mov eax, dword [eax + ecx*4 - 4]
or dword [eax + 0x2c], 0xffffffff
jmp 0x499b6c
mov eax, dword [esi]
mov ebx, dword [sym.stub.exe_php_win32_core_globals_id]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ebx*4 - 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
cmp edx, dword [eax + 0x3c]
jg 0x499b05
jl 0x499a77
cmp ecx, dword [eax + 0x38]
jae 0x499b05
push edi
call fcn.004998cf
mov eax, dword [esi]
pop ecx
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
fild qword [ebp - 0x10]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, dword [edi]
fild qword [eax + 0x40]
mov dword [eax + 0x2c], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 0x30], ecx
fdivp st(1)
fld st(0)
call sub.MSVCRT.dll__ftol
mov dword [ebp + 8], eax
mov eax, dword [esi]
fild dword [ebp + 8]
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
mov ebx, dword [eax + ecx*4 - 4]
fsubr st(1)
fmul qword [0x5010b8]
call sub.MSVCRT.dll__ftol
add dword [ebx + 0x30], eax
mov eax, dword [esi]
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
fstp st(0)
mov eax, dword [eax + ecx*4 - 4]
mov ecx, dword [eax + 0x30]
jns 0x499af1
add ecx, 0xf4240
mov dword [eax + 0x30], ecx
mov eax, dword [esi]
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
mov eax, dword [eax + ecx*4 - 4]
dec dword [eax + 0x2c]
mov eax, dword [esi]
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, dword [ebp + 8]
sub dword [eax + 0x2c], ecx
jmp 0x499b6c
mov dword [eax + 0x38], ecx
mov ecx, dword [ebp - 4]
fild qword [ebp - 0x10]
mov dword [eax + 0x3c], ecx
mov eax, dword [esi]
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
mov ebx, dword [eax + ecx*4 - 4]
fild qword [ebx + 0x40]
fdivp st(1)
fld st(0)
call sub.MSVCRT.dll__ftol
mov dword [ebp + 8], eax
mov ecx, dword [ebx + 0x2c]
fild dword [ebp + 8]
add ecx, eax
mov dword [edi], ecx
fsubr st(1)
fmul qword [0x5010b8]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi]
mov edx, dword [sym.stub.exe_php_win32_core_globals_id]
fstp st(0)
mov ecx, dword [ecx + edx*4 - 4]
mov ecx, dword [ecx + 0x30]
sub ecx, eax
cmp ecx, 0xf4240
mov dword [edi + 4], ecx
jle 0x499b6c
add ecx, 0xfff0bdc0
inc dword [edi]
mov dword [edi + 4], ecx
mov eax, dword [esi]
mov ecx, dword [sym.stub.exe_php_win32_core_globals_id]
pop ebx
mov eax, dword [eax + ecx*4 - 4]
cmp dword [eax + 0x2c], 0
jge 0x499b86
push edi
call fcn.004998cf
pop ecx
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x499ba6
call dword [sym.imp.MSVCRT.dll__tzset]
mov eax, dword [sym.imp.MSVCRT.dll__timezone]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [sym.imp.MSVCRT.dll__daylight]
mov eax, dword [eax]
mov dword [esi + 4], eax
pop edi
xor eax, eax
pop esi
leave
ret