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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [ebp + 8]
and dword [eax], 0
mov eax, dword [ebp + 0xc]
push ebx
mov dword [eax], 1
mov eax, dword [ebp + 0x10]
and dword [eax], 0
push esi
push edi
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0xc]
push eax
call esi
movzx edi, word [ebp - 0x46]
add edi, dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
call esi
movzx ebx, word [ebp - 0x48]
imul ebx, dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
call esi
movzx eax, word [ebp - 0x42]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
call esi
movzx esi, word [ebp - 0x44]
imul esi, dword [ebp - 0xc]
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x40]
push ebx
push edi
push eax
call fcn.00466fa6
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x90]
push eax
call fcn.004169c1
test eax, eax
je 0x417c75
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x40]
push eax
call fcn.00415eae
test eax, eax
je 0x417c75
cmp dword [ebp - 0x3c], edi
jne 0x417c75
cmp dword [ebp - 0x38], ebx
jne 0x417c75
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x34], eax
jne 0x417c75
cmp dword [ebp - 0x30], esi
jne 0x417c75
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x78]
jne 0x417c75
test eax, eax
jne 0x417c0a
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x6c]
jne 0x417c75
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x68]
jne 0x417c75
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x70]
jne 0x417c75
sub esp, 0x30
push 0xc
pop ecx
mov edi, esp
lea esi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
call fcn.004145b1
jmp 0x417c70
cmp eax, 1
jne 0x417c36
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x6c]
jne 0x417c75
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x70]
jne 0x417c75
sub esp, 0x30
push 0xc
pop ecx
mov edi, esp
lea esi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
call fcn.004145e3
jmp 0x417c70
cmp eax, 2
jne 0x417c75
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x6c]
jne 0x417c75
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x64]
jne 0x417c75
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x68]
jne 0x417c75
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x70]
jne 0x417c75
sub esp, 0x30
push 0xc
pop ecx
mov edi, esp
lea esi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
call fcn.0041460f
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x417cba
push 0x401858
call fcn.004676d0
test eax, eax
pop ecx
je 0x417ca5
push 0x401840
call fcn.004676d0
neg eax
sbb eax, eax
and eax, 9
add eax, 0x11
pop ecx
mov dword [esi], eax
jmp 0x417cba
push 0x401828
call fcn.004676d0
test eax, eax
pop ecx
je 0x417cba
mov dword [esi], 9
mov ebx, dword [ebp - 4]
mov ecx, ebx
call fcn.00415fdd
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
xor eax, eax
lea edi, [ebp - 0x60]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edx, [ebp - 0x60]
push edx
stosd dword es:[edi], eax
mov eax, dword [ebx + 0x74]
mov ecx, dword [eax]
push 0x402038
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x417cf9
cmp word [ebp - 0x60], 0x13
jne 0x417cf9
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x417cff
mov eax, dword [ebp + 0x10]
and dword [eax], 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
cmp dword [ebx + 0x68], 0
jne 0x417d8b
mov eax, dword [ebp + 0x10]
push dword [eax]
mov esi, dword [esi]
mov edi, dword [ebp + 8]
push esi
push dword [edi]
mov ecx, ebx
call fcn.004146c6
test eax, eax
jne 0x417d8b
cmp esi, 4
jne 0x417d8b
push 0x401810
call fcn.004676d0
test eax, eax
pop ecx
je 0x417d43
mov dword [edi], 0xe
jmp 0x417d8b
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp + 0x10]
push eax
push 0x201
push 0
mov ebx, 0x4017b8
push ebx
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
je 0x417d79
lea eax, [ebp + 0x10]
push eax
push 0x101
push 0
push ebx
push edi
call esi
test eax, eax
jne 0x417d8b
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov dword [eax], 0xe
pop edi
pop esi
pop ebx
leave
ret 0xc