Function at 0x40ea25
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x4340a8
call fcn.0042617c
mov eax, 0x8154
call fcn.00426210
lea eax, [ebp - 0x4c]
push ebx
push eax
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push str.SOFTWAREInstallShieldUpdate_ServiceScheduler
mov dword [ebp - 0x1c], ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ecb0
push esi
push edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40eca5
cmp dword [ebp - 0x20], ebx
je 0x40eca5
mov edx, 0xfff
lea edi, [ebp - 0x415f]
mov ecx, edx
mov byte [ebp - 0x4160], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x815f]
mov byte [ebp - 0x8160], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x15f]
mov byte [ebp - 0x160], bl
cmp dword [ebp - 0x20], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xe], bl
mov dword [ebp - 0x14], ebx
jbe 0x40eca5
mov esi, 0x43fd38
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0x3fff
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x4160]
push eax
mov dword [ebp - 0x28], 0x104
push dword [ebp - 0x14]
mov byte [ebp - 0x4160], bl
mov byte [ebp - 0x160], bl
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 0x160]
lea ecx, [ebp - 0x48]
push eax
call fcn.00406b94
mov dword [ebp - 0x48], 0x436480
cmp word [0x43fd38], bx
mov dword [ebp - 4], ebx
mov eax, esi
je 0x40eb53
inc eax
inc eax
cmp word [eax], bx
jne 0x40eb4c
sub eax, esi
lea ecx, [ebp - 0x48]
sar eax, 1
push eax
push esi
push ebx
call fcn.00413858
cmp word [0x43fd38], bx
mov eax, esi
je 0x40eb74
inc eax
inc eax
cmp word [eax], bx
jne 0x40eb6d
sub eax, esi
lea ecx, [ebp - 0x48]
sar eax, 1
push eax
push esi
call fcn.00404b27
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x48]
push eax
lea eax, [edi + 0x30]
push eax
call fcn.0041793a
pop ecx
test al, al
pop ecx
je 0x40ebb0
lea eax, [ebp - 0x4160]
mov byte [ebp - 0xd], 1
push eax
lea eax, [ebp - 0x8160]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x48]
add edi, 0x10
push eax
push edi
call fcn.0041793a
pop ecx
test al, al
pop ecx
je 0x40ebc7
mov byte [ebp - 0xe], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040311b
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jb 0x40eaea
cmp byte [ebp - 0xd], bl
je 0x40eca5
cmp byte [ebp - 0xe], bl
je 0x40ec01
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + 0x30]
push eax
call fcn.0040e7d2
jmp 0x40eca5
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], 0x436448
lea eax, [ebp - 0x38]
mov ecx, 0x4447b8
push eax
mov dword [ebp - 4], 1
call fcn.0040e4d8
cmp dword [ebp - 0x2c], ebx
je 0x40ec3a
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
test eax, eax
jne 0x40ec48
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + 0x30]
push eax
call fcn.0040e7d2
jmp 0x40ec99
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi + 0x1c]
cmp eax, ebx
jne 0x40ec56
xor esi, esi
jmp 0x40ec5b
push eax
call esi
mov esi, eax
lea eax, [ebp - 0x5c]
push 0x104
push eax
lea ecx, [edi + 0x10]
call fcn.0040b87f
inc esi
mov ecx, eax
push esi
mov byte [ebp - 4], 2
call fcn.0040ab9d
push eax
push 1
lea eax, [ebp - 0x8160]
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.0040ab62
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004031de
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret