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

Disassembly:
sub esp, 0x3a0
mov ecx, dword [esp + 0x3a4]
push ebx
xor ebx, ebx
mov eax, dword [ecx*4 + 0x42abd0]
mov dword [esp + 0xc], ebx
cmp eax, ebx
jne 0x40a3c9
xor eax, eax
pop ebx
add esp, 0x3a0
ret
cmp dword [eax], ebx
jne 0x40a3d7
xor eax, eax
pop ebx
add esp, 0x3a0
ret
test byte [eax + 8], 2
jne 0x40a3e7
xor eax, eax
pop ebx
add esp, 0x3a0
ret
mov eax, dword [ecx*4 + 0x42ab90]
push ebp
push esi
push edi
mov edi, dword [eax + 0x10]
cmp edi, ebx
je 0x40a6f6
cmp byte [edi], 0
je 0x40a6f6
xor eax, eax
mov cl, byte [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov byte [esp + eax + 0x144], cl
inc eax
test cl, cl
jne 0x40a407
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x144]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0x148]
push ecx
push 0x80000002
call esi
test eax, eax
je 0x40a47f
lea edx, [esp + 0x14]
lea eax, [esp + 0x144]
push edx
push eax
push 0x80000001
call esi
test eax, eax
jne 0x40a6f6
mov ecx, 0x5a
xor eax, eax
lea edi, [esp + 0x144]
lea edx, [esp + 0x144]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
lea eax, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ebx
push str.UninstallString
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x168
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40a4dc
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3a0
ret
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x144]
lea ebp, [esp + 0x144]
cmp al, 0x22
mov bl, 1
mov dword [esp + 0x10], ebp
mov byte [esp + 0x40], 0
jne 0x40a55d
lea edx, [esp + 0x145]
lea ecx, [esp + 0x145]
push 0x22
push edx
mov dword [esp + 0x18], ecx
call fcn.00419d80
add esp, 8
test eax, eax
je 0x40a551
mov byte [eax], 0
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
jne 0x40a53a
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
je 0x40a531
cmp byte [eax], 0
je 0x40a551
lea edx, [esp + 0x40]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a545
xor bl, bl
mov al, byte [esp + 0x40]
mov ebp, dword [esp + 0x10]
test al, al
jne 0x40a5c5
push ebp
call fcn.00401100
add esp, 4
test eax, eax
jne 0x40a5c5
push str..exe
push ebp
call fcn.0041a240
add esp, 8
test eax, eax
jne 0x40a58e
push str..EXE
push ebp
call fcn.0041a240
add esp, 8
test eax, eax
je 0x40a5c5
mov cl, byte [eax + 4]
add eax, 4
cmp cl, 0x20
jne 0x40a5c5
mov byte [eax], 0
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
jne 0x40a5ae
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
je 0x40a5a5
cmp byte [eax], 0
je 0x40a5c5
lea edx, [esp + 0x40]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a5b9
xor bl, bl
push ebp
call fcn.00401100
add esp, 4
test eax, eax
je 0x40a6f6
test bl, bl
je 0x40a607
push 2
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x40a603
push 5
push 0x6d
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x40a5fc
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
jne 0x40a60e
mov eax, 0x425898
jmp 0x40a623
mov eax, dword [esp + 0x3b8]
test eax, eax
mov eax, 0x425894
jne 0x40a623
mov eax, str._X__S
mov cl, byte [esp + 0x40]
test cl, cl
jne 0x40a63d
lea edx, [esp + 0x40]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a631
jmp 0x40a694
lea edx, [esp + 0x2ac]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a646
lea edi, [esp + 0x2ac]
or ecx, 0xffffffff
xor eax, eax
push 0xfc
repne scasb al, byte es:[edi]
mov ax, word [0x425640]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x2b0]
push ecx
push edx
mov word [edi - 1], ax
call fcn.0041a110
add esp, 0xc
xor eax, eax
mov cl, byte [esp + eax + 0x2ac]
mov byte [esp + eax + 0x40], cl
inc eax
test cl, cl
jne 0x40a684
lea eax, [esp + 0x40]
push 1
push eax
push ebp
call fcn.00402c40
add esp, 0xc
test eax, eax
je 0x40a6f6
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x40a6ee
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call fcn.0041a2c0
add esp, 4
test eax, eax
je 0x40a6ee
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x40a6c3
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3a0
ret