Function at 0x402a80
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Delete registry key
Get common file path
Get installed programs
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0xc6c]
push ebx
sub esp, 0xc94
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
call dword [sym.imp.kernel32.dll_IsWow64Process]
sub esp, 8
test eax, eax
je 0x402ab8
mov eax, dword [ebp - 0xc6c]
test eax, eax
jne 0x402b50
call dword [0x4071a8]
cmp dword [ebp + 8], 1
jle 0x402c30
mov edi, dword [sym.imp.kernel32.dll_lstrcmpW]
mov ebx, 1
jmp 0x402b03
mov dword [esp + 4], str.__silent
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
jne 0x402c70
mov dword [0x404164], 1
cmp dword [ebp + 8], ebx
je 0x402c30
mov eax, dword [ebp + 0xc]
inc ebx
mov esi, dword [eax + ebx*4 - 4]
mov dword [esp + 4], str.__help
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
jne 0x402ad8
mov dword [esp + 4], 0x7d3
mov dword [esp], 1
mov dword [ebp - 0xc70], eax
call sym._output_message
mov edx, dword [ebp - 0xc70]
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [ebp - 0xa08]
xor eax, eax
mov ecx, 0x10
mov edi, edx
lea ebx, [ebp - 0x80c]
lea esi, [ebp - 0xa0c]
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x104
mov dword [ebp - 0xa0c], 0x44
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
sub esp, 8
mov dword [esp + 4], str.uninstaller.exe
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [ebp - 0xc60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0xc0c]
mov dword [esp], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x4031c0
test byte [0x40409c], 2
jne 0x402cc7
mov eax, dword [ebp - 0xc60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
jmp 0x402ab8
call dword [0x4072a0]
mov dword [esp + 0xc], 5
mov dword [esp], eax
mov dword [esp + 8], str.appwiz.cpl
mov dword [esp + 4], 0
call sym._Control_RunDLL_16
mov edx, 1
sub esp, 0x10
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x405196
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
je 0x402d10
mov dword [esp + 4], 0x4051b6
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
jne 0x40302a
cmp dword [ebp + 8], ebx
jg 0x402d85
mov dword [esp + 4], 0x7d1
mov dword [esp], 0
call sym._output_message
mov edx, 1
jmp 0x402b3f
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.failed_to_restart_64_bit__s__err__ld_n
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x40409c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402c17
mov dword [ebp - 0xc70], eax
xor ebx, ebx
call sym._FetchUninstallInformation.isra.0
mov dword [esp + 4], str.en_US
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_setlocale]
mov eax, dword [0x404144]
mov edx, dword [ebp - 0xc70]
test eax, eax
je 0x402b3f
mov esi, edx
lea esi, [esi]
nop
mov eax, dword [0x4040b4]
lea edx, [ebx + ebx*4]
inc ebx
lea eax, [eax + edx*4]
mov edx, dword [eax + 8]
mov dword [esp + 8], edx
mov eax, dword [eax + 4]
mov dword [esp], str._ls_ls_n
mov dword [esp + 4], eax
call sym._wine_dbg_printf
cmp ebx, dword [0x404144]
jb 0x402d50
mov edx, esi
jmp 0x402b3f
mov dword [ebp - 0xc74], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc70], eax
call sym._FetchUninstallInformation.isra.0
mov eax, dword [0x404144]
mov edx, dword [ebp - 0xc74]
test eax, eax
je 0x40308f
xor edi, edi
jmp 0x402dc5
inc edi
cmp edi, dword [0x404144]
jae 0x403089
mov eax, dword [0x4040b4]
lea ebx, [edi + edi*4]
shl ebx, 2
mov esi, dword [eax + ebx + 4]
call dword [sym.imp.kernel32.dll_GetThreadLocale]
mov ecx, dword [ebp - 0xc70]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x402db8
mov ecx, dword [0x4040b4]
mov edx, dword [ebp - 0xc74]
inc dword [ecx + ebx + 0x10]
mov ebx, dword [0x404144]
cmp ebx, edi
jbe 0x40308f
movzx eax, byte [0x40409c]
test ebx, ebx
je 0x4031b6
mov dword [ebp - 0xc78], edx
xor esi, esi
jmp 0x402ead
mov eax, dword [ebp - 0xc60]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0xc68]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov edx, eax
movzx eax, byte [0x40409c]
sub esp, 8
mov ecx, eax
and ecx, 8
jne 0x4030be
inc esi
cmp esi, dword [0x404144]
jae 0x403101
mov ecx, dword [0x4040b4]
lea edx, [esi + esi*4]
lea ebx, [edx*4]
mov dword [ebp - 0xc70], edx
lea edx, [ecx + ebx]
mov ecx, eax
mov edi, dword [edx + 0x10]
and ecx, 8
test edi, edi
je 0x402e9a
test cl, cl
jne 0x40304c
xor eax, eax
mov ecx, 0x10
lea edi, [ebp - 0xc4c]
rep stosd dword es:[edi], eax
mov eax, 1
mov dword [ebp - 0xc50], 0x44
mov word [ebp - 0xc20], ax
lea eax, [ebp - 0xc60]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0xc50]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [edx + 0xc]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x402e50
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ecx, dword [0x4072a4]
sub esp, 4
mov edi, eax
lea eax, [ebp - 0xc0c]
mov dword [esp], edi
mov dword [ebp - 0xc74], ecx
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], eax
mov dword [esp + 4], 0x3e8
call ecx
lea edx, [ebp - 0xa0c]
mov ecx, dword [ebp - 0xc74]
sub esp, 0x10
mov dword [esp + 8], edx
mov dword [esp], edi
lea edi, [ebp - 0x80c]
mov dword [esp + 0xc], 0xff
mov dword [esp + 4], 0x3e9
call ecx
mov eax, dword [0x4040b4]
lea edx, [ebp - 0xa0c]
sub esp, 0x10
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [esp + 8], eax
call dword [0x4072ac]
lea eax, [ebp - 0xc0c]
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0x24
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [0x4072a8]
sub esp, 0x10
cmp eax, 6
je 0x403144
movzx eax, byte [0x40409c]
mov ecx, eax
and ecx, 8
jmp 0x402e9a
mov dword [esp + 8], esi
mov dword [esp + 4], 0x7d2
mov dword [esp], 0
call sym._output_message
mov edx, 1
jmp 0x402b3f
mov eax, dword [edx + 8]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.uninstalling__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.UninstallProgram
mov dword [esp + 4], 0x40409c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [0x4040b4]
add edx, ebx
jmp 0x402ed4
mov edx, dword [ebp - 0xc74]
mov eax, dword [ebp - 0xc70]
mov dword [esp + 4], 0x7d0
mov dword [esp], 0
mov dword [esp + 8], eax
mov dword [ebp - 0xc74], edx
call sym._output_message
mov edx, dword [ebp - 0xc74]
jmp 0x402b3f
mov eax, dword [ebp - 0xc68]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str._d:__08lx_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.UninstallProgram
mov dword [esp + 4], 0x40409c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x40409c]
mov ecx, eax
and ecx, 8
jmp 0x402e9a
mov edx, dword [ebp - 0xc78]
test cl, cl
je 0x402b3f
mov dword [esp + 0xc], str.finished_uninstall_phase._n
mov dword [esp + 8], str.UninstallProgram
mov dword [esp + 4], 0x40409c
mov dword [esp], 3
mov dword [ebp - 0xc70], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0xc70]
jmp 0x402b3f
lea eax, [ebp - 0xc64]
mov ecx, dword [ebp - 0xc70]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [0x4040b4]
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionUninstall
mov eax, dword [eax + ecx*4]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov eax, dword [0x4040b4]
sub esp, 0x14
mov eax, dword [eax + ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0xc64]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x403019
and eax, 8
mov ecx, eax
jmp 0x403107
test byte [0x40409c], 8
jne 0x40320c
mov eax, dword [ebp - 0xc0c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push eax
push eax
lea eax, [ebp - 0xc50]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc0c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push eax
push eax
mov eax, dword [ebp - 0xc50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x40409c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4031c9