Function at 0x415840
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Delete registry key
Get installed programs

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x850
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00413910
mov ebx, eax
lea esi, [ebx + 0xd4]
mov edi, 8
mov dword [ebp - 0x7f8], 0
mov dword [ebp - 0x7fc], ebx
cmp dword [esi + 0x14], edi
jb 0x415881
mov eax, dword [esi]
jmp 0x415883
mov eax, esi
push eax
call fcn.00410bd0
add esp, 4
lea eax, [ebp - 0x7f8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4158d0
cmp dword [esi + 0x14], edi
jb 0x4158b5
mov esi, dword [esi]
mov ecx, dword [ebp - 0x7f8]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [ebp - 0x7f8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx + 0xb0], edi
lea esi, [ebx + 0x9c]
jb 0x4158e0
mov esi, dword [esi]
test esi, esi
je 0x4159e3
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4158f0
sub eax, edx
sar eax, 1
je 0x4159e3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4159e3
push esi
lea ecx, [ebp - 0x7f0]
call fcn.00411320
push 0xd
push str.__UnregServer
lea ecx, [ebp - 0x7f0]
call fcn.004111d0
push 0x44
lea eax, [ebp - 0x850]
push 0
push eax
call fcn.0048f070
add esp, 0xc
push 0xfffffffffffffff4
mov dword [ebp - 0x850], 0x44
mov dword [ebp - 0x824], 0x100
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x810], eax
mov eax, dword [ebp - 0x7f0]
cmp dword [ebp - 0x7dc], edi
jae 0x41597b
lea eax, [ebp - 0x7f0]
lea ecx, [ebp - 0x80c]
push ecx
lea edx, [ebp - 0x850]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4159cc
mov eax, dword [ebp - 0x80c]
push 0x4e20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x80c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x808]
push edx
call esi
cmp dword [ebp - 0x7dc], edi
jb 0x4159e3
mov eax, dword [ebp - 0x7f0]
push eax
call fcn.0048e224
add esp, 4
mov ecx, dword [ebx + 0x1c8]
lea eax, [ebx + 0x1b4]
cmp ecx, edi
jb 0x4159f7
mov esi, dword [eax]
jmp 0x4159f9
mov esi, eax
test esi, esi
je 0x415b5c
cmp ecx, edi
jb 0x415a07
mov eax, dword [eax]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415a10
sub eax, edx
sar eax, 1
je 0x415b5c
xor ecx, ecx
push 0x7ce
push ecx
lea edx, [ebp - 0x7d2]
push edx
mov word [ebp - 0x7d4], cx
call fcn.0048f070
push esi
lea eax, [ebp - 0x7d4]
push 0x3e8
push eax
call fcn.0048f4e8
add esp, 0x18
lea ecx, [ebp - 0x7f4]
push ecx
lea edx, [ebp - 0x7d4]
push edx
mov dword [ebp - 0x7f4], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov eax, dword [ebp - 0x7f4]
dec eax
xor esi, esi
test eax, eax
jle 0x415b57
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea esp, [esp]
push 0x3c
lea ecx, [ebp - 0x848]
push 0
push ecx
call fcn.0048f070
mov edx, dword [edi + esi*4]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x83c], eax
mov eax, dword [edi + esi*4 + 4]
lea ecx, [ebp - 0x848]
push ecx
mov dword [ebp - 0x848], 0x3c
mov dword [ebp - 0x844], 0x8040
mov dword [ebp - 0x838], edx
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x82c], 5
call ebx
test eax, eax
je 0x415b24
mov eax, dword [ebp - 0x810]
test eax, eax
je 0x415b24
cmp eax, 0xffffffff
je 0x415b24
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x810]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + esi*4 + 4]
mov ecx, dword [edi + esi*4]
push eax
push ecx
push 0x4b1fa4
jmp 0x415b32
mov edx, dword [edi + esi*4 + 4]
mov eax, dword [edi + esi*4]
push edx
push eax
push 0x4b1f7c
push str.SMSetup
call fcn.0041a1c0
mov ecx, dword [ebp - 0x7f4]
add esi, 2
dec ecx
add esp, 0x10
cmp esi, ecx
jl 0x415a90
mov ebx, dword [ebp - 0x7fc]
mov edi, 8
cmp byte [ebp + 8], 0
je 0x415b74
cmp dword [ebx + 0x78], edi
lea eax, [ebx + 0x64]
jb 0x415b6c
mov eax, dword [eax]
push eax
mov ecx, ebx
call fcn.00412750
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 4