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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x1007050]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x224], 0xffffffff
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x20c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x18
mov dword [ebp - 0x210], eax
pop eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
xor eax, eax
mov dword [ebp - 0x230], 1
lea edi, [ebp - 0x22c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x1007134
push 0x1007088
mov ebx, fcn.01002338
push ebx
push dword [0x100710c]
mov edi, 0x1007110
push edi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x220], 0x30000
mov dword [ebp - 0x218], esi
call sub.TAPI32.dll_lineInitializeExW
mov esi, 0x80000052
cmp eax, esi
jne 0x1004224
push 0
push dword [0x1007f3c]
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
call fcn.010018fc
jmp 0x10041d7
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
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x100416c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x210]
add ecx, 0x1388
cmp eax, ecx
jbe 0x10041d7
push 5
push 0x610
push dword [0x1007f3c]
call fcn.01001b33
cmp eax, 2
je 0x1004206
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x1007134
push 0x1007088
push ebx
push dword [0x100710c]
push edi
call sub.TAPI32.dll_lineInitializeExW
cmp eax, esi
mov dword [ebp - 0x208], eax
je 0x1004186
xor ebx, ebx
push ebx
call fcn.010018fc
push 1
push dword [0x1007f3c]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp - 0x208]
jmp 0x1004226
xor ebx, ebx
cmp eax, ebx
je 0x1004235
mov dword [ebp - 0x214], eax
jmp 0x10044de
lea eax, [ebp - 0x218]
push eax
push 0x20019
push ebx
push 0x1001528
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
push ebx
push 0x100165c
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x200
mov word [ebp - 0x204], bx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100429e
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 0x210], eax
jmp 0x10042a5
or dword [ebp - 0x210], 0xffffffff
mov eax, dword [0x1007134]
or dword [0x100704c], 0xffffffff
cmp eax, ebx
jne 0x10042df
push 4
call fcn.010018d2
push 4
mov dword [0x1007cfc], eax
call fcn.010018d2
push 0x214
mov dword [0x1007f34], eax
call fcn.010018d2
mov dword [ebp - 0x20c], eax
jmp 0x100434d
lea ecx, [ebp - 0x208]
push ecx
mov ecx, 0x214
mul ecx
push edx
push eax
call fcn.01001775
test eax, eax
jl 0x10044d4
push dword [ebp - 0x208]
call fcn.010018d2
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x1007134]
push 4
pop ecx
mul ecx
push edx
push eax
call fcn.01001775
test eax, eax
jl 0x10044d4
push dword [ebp - 0x208]
call fcn.010018d2
push dword [ebp - 0x208]
mov dword [0x1007cfc], eax
call fcn.010018d2
mov dword [0x1007f34], eax
mov esi, dword [ebp - 0x20c]
cmp esi, ebx
je 0x10044d4
cmp dword [0x1007cfc], ebx
je 0x10044d4
cmp dword [0x1007f34], ebx
je 0x10044d4
xor edi, edi
cmp dword [0x1007134], ebx
mov dword [ebp - 0x208], ebx
jbe 0x10043dd
add esi, 0x10
lea ebx, [esi - 0x10]
push ebx
push edi
call fcn.0100215a
test eax, eax
jne 0x10043cc
mov eax, dword [ebx]
mov ecx, dword [0x1007cfc]
mov dword [ecx + edi*4], eax
mov eax, dword [esi]
mov ecx, dword [0x1007f34]
mov dword [ecx + edi*4], eax
mov eax, dword [ebp - 0x210]
cmp dword [esi], eax
jne 0x10043ba
mov dword [0x100704c], edi
cmp dword [esi - 0xc], 0
je 0x10043cc
inc dword [ebp - 0x208]
mov dword [ebp - 0x224], edi
inc edi
add esi, 0x214
cmp edi, dword [0x1007134]
jb 0x1004386
xor ebx, ebx
cmp dword [0x100704c], 0xffffffff
jne 0x1004416
cmp dword [ebp - 0x208], 1
jne 0x1004493
cmp dword [ebp - 0x210], 0xffffffff
mov eax, dword [ebp - 0x224]
mov dword [0x100704c], eax
je 0x1004416
push 0x30
push 5
push dword [0x1007f3c]
call fcn.01001b33
mov esi, dword [0x100704c]
imul esi, esi, 0x214
add esi, dword [ebp - 0x20c]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
push ebx
push 0x1001638
push dword [ebp - 0x218]
mov ecx, 0x85
mov edi, 0x1007d20
rep movsd dword es:[edi], dword [esi]
mov dword [0x1007138], ebx
mov dword [ebp - 0x21c], 0x200
mov word [ebp - 0x204], bx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10044de
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
cmp eax, dword [0x1007d20]
pop ecx
mov dword [0x1007138], eax
jb 0x10044de
mov dword [0x1007138], ebx
jmp 0x10044de
mov esi, dword [ebp - 0x20c]
push 2
push 0x100324c
push dword [0x1007f3c]
mov ecx, 0x85
push 0x1f4
push dword [0x100710c]
mov edi, 0x1007d20
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
mov dword [ebp - 0x214], ecx
jmp 0x10044de
mov dword [ebp - 0x214], 0x80000044
cmp dword [ebp - 0x218], ebx
je 0x10044f2
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20c], ebx
pop edi
pop esi
pop ebx
je 0x1004508
push dword [ebp - 0x20c]
call fcn.010018eb
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
call fcn.0100589d
leave
ret