Function at 0x40104b
Capabilities:
Copy file
Delete file
Delete registry key
Get common file path
Get file version info
Get installed programs
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
jmp 0x404090
sub esp, 0x888
mov eax, dword [0x44e1b4]
xor eax, esp
mov dword [esp + 0x884], eax
push ebx
mov ebx, dword [esp + 0x890]
push edi
xor edi, edi
xor eax, eax
cmp ebx, edi
je 0x4044e8
push ebp
push esi
push 0x208
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x490]
push edi
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
call fcn.0041be10
push 0x208
lea ecx, [esp + 0x294]
push edi
push ecx
call fcn.0041be10
push 0x200
lea edx, [esp + 0x6b0]
push edi
push edx
call fcn.0041be10
xor eax, eax
add esp, 0x24
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
lea ecx, [esp + 0x288]
push ecx
call ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x10]
push edx
push 0x20019
push edi
lea eax, [esp + 0x290]
push eax
push 0x80000002
call esi
test eax, eax
je 0x4041c4
cmp dword [0x44fe24], 5
jl 0x4041c4
lea ecx, [esp + 0x10]
push ecx
push 0x20119
push edi
lea edx, [esp + 0x290]
push edx
push 0x80000002
call esi
test eax, eax
jne 0x404395
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x80]
push ecx
push 0
push 0
push str.UninstallString
push edx
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404230
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push str.UninstallString
push 0x80000002
call esi
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [esp + 0x10]
push eax
call edi
xor eax, eax
jmp 0x4044e6
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x44fe24], 3
push 0x450440
jl 0x404298
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea edx, [esp + 0x80]
push edx
call esi
test eax, eax
jne 0x404278
push str.Uninst.isu
lea eax, [esp + 0x80]
push eax
call esi
neg eax
sbb eax, eax
and eax, 4
jmp 0x4044e6
mov ecx, 0x450440
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x404280
sub ecx, esi
sar ecx, 1
mov word [eax + ecx*2], di
jmp 0x40433c
lea ecx, [esp + 0x80]
push ecx
call fcn.0041bd96
add esp, 8
test eax, eax
jne 0x4042ca
lea edx, [esp + 0x7c]
push str.Uninst.isu
push edx
call fcn.0041bd96
add esp, 8
neg eax
sbb eax, eax
and eax, 4
jmp 0x4044e6
mov ecx, 0x450440
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4042d2
sub ecx, esi
sar ecx, 1
mov word [eax + ecx*2], di
lea eax, [esp + 0x48c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x450440
lea ecx, [esp + 0x490]
push ecx
call ebp
push 0
lea edx, [esp + 0x490]
push edx
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x48c]
push ecx
lea edx, [esp + 0x80]
push 0x104
push edx
call fcn.0041c22f
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x80]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [esp + 0x14], eax
je 0x404395
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 1
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x404395
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push esi
push edx
push eax
lea ecx, [esp + 0x88]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40439c
push esi
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x4044e6
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x28]
push eax
push 0x435bfc
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
push esi
push 0
je 0x40438c
mov eax, dword [esp + 0x2c]
movzx ecx, word [eax + 8]
movzx edx, word [eax + 0xe]
movzx ebp, word [eax + 0xa]
movzx eax, word [eax + 0xc]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x477fb0
lea ecx, [esp + 0x698]
push 0x100
push ecx
call fcn.0041c22f
add esp, 0xc
jmp 0x404400
movzx eax, word [esp + edi*2 + 0x694]
xor edx, edx
cmp ax, 0x2e
sete dl
xor ecx, ecx
test ax, ax
sete cl
or edx, ecx
je 0x40445e
mov esi, dword [esp + 0x20]
push edi
lea edx, [esp + esi*2 + 0x698]
push edx
lea eax, [esp + 0x5c]
push 0x14
push eax
call fcn.0041c29b
lea ecx, [esp + 0x64]
push ecx
call fcn.0041bee1
mov ecx, dword [esp + 0x2c]
lea edx, [esi + edi + 1]
add esp, 0x14
mov dword [esp + ecx*4 + 0x28], eax
xor edi, edi
add ecx, 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
jmp 0x404461
add edi, 1
cmp dword [esp + 0x18], 4
jb 0x404400
mov eax, dword [esp + 0x28]
cmp ebp, eax
jbe 0x404477
mov esi, 1
jmp 0x4044d0
jae 0x404480
mov esi, 2
jmp 0x4044d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jbe 0x404493
mov esi, 1
jmp 0x4044d0
jae 0x40449c
mov esi, 2
jmp 0x4044d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
cmp ecx, eax
jbe 0x4044af
mov esi, 1
jmp 0x4044d0
jae 0x4044b8
mov esi, 2
jmp 0x4044d0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
cmp ecx, eax
jbe 0x4044cb
mov esi, 1
jmp 0x4044d0
sbb esi, esi
add esi, 3
cmp dword [0x44fe24], 3
jge 0x4044e4
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x88c]
pop edi
pop ebx
xor ecx, esp
call fcn.0041bdf4
add esp, 0x888
ret