Function at 0x402c50
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:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0xc78]
push ebx
push ecx
sub esp, 0xca8
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
call dword [sym.imp.kernel32.dll_IsWow64Process]
sub esp, 8
test eax, eax
je 0x402c98
mov eax, dword [ebp - 0xc78]
test eax, eax
jne 0x402fb0
call dword [0x4071ac]
cmp ebx, 1
jle 0x403098
mov edi, dword [esi + 4]
mov eax, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [esp + 4], str.__help
mov dword [esp], edi
mov dword [ebp - 0xc80], eax
call eax
mov dword [ebp - 0xc7c], eax
sub esp, 8
test eax, eax
je 0x4030d0
mov dword [esp + 4], 0x405194
mov eax, dword [ebp - 0xc80]
mov dword [esp], edi
call eax
mov dword [ebp - 0xc7c], eax
sub esp, 8
test eax, eax
je 0x403170
mov dword [esp + 4], 0x4051a2
mov eax, dword [ebp - 0xc80]
mov dword [esp], edi
call eax
mov dword [ebp - 0xc7c], eax
sub esp, 8
test eax, eax
jne 0x4032a8
cmp ebx, 2
je 0x403150
mov eax, dword [esi + 8]
mov dword [ebp - 0xc80], eax
call sym._FetchUninstallInformation.isra.0
mov eax, dword [0x404144]
test eax, eax
je 0x403240
xor edi, edi
jmp 0x402d55
inc edi
cmp edi, dword [0x404144]
jae 0x403240
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 edx, dword [ebp - 0xc80]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], edx
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 0x402d48
mov edx, dword [0x4040b4]
inc dword [edx + ebx + 0x10]
mov ebx, dword [0x404144]
cmp edi, ebx
jae 0x403240
movzx eax, byte [0x40409c]
test ebx, ebx
je 0x4031fd
xor esi, esi
jmp 0x402e2d
mov eax, dword [ebp - 0xc6c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0xc74]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc6c]
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 0x403260
inc esi
cmp esi, dword [0x404144]
jae 0x403208
mov edx, dword [0x4040b4]
lea edi, [esi + esi*4]
mov ecx, eax
lea ebx, [edi*4]
mov dword [ebp - 0xc80], edi
and ecx, 8
add edx, ebx
mov edi, dword [edx + 0x10]
test edi, edi
je 0x402e1a
test cl, cl
jne 0x4031c0
xor eax, eax
mov ecx, 0x10
lea edi, [ebp - 0xc58]
rep stosd dword es:[edi], eax
mov eax, 1
mov dword [ebp - 0xc5c], 0x44
mov word [ebp - 0xc2c], ax
lea eax, [ebp - 0xc6c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0xc5c]
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 0x402dd0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ecx, dword [0x4072ac]
sub esp, 4
mov edi, eax
lea eax, [ebp - 0xc18]
mov dword [esp], edi
mov dword [ebp - 0xc84], ecx
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], eax
mov dword [esp + 4], 0x3e8
call ecx
lea edx, [ebp - 0xa18]
mov ecx, dword [ebp - 0xc84]
sub esp, 0x10
mov dword [esp + 8], edx
mov dword [esp], edi
lea edi, [ebp - 0x818]
mov dword [esp + 0xc], 0xff
mov dword [esp + 4], 0x3e9
call ecx
mov eax, dword [0x4040b4]
lea edx, [ebp - 0xa18]
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 [0x4072b4]
lea eax, [ebp - 0xc18]
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0x24
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [0x4072b0]
sub esp, 0x10
cmp eax, 6
je 0x4032d0
movzx eax, byte [0x40409c]
mov ecx, eax
and ecx, 8
jmp 0x402e1a
lea edx, [ebp - 0xa14]
xor eax, eax
mov ecx, 0x10
mov edi, edx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x818]
mov dword [esp + 4], 0x104
mov dword [ebp - 0xa18], 0x44
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
sub esp, 8
mov dword [esp + 4], str.uninstaller.exe
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [ebp - 0xc6c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0xc18]
mov dword [esp], edi
mov dword [esp + 0x24], edx
lea edx, [ebp - 0xa18]
mov dword [esp + 0x20], edx
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 0x403342
test byte [0x40409c], 2
jne 0x403100
mov eax, dword [ebp - 0xc6c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
call dword [0x4071ac]
cmp ebx, 1
jg 0x402ca7
call dword [0x4072a8]
mov dword [esp + 0xc], 5
mov dword [esp + 8], str.appwiz.cpl
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._Control_RunDLL_16
mov dword [ebp - 0xc7c], 1
sub esp, 0x10
jmp 0x4030e8
mov dword [esp], 0x7d3
call sym._output_message
mov dword [esp], 0x7d4
call sym._output_message
mov eax, dword [ebp - 0xc7c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov eax, edi
mov dword [ebp - 0xc7c], edx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0xc7c]
mov dword [esp + 0xc], str.failed_to_restart_64_bit__s__err__ld_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x40409c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x403077
mov dword [esp], 0x7d1
call sym._output_message
mov dword [ebp - 0xc7c], 1
jmp 0x4030e8
call sym._FetchUninstallInformation.isra.0
mov eax, dword [0x404144]
xor ebx, ebx
test eax, eax
je 0x4030e8
lea esi, [esi]
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._1_2_n
mov dword [esp + 4], eax
call sym._output_array.constprop.0
cmp ebx, dword [0x404144]
jb 0x403188
jmp 0x4030e8
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 0x402e53
and eax, 8
mov ecx, eax
lea esi, [esi]
test cl, cl
je 0x4030e8
mov dword [esp + 0xc], str.finished_uninstall_phase._n
mov dword [esp + 8], str.UninstallProgram
mov dword [esp + 4], 0x40409c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4030e8
mov eax, dword [ebp - 0xc80]
mov dword [esp], 0x7d0
mov dword [esp + 4], eax
call sym._output_message
jmp 0x4030e8
mov eax, dword [ebp - 0xc74]
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 0x402e1a
mov dword [esp + 4], edi
mov dword [esp], 0x7d2
call sym._output_message
mov dword [ebp - 0xc7c], 1
jmp 0x4030e8
lea eax, [ebp - 0xc70]
mov ecx, dword [ebp - 0xc80]
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 - 0xc70]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0xc70]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x402f98
test byte [0x40409c], 8
jne 0x40338e
mov eax, dword [ebp - 0xc18]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push eax
push eax
lea eax, [ebp - 0xc5c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push eax
push eax
mov eax, dword [ebp - 0xc5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, edi
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 0x40334b