Function at 0x427c60
Capabilities:
Check if file exists
Get installed programs

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57d940
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5ef220]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 0x30], ecx
mov eax, dword [ecx + 4]
xor ebx, ebx
mov edx, dword [ecx]
sub eax, edx
sar eax, 2
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x4280b9
cmp eax, ebx
jbe 0x4280d8
mov edi, dword [edx + ebx*4]
cmp dword [edi], 1
jne 0x427db2
lea ecx, [edi + 0x620]
lea edx, [esp + 0x34]
call fcn.00429af0
call fcn.004311d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4280ce
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [esp + 0x40]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [esp + 0x2c]
push ecx
push str._u._u._u._u
push eax
call fcn.0040f7d0
xor eax, eax
lea ecx, [edi + 0x828]
add esp, 0x18
test ecx, ecx
setne al
test eax, eax
je 0x4280ce
mov esi, dword [esp + 0x20]
push ecx
push esi
call fcn.005594af
add esp, 8
test eax, eax
jne 0x427d89
lea eax, [edi + 8]
push eax
push str.MSG:_lib_s__module_already_installed.
call fcn.0042abd0
add esi, 0xfffffff0
mov dword [edi + 4], 2
add esp, 8
mov dword [esp + 0x48], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42809e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42809e
add esi, 0xfffffff0
mov dword [edi + 4], 1
mov dword [esp + 0x48], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x427db2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi], 2
jne 0x427f74
lea eax, [edi + 0x620]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040f690
mov dword [esp + 0x48], 1
xor ebx, ebx
call fcn.004311d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4280ce
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x48], 2
call fcn.004311d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4280ce
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
push 0x7c
push ebx
mov byte [esp + 0x50], 3
lea eax, [esp + 0x1c]
push dword [esp + 0x30]
push eax
call fcn.00431ced
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x427f08
push eax
lea eax, [esp + 0x24]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call fcn.0040f7d0
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x30]
add esp, 0xc
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x427ee6
lea eax, [esp + 0x24]
push eax
push 0x20119
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x427ee6
add esi, 0xfffffff0
mov dword [edi + 4], 1
mov byte [esp + 0x48], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x427eb7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x48], 1
or ecx, 0xffffffff
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x427eda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, 0xa
jl 0x427dd5
jmp 0x427f4a
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi + 8]
push eax
push str.MSG:_lib_s__module_already_installed.
call fcn.0042abd0
add esp, 8
mov dword [edi + 4], 2
add esi, 0xfffffff0
mov byte [esp + 0x48], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x427f27
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x48], 1
or ecx, 0xffffffff
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x427f4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x48], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x427f70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [esp + 0x1c]
cmp dword [edi], 3
jne 0x428070
lea eax, [edi + 0x620]
push eax
lea ecx, [esp + 0x30]
call fcn.0040f690
mov dword [esp + 0x48], 4
xor esi, esi
call fcn.004311d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4280ce
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x7c
push esi
mov byte [esp + 0x50], 5
lea eax, [esp + 0x20]
push dword [esp + 0x34]
push eax
call fcn.00431ced
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42800f
mov byte [esp + 0x48], 4
or ecx, 0xffffffff
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
mov dword [edi + 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x428007
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, 0xa
jl 0x427f97
jmp 0x42804a
lea eax, [edi + 8]
push eax
push str.MSG:_lib_s__module_already_installed.
call fcn.0042abd0
mov byte [esp + 0x50], 4
add esp, 8
mov edx, dword [esp + 0x18]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [edi + 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42804a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x48], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x428070
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi], 4
jne 0x428087
lea ecx, [edi + 8]
call fcn.0042b4a0
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [edi + 4], eax
cmp dword [edi], 5
jne 0x42809e
lea ecx, [edi + 8]
call fcn.0042b7d0
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [edi + 4], eax
mov esi, dword [esp + 0x30]
inc ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 4]
mov edx, dword [esi]
sub eax, edx
sar eax, 2
cmp eax, ebx
ja 0x427cb0
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040fbb0
push str.invalid_vector_T__subscript
call fcn.0057a40d
int3