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

Disassembly:
push 0xffffffffffffffff
push 0x4419a0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x456600]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
xor ebx, ebx
sar ecx, 2
mov dword [esp + 0x24], ebx
test ecx, ecx
jbe 0x409317
call fcn.00409890
mov esi, dword [eax]
cmp dword [esi], 1
jne 0x40903e
lea edi, [esi + 0x620]
lea ebx, [esp + 0x2c]
call fcn.0040aa70
call fcn.00410348
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40932e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x2c]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x38]
movzx edx, ax
push edx
shr eax, 0x10
push eax
lea eax, [esp + 0x28]
push str._u._u._u._u
push eax
call fcn.004048a0
xor ecx, ecx
add esp, 0x18
lea eax, [esi + 0x828]
test eax, eax
setne cl
test ecx, ecx
je 0x40932e
mov edi, dword [esp + 0x18]
push eax
push edi
call fcn.0042caff
add esp, 8
test eax, eax
jne 0x409013
push eax
lea ecx, [esi + 8]
push str.module_already_installed.
push ecx
call fcn.0040b6a0
lea eax, [edi - 0x10]
add esp, 0xc
mov dword [esi + 4], 2
mov dword [esp + 0x44], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4092ed
lea eax, [edi - 0x10]
mov dword [esi + 4], 1
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40903e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi], 2
jne 0x4091f2
lea ecx, [esi + 0x620]
push ecx
lea ecx, [esp + 0x20]
call fcn.004050b0
mov dword [esp + 0x44], 1
xor ebx, ebx
call fcn.00410348
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40932e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x44], 2
call fcn.00410348
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40932e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x7c
mov byte [esp + 0x48], 3
mov ecx, dword [esp + 0x20]
push ebx
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004102cb
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
je 0x409184
push eax
lea eax, [esp + 0x1c]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call fcn.004048a0
mov edi, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 0x20019
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40915f
lea eax, [edi - 0x10]
mov dword [esi + 4], 1
mov byte [esp + 0x44], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40912e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409153
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
cmp ebx, 0xa
jl 0x409061
jmp 0x4091ca
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea ecx, [esi + 8]
push str.module_already_installed.
push ecx
call fcn.0040b6a0
add esp, 0xc
mov dword [esi + 4], 2
lea eax, [edi - 0x10]
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0x44], 2
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4091a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4091ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4091f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi], 3
jne 0x4092f9
lea ecx, [esi + 0x620]
push ecx
lea ecx, [esp + 0x24]
call fcn.004050b0
mov ebx, 4
mov dword [esp + 0x44], ebx
xor edi, edi
call fcn.00410348
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40932e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x7c
mov byte [esp + 0x48], 5
mov ecx, dword [esp + 0x24]
push edi
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004102cb
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409293
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esi + 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40928b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp edi, 0xa
jl 0x409216
jmp 0x4092d1
push 0
lea ecx, [esi + 8]
push str.module_already_installed.
push ecx
call fcn.0040b6a0
mov byte [esp + 0x50], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esi + 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4092d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov ebx, dword [esp + 0x24]
inc ebx
sar ecx, 2
mov dword [esp + 0x24], ebx
cmp ebx, ecx
jb 0x408f41
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x38
ret 4
push 0x80004005
call fcn.00404f30
int3