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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x44d014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [0x44edf0]
mov ebx, ecx
push edi
mov edi, dword [0x44edec]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
push 0x1a0
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x458]
push 0
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x38], 1
call fcn.00422ca0
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov al, byte [edi + 0x25]
mov cl, byte [edi + 0x22]
mov dword [ebp - 0x458], edx
mov dword [ebp - 0x444], 0x10001000
mov dword [ebp - 0x2c0], ebx
test edx, edx
je 0x411070
test cl, cl
je 0x41103c
test al, al
je 0x411030
mov eax, 0x411a10
mov ecx, 0x411590
jmp 0x411056
mov eax, 0x411a10
mov ecx, 0x411590
jmp 0x411056
test al, al
je 0x41104c
mov eax, 0x412070
mov ecx, 0x411e30
jmp 0x411056
mov eax, 0x412470
mov ecx, 0x412270
test esi, esi
mov dword [ebp - 0x2d8], 0x410f70
cmovne eax, ecx
mov dword [ebp - 0x2c8], eax
jmp 0x41116a
test cl, cl
je 0x411090
test al, al
je 0x411084
mov eax, 0x412aa0
mov ecx, 0x412640
jmp 0x4110aa
mov eax, 0x412aa0
mov ecx, 0x412640
jmp 0x4110aa
test al, al
je 0x4110a0
mov eax, 0x4130a0
mov ecx, 0x412e90
jmp 0x4110aa
mov eax, 0x413460
mov ecx, 0x413280
test esi, esi
mov dword [ebp - 0x444], 0x10001100
push 0x280
cmovne eax, ecx
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x2b8]
push 0
push eax
call fcn.00422ca0
mov eax, dword [ebx + 0x18]
lea edi, [ebx + 0x28]
add esp, 0xc
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x2b8], 0x280
mov dword [ebp - 0x278], 0x100
mov dword [ebp - 0x24c], 0
push eax
push dword [ebp - 0x45c]
mov dword [ebp - 0x248], 0x78
push edi
call dword [sym.imp.ADVAPI32.dll_StartTraceW]
test eax, eax
je 0x41114d
mov dword [edi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420eb4
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x2a0]
push esi
push dword [edi + 4]
push dword [edi]
call fcn.0040f6c0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41118e
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenTraceW]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
cmp eax, 0xffffffff
jne 0x4111aa
test edx, edx
jne 0x4111aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, ebx
call fcn.00411300
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420eb4
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x2e0]
mov dword [ebx + 0x18], eax
sub eax, 1
je 0x4111e4
sub eax, 1
je 0x4111d4
sub eax, 1
jne 0x4111e4
mov eax, dword [ebp - 0x3b4]
mov ecx, 0xf4240
mul ecx
mov dword [ebx + 0xc], edx
jmp 0x4111f3
mov dword [ebx + 8], 0x989680
mov dword [ebx + 0xc], 0
jmp 0x4111f6
mov ecx, dword [ebp - 0x2ec]
mov eax, dword [ebp - 0x2f0]
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], eax
cmp dword [ebp - 0x1c], 0
lea edi, [ebx + 0x10]
mov dword [ebp - 0xc], edi
xorps xmm0, xmm0
jne 0x411259
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x20], xmm0
call esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x18]
push eax
call esi
push edi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
adc eax, dword [ebp - 0xc]
push 0
push 2
push eax
push ecx
call fcn.00439750
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x4112d3
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2e8]
push eax
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x3a8]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
push edi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ebx, dword [ebp - 0x2e4]
mov edi, dword [ebp - 0x2e8]
push 0
push 0x2710
push ebx
push edi
call fcn.00439750
mov ecx, eax
mov esi, 0x2710
mov eax, edx
mul esi
mov esi, eax
mov eax, ecx
mov ecx, 0x2710
mul ecx
add esi, edx
sub edi, eax
mov eax, dword [ebp - 0xc]
sbb ebx, esi
add dword [eax], edi
adc dword [eax + 4], ebx
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov dword [0x44edfc], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x44edf4], ebx
xor ecx, ebp
mov dword [0x44edf8], eax
xor eax, eax
pop ebx
call fcn.00420eb4
mov esp, ebp
pop ebp
ret 0x10