Function at 0x401d20
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
push ebx
push ecx
sub esp, 0xca8
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp], 0xffffffff
mov dword [ebp - 0xc80], eax
lea eax, [ebp - 0xc78]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsWow64Process]
sub esp, 8
test eax, eax
je 0x401d6e
mov eax, dword [ebp - 0xc78]
test eax, eax
jne 0x402080
call dword [0x4081ac]
cmp ebx, 1
jle 0x402168
mov eax, dword [ebp - 0xc80]
mov edi, dword [sym.imp.kernel32.dll_lstrcmpW]
mov esi, dword [eax + 4]
mov dword [esp + 4], str.__help
mov dword [esp], esi
call edi
mov dword [ebp - 0xc7c], eax
sub esp, 8
test eax, eax
je 0x4021a0
mov dword [esp + 4], 0x405194
mov dword [esp], esi
call edi
mov dword [ebp - 0xc7c], eax
sub esp, 8
test eax, eax
je 0x402230
mov dword [esp + 4], 0x4051a2
mov dword [esp], esi
call edi
mov dword [ebp - 0xc7c], eax
sub esp, 8
test eax, eax
jne 0x402368
cmp ebx, 2
je 0x402218
mov eax, dword [ebp - 0xc80]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc80], eax
call sym._FetchUninstallInformation.isra.0
mov eax, dword [section..bss]
test eax, eax
je 0x402300
xor edi, edi
jmp 0x401e27
add edi, 1
cmp edi, dword [section..bss]
jae 0x402300
mov eax, dword [0x407004]
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 0x401e18
mov edx, dword [0x407004]
add dword [edx + ebx + 0x10], 1
mov ebx, dword [section..bss]
cmp edi, ebx
jae 0x402300
movzx eax, byte [global___dbch]
test ebx, ebx
je 0x4022bd
xor esi, esi
jmp 0x401eff
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 [global___dbch]
sub esp, 8
mov ecx, eax
and ecx, 8
jne 0x402320
add esi, 1
cmp esi, dword [section..bss]
jae 0x4022c8
mov edx, dword [0x407004]
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 0x401eea
test cl, cl
jne 0x402280
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 0x401ea0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ecx, dword [0x4082ac]
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 [0x407004]
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 [0x4082b4]
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 [0x4082b0]
sub esp, 0x10
cmp eax, 6
je 0x402390
movzx eax, byte [global___dbch]
mov ecx, eax
and ecx, 8
jmp 0x401eea
lea edx, [ebp - 0xa14]
xor eax, eax
mov ecx, 0x10
mov edi, edx
lea esi, [ebp - 0x818]
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x104
mov dword [ebp - 0xa18], 0x44
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
sub esp, 8
mov dword [esp + 4], str.uninstaller.exe
mov dword [esp], esi
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], esi
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 0x402402
test byte [0x404000], 2
jne 0x4021d0
mov eax, dword [ebp - 0xc6c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
call dword [0x4081ac]
cmp ebx, 1
jg 0x401d7d
call dword [0x4082a8]
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 0x4021b8
mov dword [esp], 0x7d3
call dbg.output_message
mov dword [esp], 0x7d4
call dbg.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 edi, dword [eax + 0x34]
mov eax, esi
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], edi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x405254
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402147
mov dword [esp], 0x7d1
call dbg.output_message
mov dword [ebp - 0xc7c], 1
jmp 0x4021b8
call sym._FetchUninstallInformation.isra.0
mov eax, dword [section..bss]
xor ebx, ebx
test eax, eax
je 0x4021b8
lea esi, [esi]
mov eax, dword [0x407004]
lea edx, [ebx + ebx*4]
add ebx, 1
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 [section..bss]
jb 0x402248
jmp 0x4021b8
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], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [0x407004]
add edx, ebx
jmp 0x401f25
and eax, 8
mov ecx, eax
lea esi, [esi]
test cl, cl
je 0x4021b8
mov dword [esp + 0xc], str.finished_uninstall_phase._n
mov dword [esp + 8], str.UninstallProgram
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4021b8
mov eax, dword [ebp - 0xc80]
mov dword [esp], 0x7d0
mov dword [esp + 4], eax
call dbg.output_message
jmp 0x4021b8
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], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [global___dbch]
mov ecx, eax
and ecx, 8
jmp 0x401eea
mov dword [esp + 4], esi
mov dword [esp], 0x7d2
call dbg.output_message
mov dword [ebp - 0xc7c], 1
jmp 0x4021b8
lea eax, [ebp - 0xc70]
mov edi, dword [ebp - 0xc80]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [0x407004]
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionUninstall
mov eax, dword [eax + edi*4]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov eax, dword [0x407004]
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 0x40206a
test byte [0x404000], 8
jne 0x40244e
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, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x405254
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40240b