Function at 0x402110
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
push ebx
lea eax, [ebp - 0xc6c]
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 0x402148
mov ebx, dword [ebp - 0xc6c]
test ebx, ebx
jne 0x4021e0
call dword [0x4081a0]
cmp dword [ebp + 8], 1
jle 0x4022c0
mov edi, dword [sym.imp.kernel32.dll_lstrcmpW]
mov ebx, 1
jmp 0x402194
mov dword [esp], esi
mov edx, str.__silent
mov dword [esp + 4], edx
call edi
sub esp, 8
test eax, eax
jne 0x402300
cmp dword [ebp + 8], ebx
mov eax, 1
mov dword [section..bss], eax
je 0x4022c0
mov eax, dword [ebp + 0xc]
inc ebx
mov esi, dword [eax + ebx*4 - 4]
mov eax, str.__help
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
jne 0x402168
mov dword [esp], 1
mov ecx, 0x7d3
mov dword [esp + 4], ecx
mov dword [ebp - 0xc70], eax
call sym._output_message
mov ecx, dword [ebp - 0xc70]
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0xc08], edx
mov dword [ebp + eax - 0xc04], edx
add eax, 8
cmp eax, 0x40
jb 0x4021e4
mov eax, 0x44
xor ebx, ebx
mov dword [ebp - 0xc0c], eax
lea esi, [ebp - 0x80c]
mov eax, 0x104
mov dword [esp + 4], eax
xor edi, edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov eax, str.uninstaller.exe
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], esi
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 - 0xc50]
xor ecx, ecx
mov dword [esp + 0x24], edx
lea edx, [ebp - 0xc0c]
mov dword [esp + 0x20], edx
xor edx, edx
mov dword [esp + 0x1c], edx
xor edx, edx
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x402c15
test byte [section..data], 2
jne 0x4025b7
mov eax, dword [ebp - 0xc60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
jmp 0x402148
call dword [0x408290]
xor ebx, ebx
mov ecx, str.appwiz.cpl
mov dword [esp + 8], ecx
mov edx, 5
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym._Control_RunDLL_16
mov ecx, 1
mov eax, ecx
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
mov eax, 0x405196
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
je 0x402360
mov dword [esp], esi
mov eax, 0x4051b6
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
jne 0x402692
cmp dword [ebp + 8], ebx
jg 0x4023d5
mov dword [esp], 0
mov esi, 0x7d1
mov dword [esp + 4], esi
call sym._output_message
mov ecx, 1
jmp 0x4021d2
mov dword [ebp - 0xc70], eax
xor ebx, ebx
call sym._FetchUninstallInformation
mov eax, str.en_US
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_setlocale]
mov eax, dword [0x407004]
mov ecx, dword [ebp - 0xc70]
test eax, eax
je 0x4021d2
mov esi, ecx
lea esi, [esi]
nop
mov eax, dword [0x407008]
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 [0x407004]
jb 0x4023a0
mov ecx, esi
jmp 0x4021d2
mov dword [ebp - 0xc74], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc70], eax
call sym._FetchUninstallInformation
mov ebx, dword [0x407004]
mov ecx, dword [ebp - 0xc74]
test ebx, ebx
je 0x402943
xor edi, edi
jmp 0x402415
inc edi
cmp edi, dword [0x407004]
jae 0x40293d
mov eax, dword [0x407008]
lea ebx, [edi + edi*4]
shl ebx, 2
mov esi, dword [eax + ebx + 4]
call dword [sym.imp.kernel32.dll_GetThreadLocale]
mov ecx, 0xffffffff
mov edx, 0xffffffff
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0xc70]
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 0x10], ecx
mov ecx, 1
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x402408
mov edx, dword [0x407008]
mov ecx, dword [ebp - 0xc74]
inc dword [edx + ebx + 0x10]
mov ebx, dword [0x407004]
cmp ebx, edi
jbe 0x402943
test ebx, ebx
movzx eax, byte [section..data]
je 0x402c0e
mov dword [ebp - 0xc78], ecx
xor edi, edi
lea esi, [esi]
lea ecx, [edi + edi*4]
lea esi, [ecx*4]
mov cl, al
mov dword [ebp - 0xc70], esi
lea ebx, [edx + esi]
mov edx, dword [edx + esi + 0x10]
and cl, 8
test edx, edx
je 0x40259f
test cl, cl
jne 0x4027d5
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0xc4c], edx
mov dword [ebp + eax - 0xc48], edx
add eax, 8
cmp eax, 0x40
jb 0x4024d0
mov eax, 1
xor edx, edx
mov word [ebp - 0xc20], ax
lea eax, [ebp - 0xc60]
xor ecx, ecx
mov dword [esp + 0x24], eax
lea eax, [ebp - 0xc50]
mov esi, 0x44
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [ebp - 0xc50], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov eax, dword [ebx + 0xc]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x402702
mov eax, dword [ebp - 0xc60]
mov ecx, 0xffffffff
mov dword [esp + 4], ecx
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 [section..data]
sub esp, 8
mov cl, al
and cl, 8
jne 0x4029d5
inc edi
cmp edi, dword [0x407004]
jae 0x402980
mov edx, dword [0x407008]
jmp 0x4024a0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0xc70], eax
mov eax, esi
shr eax, 0x10
je 0x4026b5
mov dword [esp], esi
mov eax, 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x402bae
cmp word [ebp - 0x80c], 0
je 0x402bcc
lea esi, [esi]
mov edx, eax
cmp word [esi + edx*2 + 2], 0
lea eax, [eax + 1]
jne 0x402600
lea edi, [ebp - 0x8ea]
mov ecx, 0x224c
mov word [ebp - 0xa0c], cx
lea ecx, [ebp - 0xa0a]
jmp 0x402665
cmp eax, 9
je 0x402930
cmp eax, 0xa
jne 0x4028d2
mov word [ecx], 0x6e5c
add ecx, 2
lea esi, [esi]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x402a80
test edx, edx
jle 0x402a80
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp eax, 0xd
je 0x4028b8
jbe 0x402630
cmp eax, 0x22
je 0x402920
cmp eax, 0x5c
jne 0x4028c5
mov word [ecx], 0x5c5c
add ecx, 2
jmp 0x402650
mov dword [esp + 8], esi
mov esi, 0x7d2
mov dword [esp + 4], esi
mov dword [esp], 0
call sym._output_message
mov ecx, 1
jmp 0x4021d2
mov dword [esp], str._04x
movzx esi, si
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
mov dword [esp + 0x10], eax
mov ecx, dword [ebp - 0xc70]
mov eax, str.failed_to_restart_64_bit__s__err__ld_n
mov dword [esp + 0xc], eax
mov eax, 0x405254
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 4], eax
mov dword [esp + 0x14], ecx
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4022a7
mov dword [esp], 0
lea esi, [ebp - 0xc0c]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ecx, 0x3e8
mov edx, 0xff
sub esp, 4
mov ebx, eax
mov dword [esp + 4], ecx
mov ecx, dword [0x408294]
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [ebp - 0xc74], ecx
call ecx
mov eax, 0xff
mov ecx, dword [ebp - 0xc74]
lea edx, [ebp - 0xa0c]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, 0x3e9
mov dword [esp + 8], edx
mov dword [esp], ebx
lea ebx, [ebp - 0x80c]
mov dword [esp + 4], eax
call ecx
mov ecx, dword [ebp - 0xc70]
lea edx, [ebp - 0xa0c]
mov eax, dword [0x407008]
mov eax, dword [eax + ecx + 0xc]
sub esp, 0x10
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [0x40829c]
mov eax, 0x24
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [0x408298]
sub esp, 0x10
cmp eax, 6
je 0x402b14
movzx eax, byte [section..data]
mov cl, al
and cl, 8
jmp 0x40259f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x402bc2
mov eax, ebx
shr eax, 0x10
je 0x402b8e
mov dword [esp], ebx
mov eax, 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x402bb8
cmp word [ebx], 0
je 0x402bed
lea esi, [esi]
lea esi, [esi]
mov edx, eax
cmp word [ebx + edx*2 + 2], 0
lea eax, [eax + 1]
jne 0x402820
mov esi, 0x224c
mov word [ebp - 0xa0c], si
lea esi, [ebp - 0xa0a]
jmp 0x40288b
cmp eax, 9
je 0x4029c8
cmp eax, 0xa
jne 0x402a28
mov word [esi], 0x6e5c
add esi, 2
lea esi, [esi]
lea esi, [esi]
lea eax, [edx - 1]
test edx, edx
jle 0x402aae
lea ecx, [ebp - 0x8ea]
cmp esi, ecx
ja 0x402aae
mov edx, eax
movzx eax, word [ebx]
add ebx, 2
cmp eax, 0xd
je 0x402973
jbe 0x402848
cmp eax, 0x22
je 0x402a73
cmp eax, 0x5c
jne 0x402a1b
mov word [esi], 0x5c5c
add esi, 2
jmp 0x402870
mov word [ecx], 0x725c
add ecx, 2
jmp 0x402650
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x402b86
mov byte [ecx], 0x5c
mov ebx, eax
add ecx, 5
shr ebx, 0xc
movzx ebx, byte [ebx + str.0123456789abcdefwmain]
mov byte [ecx - 4], bl
mov ebx, eax
shr ebx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefwmain]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr ebx, 4
movzx eax, byte [eax + str.0123456789abcdefwmain]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefwmain]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x402650
mov word [ecx], 0x225c
add ecx, 2
jmp 0x402650
mov word [ecx], 0x745c
add ecx, 2
jmp 0x402650
mov ecx, dword [ebp - 0xc74]
mov dword [esp], 0
mov eax, dword [ebp - 0xc70]
mov ebx, 0x7d0
mov dword [esp + 4], ebx
mov dword [ebp - 0xc74], ecx
mov dword [esp + 8], eax
call sym._output_message
mov ecx, dword [ebp - 0xc74]
jmp 0x4021d2
mov word [esi], 0x725c
add esi, 2
jmp 0x402870
mov al, cl
mov ecx, dword [ebp - 0xc78]
test al, al
je 0x4021d2
mov dword [esp], 3
mov eax, str.UninstallProgram
mov edi, str.finished_uninstall_phase._n
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov dword [ebp - 0xc70], ecx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0xc70]
jmp 0x4021d2
mov word [esi], 0x745c
add esi, 2
jmp 0x402870
mov dword [esp + 0x10], edx
mov eax, dword [ebp - 0xc68]
mov edx, section..data
mov dword [esp + 4], edx
mov dword [esp], 3
mov dword [esp + 0x14], eax
mov eax, str._d:__08lx_n
mov dword [esp + 0xc], eax
mov eax, str.UninstallProgram
mov dword [esp + 8], eax
call sym._wine_dbg_log.constprop.0
movzx eax, byte [section..data]
mov cl, al
and cl, 8
jmp 0x40259f
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x402ba6
mov byte [esi], 0x5c
mov ecx, eax
add esi, 5
shr ecx, 0xc
movzx ecx, byte [ecx + str.0123456789abcdefwmain]
mov byte [esi - 4], cl
mov ecx, eax
shr ecx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefwmain]
mov byte [esi - 3], cl
mov ecx, eax
and eax, 0xf
shr ecx, 4
movzx eax, byte [eax + str.0123456789abcdefwmain]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefwmain]
mov byte [esi - 1], al
mov byte [esi - 2], cl
jmp 0x402870
mov word [esi], 0x225c
add esi, 2
jmp 0x402870
mov byte [ecx], 0x22
test eax, eax
jle 0x402be5
mov word [ecx + 1], 0x2e2e
lea eax, [ecx + 4]
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0xa0c]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x4026c8
mov byte [esi], 0x22
test eax, eax
jle 0x402c06
mov word [esi + 1], 0x2e2e
lea eax, [esi + 4]
mov byte [esi + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0xa0c]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov ebx, str.uninstalling__s_n
mov eax, section..data
mov dword [esp + 0xc], ebx
mov esi, str.UninstallProgram
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ebx, dword [ebp - 0xc70]
mov eax, dword [0x407008]
add ebx, eax
jmp 0x4024cc
lea eax, [ebp - 0xc64]
mov esi, dword [ebp - 0xc70]
mov dword [esp + 0x10], eax
mov eax, 0x20019
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionUninstall
mov dword [esp + 4], eax
mov eax, dword [0x407008]
mov eax, dword [eax + esi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov eax, dword [0x407008]
mov eax, dword [eax + esi + 4]
sub esp, 0x14
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 0x4027c4
mov byte [ecx], al
inc ecx
jmp 0x402650
mov dword [esp], str._04x
movzx ebx, bx
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402ad7
mov byte [esi], al
inc esi
jmp 0x402870
mov eax, str._invalid_
jmp 0x4026c8
mov eax, str._invalid_
jmp 0x402ad7
mov eax, str._null_
jmp 0x402ad7
mov byte [ebp - 0xa0a], 0x22
lea ecx, [ebp - 0xa0a]
mov eax, 0x224c
mov word [ebp - 0xa0c], ax
lea eax, [ecx + 1]
jmp 0x402a98
mov byte [ebp - 0xa0a], 0x22
lea esi, [ebp - 0xa0a]
mov eax, 0x224c
mov word [ebp - 0xa0c], ax
lea eax, [esi + 1]
jmp 0x402ac6
and al, 8
jmp 0x402988
test byte [section..data], 8
lea ebx, [ebp - 0xa0c]
jne 0x402c61
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0xc50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0xc50]
push edx
push edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0xa0c]
push ecx
push ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, esi
shr eax, 0x10
je 0x402cf3
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
test eax, eax
mov edx, eax
push edi
push edi
je 0x402c8b
jmp 0x402d33
inc edx
cmp word [esi + edx*2], 0
jne 0x402c8a
mov word [ebp - 0xa0c], 0x224c
lea ecx, [ebp - 0x8ea]
mov dword [ebp - 0xc70], ecx
lea eax, [ebp - 0xa0a]
lea ecx, [edx - 1]
test edx, edx
jle 0x402dbe
cmp eax, dword [ebp - 0xc70]
ja 0x402dbe
movzx edx, word [esi]
add esi, 2
cmp edx, 0xd
je 0x402daf
ja 0x402d96
cmp edx, 9
je 0x402d87
cmp edx, 0xa
jne 0x402d3a
mov word [eax], 0x6e5c
mov edx, ecx
add eax, 2
jmp 0x402cad
mov dword [esp], str._04x
movzx esi, si
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.restarting__s_n
mov dword [esp + 8], 0x405254
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402c24
mov eax, str._invalid_
jmp 0x402d06
mov byte [eax], 0x5c
mov edi, edx
add eax, 5
shr edi, 0xc
movzx ebx, byte [edi + str.0123456789abcdefwmain]
mov edi, edx
shr edi, 8
and edi, 0xf
mov byte [eax - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefwmain]
mov edi, edx
shr edi, 4
and edx, 0xf
and edi, 0xf
movzx edx, byte [edx + str.0123456789abcdefwmain]
mov byte [eax - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefwmain]
mov byte [eax - 1], dl
mov edx, ecx
mov byte [eax - 2], bl
jmp 0x402cad
mov word [eax], 0x745c
mov edx, ecx
add eax, 2
jmp 0x402cad
cmp edx, 0x22
je 0x402e02
cmp edx, 0x5c
jne 0x402deb
mov word [eax], 0x5c5c
mov edx, ecx
add eax, 2
jmp 0x402cad
mov word [eax], 0x725c
mov edx, ecx
add eax, 2
jmp 0x402cad
mov byte [eax], 0x22
lea edx, [eax + 1]
test ecx, ecx
jle 0x402dd5
mov word [eax + 1], 0x2e2e
lea edx, [eax + 4]
mov byte [eax + 3], 0x2e
mov byte [edx], 0
lea ebx, [ebp - 0xa0c]
mov dword [esp], ebx
call sym.___wine_dbg_strdup
jmp 0x402d06
lea edi, [edx - 0x20]
cmp di, 0x5e
ja 0x402d3a
mov byte [eax], dl
inc eax
mov edx, ecx
jmp 0x402cad
mov word [eax], 0x225c
mov edx, ecx
add eax, 2
jmp 0x402cad