Function at 0x40197a
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x224], 0xffffffff
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x18
mov dword [ebp - 0x214], eax
pop eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x30000
push eax
push 0x4063c4
push 0x406c68
push fcn.00404410
push dword [0x4063bc]
mov dword [ebp - 0x230], 1
push 0x406c50
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x210], ebx
call dword [sym.imp.TAPI32.dll_lineInitializeExW]
mov esi, eax
cmp esi, 0x80000052
jne 0x401b27
push ebx
push dword [0x406d00]
call dword [sym.imp.USER32.dll_EnableWindow]
xor ecx, ecx
inc ecx
call fcn.0040230f
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x4063c4
push 0x406c68
push fcn.00404410
push dword [0x4063bc]
push 0x406c50
call dword [sym.imp.TAPI32.dll_lineInitializeExW]
mov esi, eax
cmp esi, 0x80000052
jne 0x401b12
mov edi, dword [ebp - 0x214]
jmp 0x401a93
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x401a79
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [edi + 0x1388]
cmp eax, ecx
jbe 0x401ad8
mov ecx, dword [0x406d00]
mov edx, 0x610
push 5
call fcn.00404ae3
cmp eax, 2
je 0x401b10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x4063c4
push 0x406c68
push fcn.00404410
push dword [0x4063bc]
push 0x406c50
call dword [sym.imp.TAPI32.dll_lineInitializeExW]
mov esi, eax
cmp esi, 0x80000052
je 0x401a93
mov edi, ebx
xor ecx, ecx
call fcn.0040230f
push 1
push dword [0x406d00]
call dword [sym.imp.USER32.dll_EnableWindow]
test esi, esi
je 0x401b32
mov ebx, esi
jmp 0x401da1
lea eax, [ebp - 0x210]
push eax
push 0x20019
push ebx
push 0x401110
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
mov dword [ebp - 0x220], 0x200
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
push ebx
push 0x401174
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401b9d
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 0x214], eax
jmp 0x401ba4
or dword [ebp - 0x214], 0xffffffff
or dword [0x406040], 0xffffffff
mov eax, dword [0x4063c4]
test eax, eax
jne 0x401bef
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 4
push 0x40
mov dword [0x406f40], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x406cfc], eax
mov eax, 0x214
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov eax, dword [0x406cfc]
mov dword [ebp - 0x20c], edi
jmp 0x401c55
mov ecx, 0x214
mul ecx
cmp edx, ebx
ja 0x401e0b
jb 0x401c09
cmp eax, 0xffffffff
ja 0x401e0b
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x20c], eax
mov eax, dword [0x4063c4]
push 4
pop ecx
mul ecx
mov esi, eax
cmp edx, ebx
ja 0x401e0b
jb 0x401c39
cmp esi, 0xffffffff
ja 0x401e0b
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push 0x40
mov dword [0x406f40], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x406cfc], eax
test edi, edi
je 0x401e0b
cmp dword [0x406f40], ebx
je 0x401e0b
test eax, eax
je 0x401e0b
mov eax, ebx
mov esi, ebx
mov dword [ebp - 0x218], eax
cmp dword [0x4063c4], eax
jbe 0x401cee
add edi, 0x10
lea edx, [edi - 0x10]
mov ecx, esi
call fcn.004031f1
test eax, eax
jne 0x401cd3
mov eax, dword [0x406f40]
mov ecx, dword [edi - 0x10]
mov dword [eax + esi*4], ecx
mov eax, dword [0x406cfc]
mov ecx, dword [edi]
mov dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x214]
cmp dword [edi], eax
jne 0x401cb9
mov dword [0x406040], esi
mov eax, dword [ebp - 0x218]
cmp dword [edi - 0xc], ebx
je 0x401cd9
inc eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x218], eax
jmp 0x401cd9
mov eax, dword [ebp - 0x218]
inc esi
add edi, 0x214
cmp esi, dword [0x4063c4]
jb 0x401c86
mov edi, dword [ebp - 0x20c]
cmp dword [0x406040], 0xffffffff
jne 0x401d24
cmp eax, 1
jne 0x401dd4
cmp dword [ebp - 0x214], 0xffffffff
mov eax, dword [ebp - 0x224]
mov dword [0x406040], eax
je 0x401d24
mov ecx, dword [0x406d00]
push 0x30
push 5
pop edx
call fcn.00404ae3
imul esi, dword [0x406040], 0x214
xor eax, eax
mov ecx, 0x85
mov dword [0x4063c8], ebx
add esi, edi
mov edi, 0x406d20
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0x220], 0x200
push eax
push ebx
push ebx
push 0x401194
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401d9b
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [0x4063c8], eax
cmp eax, dword [0x406d20]
jb 0x401d9b
mov dword [0x4063c8], ebx
mov edi, dword [ebp - 0x20c]
cmp dword [ebp - 0x210], 0
je 0x401db6
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x401dc1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405950
mov esp, ebp
pop ebp
ret
push 2
push 0x403530
push dword [0x406d00]
mov esi, edi
mov ecx, 0x85
push 0x1f4
push dword [0x4063bc]
mov edi, 0x406d20
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
dec ebx
jmp 0x401d9b
mov ebx, 0x80000044
jmp 0x401da1