Function at 0x402130
Capabilities:
Accept command line arguments
Access peb ldr_data
Create thread
Delete service
Get process heap flags
Get process heap force flags
Query or enumerate registry value
Read file on windows
Terminate process
Write file on windows

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, 0xe8
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
call dword [sym.imp.comctl32.dll_InitCommonControls]
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x6c]
call dbg.process_args
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
cmp eax, 1
jg 0x402300
mov dword [esp + 4], 0
mov dword [esp], 5
call sym._MsiSetInternalUI_8
xor eax, eax
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xc0], 0
sub esp, 8
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x94], 0
mov word [ebp - 0xc6], ax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xb8], 0
xor edi, edi
xor ebx, ebx
mov eax, dword [ebp - 0xa4]
test eax, eax
jne 0x402df5
mov esi, dword [ebp - 0xa8]
test esi, esi
jne 0x4029d8
mov ecx, dword [ebp - 0xac]
test ecx, ecx
jne 0x402c7d
mov eax, dword [ebp - 0x90]
test eax, eax
jne 0x40280d
mov eax, dword [ebp - 0xbc]
test eax, eax
jne 0x402eaa
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x4030db
mov edi, dword [ebp - 0x84]
test edi, edi
jne 0x4034e2
mov esi, dword [ebp - 0x8c]
test esi, esi
jne 0x4031f9
mov ebx, dword [ebp - 0xd0]
test ebx, ebx
jne 0x403ab2
mov ecx, dword [ebp - 0xc4]
test ecx, ecx
je 0x404578
test byte [section..data], 1
je 0x402366
mov dword [esp + 0xc], str.Unknown_function__ignoring_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x402366
mov esi, dword [ebp - 0x68]
mov edx, dword [esi + 4]
movzx eax, word [edx]
and eax, 0xfffffffd
cmp ax, 0x2d
jne 0x4023d1
lea eax, [edx + 2]
mov edx, 0x407157
call dbg.msi_strequal
test eax, eax
je 0x402c97
mov ebx, dword [esi + 8]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x80], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x402f3d
mov dword [ebp - 0x90], 1
jmp 0x40283c
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x6c]
mov eax, ebx
call dbg.process_args
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x60]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x6c]
sub esp, 4
mov dword [ebp - 0x7c], eax
cmp eax, 3
je 0x402ca1
cmp dword [ebp - 0x7c], 1
jle 0x40217b
mov esi, dword [ebp - 0x68]
xor ebx, ebx
mov edi, 1
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 5
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc6], bx
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 0
lea esi, [esi]
nop
lea eax, [edi*4]
mov dword [ebp - 0x80], eax
lea ebx, [esi + eax]
test byte [section..data], 8
jne 0x402568
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
je 0x402530
mov edx, str.umtgl
call dbg.msi_strequal
test eax, eax
je 0x403d2c
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jge 0x404578
mov eax, dword [ebp - 0x80]
lea ebx, [esi + eax + 4]
test byte [section..data], 8
jne 0x403def
mov dword [ebp - 0xb4], 1
mov eax, dword [ebx]
mov dword [ebp - 0xac], 1
mov dword [ebp - 0x94], eax
jmp 0x40254f
add eax, 2
mov edx, str.regserver
call dbg.msi_strequal
test eax, eax
je 0x4025e0
mov dword [ebp - 0x84], 1
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jge 0x40261f
mov esi, dword [ebp - 0x68]
jmp 0x4024b0
mov edx, dword [ebx]
test edx, edx
je 0x402870
mov eax, edx
shr eax, 0x10
je 0x402850
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
mov dword [ebp - 0x88], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x4025ad
mov eax, dword [ebp - 0x88]
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4024ca
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4024d8
add eax, 2
mov edx, str.unregserver
call dbg.msi_strequal
test eax, eax
je 0x402880
mov dword [ebp - 0x8c], 1
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jl 0x40255d
mov eax, dword [ebp - 0x90]
mov esi, dword [ebp - 0xa0]
mov ebx, 1
mov edi, dword [ebp - 0x74]
mov dword [esp + 4], 0
and esi, eax
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
call sym._MsiSetInternalUI_8
mov edx, edi
sub esp, 8
test edi, edi
je 0x403086
lea esi, [esi]
nop
cmp word [edx + 4], 0
lea ecx, [edx + 4]
je 0x402968
mov eax, ecx
add eax, 2
cmp word [eax], 0
jne 0x402670
sub eax, ecx
sar eax, 1
add eax, 3
mov edx, dword [edx]
add ebx, eax
test edx, edx
jne 0x402660
add ebx, ebx
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0xcc], eax
call eax
mov dword [ebp - 0x98], esi
mov ebx, eax
mov eax, edi
mov dword [ebp - 0xa0], edi
sub esp, 0xc
mov dword [ebp - 0xb0], ebx
mov edi, ebx
mov esi, eax
jmp 0x4026e2
mov esi, dword [esi]
test esi, esi
je 0x4027c3
lea edx, [esi + 4]
mov dword [esp + 4], 0x3d
mov dword [esp], edx
mov dword [ebp - 0x7c], edx
call dword [sym.imp.ucrtbase.dll_wcschr]
mov ebx, eax
test eax, eax
je 0x4026d8
mov edx, dword [ebp - 0x7c]
mov eax, 0x20
lea ecx, [edi + 2]
mov word [edi], ax
mov edi, ebx
sub edi, edx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [esp], ecx
mov dword [ebp - 0x7c], ecx
call sym._memcpy
mov ecx, dword [ebp - 0x7c]
mov eax, 0x3d
add ecx, edi
lea edi, [ebx + 2]
mov word [ecx], ax
mov dword [ebp - 0x7c], ecx
mov dword [esp + 4], 0x20
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov ecx, dword [ebp - 0x7c]
test eax, eax
mov dword [ebp - 0x80], eax
je 0x402950
mov eax, 0x22
lea edx, [ecx + 4]
mov word [ecx + 2], ax
cmp word [ebx + 2], 0
je 0x4027ae
mov eax, edi
lea esi, [esi]
nop
mov ecx, eax
add eax, 2
cmp word [eax], 0
jne 0x402770
sub ecx, ebx
mov dword [esp + 8], ecx
mov dword [ebp - 0x88], ecx
mov dword [esp + 4], edi
mov dword [esp], edx
mov dword [ebp - 0x7c], edx
call sym._memcpy
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x7c]
add edx, ecx
mov ecx, dword [ebp - 0x80]
mov edi, edx
test ecx, ecx
je 0x4026d8
mov eax, 0x22
lea edi, [edx + 2]
mov word [edx], ax
mov esi, dword [esi]
test esi, esi
jne 0x4026e2
mov edx, edi
xor eax, eax
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0xa0]
mov word [edx], ax
mov ebx, dword [ebp - 0xb0]
test byte [section..data], 8
jne 0x402972
test esi, esi
je 0x40223f
mov eax, dword [ebp - 0xa8]
test eax, eax
jne 0x4029d8
mov eax, dword [ebp - 0xac]
test eax, eax
jne 0x402b16
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0xd8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x94]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xd4]
mov dword [esp], eax
call sym._MsiApplyPatchW_16
mov dword [ebp - 0x90], eax
sub esp, 0x10
mov eax, dword [ebp - 0x90]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
movzx edx, dx
mov dword [esp], str._04x
mov dword [esp + 4], edx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4025ad
mov eax, str._null_
jmp 0x4025ad
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4024d8
add eax, 2
mov edx, str.unregister
call dbg.msi_strequal
test eax, eax
jne 0x402607
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4024d8
add eax, 2
mov edx, str.unreg
call dbg.msi_strequal
test eax, eax
jne 0x402607
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4024d8
add eax, 2
mov edx, 0x407307
call dbg.msi_strprefix
test eax, eax
je 0x402a61
mov ecx, dword [ebx]
movzx eax, word [ecx]
mov edx, eax
and edx, 0xfffffffd
cmp dx, 0x2d
je 0x402a31
mov edx, ecx
mov ebx, 8
test ax, ax
je 0x402db5
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x402920
sub eax, edx
sar eax, 1
cmp ebx, eax
jge 0x402db5
mov dword [ebp - 0xa4], 1
lea eax, [ecx + ebx*2]
mov dword [ebp - 0x94], eax
jmp 0x40254f
cmp word [ebx + 2], 0
lea edx, [ecx + 2]
jne 0x402769
mov edi, edx
jmp 0x4026d8
mov eax, 3
jmp 0x402680
test ebx, ebx
je 0x403174
mov eax, ebx
shr eax, 0x10
je 0x402c51
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x4029ab
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.properties_____s_n
mov dword [esp + 8], str.build_properties
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4027e9
mov eax, dword [ebp - 0x94]
cmp word [eax], 0
je 0x402a02
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4029e8
mov ecx, dword [ebp - 0x94]
sub eax, ecx
cmp eax, 0x4c
je 0x402c00
mov eax, dword [ebp - 0xb8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call sym._MsiReinstallProductW_8
sub esp, 8
cmp eax, 2
je 0x403888
mov dword [ebp - 0x90], eax
jmp 0x40283c
lea eax, [ecx + 2]
mov edx, 0x407307
mov dword [ebp - 0x88], ecx
call dbg.msi_strprefix
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x88]
test eax, eax
movzx eax, word [edx]
je 0x40290b
mov ebx, 2
jmp 0x402910
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4024d8
add eax, 2
mov edx, str.package
call dbg.msi_strprefix
test eax, eax
jne 0x4028f5
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4024d8
add eax, 2
mov edx, 0x407311
call dbg.msi_strequal
test eax, eax
je 0x4033e1
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jge 0x404578
mov eax, dword [ebp - 0x80]
lea esi, [esi + eax + 4]
test byte [section..data], 8
jne 0x403375
mov eax, dword [esi]
mov edx, str.ACTIONADMIN
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x74]
call dbg.StringListAppend
test byte [section..data], 1
jne 0x40334c
mov dword [ebp - 0xd8], 1
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0xa4], 1
jmp 0x40254f
mov esi, edi
mov ecx, 1
lea esi, [esi]
cmp word [edi + 4], 0
lea edx, [edi + 4]
je 0x402ea0
mov eax, edx
add eax, 2
cmp word [eax], 0
jne 0x402b30
sub eax, edx
sar eax, 1
add eax, 1
mov edi, dword [edi]
add ecx, eax
test edi, edi
jne 0x402b20
add ecx, ecx
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0xcc]
call eax
mov dword [ebp - 0x80], eax
sub esp, 0xc
mov edi, eax
lea esi, [esi]
cmp word [esi + 4], 0
lea edx, [esi + 4]
je 0x402dee
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x402b90
sub eax, edx
mov ecx, edi
mov ebx, eax
sar ebx, 1
cmp eax, 2
jbe 0x402bd1
mov dword [ebp - 0x7c], eax
jmp 0x402bc6
sub ebx, 1
add ecx, 2
add edx, 2
mov word [ecx - 2], ax
cmp ebx, 1
je 0x402c70
movzx eax, word [edx]
test ax, ax
jne 0x402bb0
mov eax, dword [ebp - 0x7c]
test ebx, ebx
jne 0x402c73
add eax, edi
mov edi, dword [esi]
test edi, edi
je 0x402d78
mov ebx, 0x3b
lea edi, [eax + 2]
mov word [eax], bx
mov esi, dword [esi]
test esi, esi
jne 0x402b78
mov edx, dword [ebp - 0x80]
mov eax, edi
jmp 0x402d7b
lea eax, [ebp - 0x48]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
sub esp, 8
test eax, eax
jne 0x402a02
test byte [section..data], 1
je 0x402366
mov dword [esp + 0xc], str.Product_code_treatment_not_implemented_yet_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x402366
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4029ab
mov eax, dword [ebp - 0x7c]
xor edx, edx
mov word [ecx], dx
jmp 0x402bd9
test edi, edi
je 0x4030ac
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, edi
mov dword [ebp - 0xcc], eax
jmp 0x402b18
cmp dword [ebp - 0x7c], 3
jne 0x4023ce
mov esi, dword [ebp - 0x68]
mov eax, dword [esi + 4]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4031ed
add eax, 2
mov edx, str.Embedding
call dbg.msi_strequal
test eax, eax
je 0x4031ea
mov ebx, dword [esi + 8]
test byte [section..data], 8
jne 0x4038e3
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [section..bss], eax
test eax, eax
jne 0x4036ba
test byte [section..data], 2
je 0x402366
test ebx, ebx
je 0x403f10
mov eax, ebx
shr eax, 0x10
je 0x403ef8
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x402d48
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Invalid_parameter__s_n
mov dword [esp + 8], 0x4078e0
mov dword [esp + 4], 0x406000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402366
mov edx, dword [ebp - 0x80]
xor ecx, ecx
mov word [eax], cx
movzx eax, word [ebp - 0xc6]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xb4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call sym._MsiAdvertiseProductW_16
mov dword [ebp - 0x90], eax
sub esp, 0x10
jmp 0x40283c
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jge 0x404578
mov eax, dword [ebp - 0x80]
lea esi, [esi + eax + 4]
test byte [section..data], 8
jne 0x40317e
mov dword [ebp - 0xa4], 1
mov eax, dword [esi]
mov dword [ebp - 0x94], eax
jmp 0x40254f
mov eax, edi
jmp 0x402bdb
mov eax, dword [ebp - 0x94]
cmp word [eax], 0
je 0x402e22
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402e08
mov ecx, dword [ebp - 0x94]
sub eax, ecx
cmp eax, 0x4c
je 0x403305
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call sym._MsiInstallProductW_8
mov dword [ebp - 0x90], eax
sub esp, 8
cmp eax, 2
jne 0x40283c
mov eax, dword [ebp - 0x94]
call dbg.get_path_with_extension
mov esi, eax
test eax, eax
je 0x403960
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._MsiInstallProductW_8
sub esp, 8
mov ebx, eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x90], ebx
sub esp, 0xc
jmp 0x40283c
mov eax, 1
jmp 0x402b40
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x48]
mov edx, str.DllRegisterServer
call sym._LoadProc.constprop.0
call eax
test eax, eax
mov eax, dword [ebp - 0x9c]
js 0x40364b
test eax, eax
je 0x403282
shr eax, 0x10
je 0x4035c1
mov dword [esp + 4], 0xffffffff
mov esi, dword [ebp - 0x9c]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x402f11
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 4], eax
mov dword [esp], str.Successfully_registered_dll__s_n
call dbg.printf
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40283c
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
jmp 0x40283c
lea eax, [ebp - 0x48]
lea edi, [ebp - 0x58]
mov dword [esp + 4], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x88], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x403072
cmp dword [ebp - 0x48], 1
jne 0x403072
mov eax, dword [esi]
cmp word [eax], 0
je 0x404592
mov edx, eax
add edx, 2
cmp word [edx], 0
jne 0x402f95
sub edx, eax
lea eax, [edx + 2]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x8c], edx
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x84], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x8c]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x403072
mov eax, dword [esi]
mov dword [esp + 8], edx
mov dword [ebp - 0x8c], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._memcpy
mov edx, dword [ebp - 0x8c]
mov eax, 0x20
mov word [ebx + edx], ax
mov dword [esp + 0x14], edi
mov eax, dword [ebp - 0x7c]
mov dword [esp + 8], 0
add eax, ebx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x80]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov eax, dword [ebp - 0x88]
call eax
sub esp, 0x18
test eax, eax
je 0x402375
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x402366
test esi, esi
je 0x40223b
mov eax, dword [ebp - 0xa8]
test eax, eax
jne 0x4029d8
mov eax, dword [ebp - 0xac]
xor ebx, ebx
test eax, eax
je 0x40280d
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edx, eax
jmp 0x402d7b
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x48]
mov edx, str.DllUnregisterServer
call sym._LoadProc.constprop.0
call eax
test eax, eax
mov eax, dword [ebp - 0x9c]
js 0x40328c
test eax, eax
je 0x403cc9
shr eax, 0x10
je 0x403a96
mov dword [esp + 4], 0xffffffff
mov esi, dword [ebp - 0x9c]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x403142
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 4], eax
mov dword [esp], str.Successfully_unregistered_dll__s_n
call dbg.printf
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x403165
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
mov dword [ebp - 0x90], 0
jmp 0x40283c
mov eax, str._null_
jmp 0x4029ab
mov ebx, dword [esi]
test ebx, ebx
je 0x4032fb
mov eax, ebx
shr eax, 0x10
je 0x403987
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x4031b9
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402dd7
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x7c], 3
jmp 0x4023d1
mov dword [esp + 8], 1
mov dword [esp + 4], str.ServicesActive
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x403c79
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 0x407066
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x403c32
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_DeleteService]
mov dword [ebp - 0x90], 0
sub esp, 4
test eax, eax
je 0x403c9b
mov dword [esp], esi
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call esi
sub esp, 4
mov dword [esp], ebx
call esi
sub esp, 4
jmp 0x40283c
mov eax, str._null_
jmp 0x402f11
test eax, eax
je 0x404588
shr eax, 0x10
je 0x403c14
mov dword [esp + 4], 0xffffffff
mov esi, dword [ebp - 0x9c]
mov ebx, str._invalid_
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x4032c9
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov ebx, eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Failed_to_unregister_dll__s_n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x90], eax
jmp 0x40283c
mov eax, str._null_
jmp 0x4031b9
lea eax, [ebp - 0x48]
mov dword [esp], ecx
mov esi, ecx
mov dword [esp + 4], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
sub esp, 8
test eax, eax
jne 0x402e22
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 5
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._MsiConfigureProductExW_16
mov dword [ebp - 0x90], eax
sub esp, 0x10
jmp 0x40283c
mov dword [esp + 0xc], str.Administrative_installs_are_not_currently_supported_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x402af3
mov ebx, dword [esi]
test ebx, ebx
je 0x403c0a
mov eax, ebx
shr eax, 0x10
je 0x40396f
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x4033b0
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402ad1
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4024d8
add eax, 2
mov edx, 0x407365
call dbg.msi_strprefix
test eax, eax
mov eax, dword [ebx]
je 0x40353d
cmp word [eax], 0
je 0x403504
mov edx, eax
add edx, 2
cmp word [edx], 0
jne 0x403416
sub edx, eax
mov ecx, edx
sar ecx, 1
mov dword [ebp - 0x88], ecx
cmp edx, 4
jle 0x403949
mov dword [ebp - 0xa8], esi
mov ecx, 2
mov edx, ebx
mov dword [ebp - 0x94], edi
mov edi, dword [ebp - 0xb8]
mov ebx, ecx
movzx esi, word [eax + ebx*2]
lea eax, [esi - 0x41]
cmp ax, 0x35
ja case.0x40345f.1
movzx eax, ax
jmp dword [eax*4 + 0x407644]
mov dword [ebp - 0xb8], edx
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp + 4], str.Unknown_option___c__in_Repair_mode_n
mov dword [esp], eax
call sym._fprintf
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0x88]
add ebx, 1
cmp ebx, eax
jge 0x4034f2
mov eax, dword [edx]
jmp 0x40344f
or edi, 0x400
jmp 0x403493
or edi, 0x100
jmp 0x403493
or edi, 0x200
jmp 0x403493
or edi, 2
jmp 0x403493
or edi, 4
jmp 0x403493
or edi, 0x80
jmp 0x403493
or edi, 8
jmp 0x403493
or edi, 0x10
jmp 0x403493
or edi, 0x20
jmp 0x403493
or edi, 0x40
jmp 0x403493
call dbg.DoRegServer
mov dword [ebp - 0x90], eax
jmp 0x40283c
mov dword [ebp - 0xb8], edi
mov esi, dword [ebp - 0xa8]
mov edi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jge 0x404578
mov eax, dword [ebp - 0x80]
lea esi, [esi + eax + 4]
test byte [section..data], 8
jne 0x403b00
mov dword [ebp - 0xa8], 1
mov eax, dword [esi]
mov dword [ebp - 0x94], eax
jmp 0x40254f
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4024d8
add eax, 2
mov edx, 0x40738c
call dbg.msi_strprefix
test eax, eax
je 0x40399f
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4035dd
add eax, 2
mov edx, 0x40738c
call dbg.msi_strprefix
test eax, eax
je 0x4035dd
mov eax, dword [ebx]
add eax, 4
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
cmp word [eax], 0
je 0x4035e7
test byte [section..data], 8
jne 0x403abc
mov edx, str.REMOVEALL
lea eax, [ebp - 0x74]
call dbg.StringListAppend
mov dword [ebp - 0xa4], 1
jmp 0x40254f
movzx eax, word [ebp - 0x9c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402f11
mov ecx, dword [ebp - 0x94]
test ecx, ecx
jne 0x40358c
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jge 0x404578
mov eax, dword [ebp - 0x80]
mov eax, dword [esi + eax + 4]
mov dword [ebp - 0x94], eax
test byte [section..data], 8
je 0x4035a5
mov edx, dword [ebp - 0x94]
mov eax, str._null_
test edx, edx
jne 0x403abc
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.PackageName___s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4035a5
test eax, eax
je 0x403cf1
shr eax, 0x10
je 0x403cd3
mov dword [esp + 4], 0xffffffff
mov esi, dword [ebp - 0x9c]
mov ebx, str._invalid_
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x403688
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov ebx, eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Failed_to_register_dll__s_n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x90], eax
jmp 0x40283c
lea ebx, [ebp - 0x48]
mov dword [esp + 0x10], 0x20
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str..pipemsica__x__d
mov dword [esp + 4], 0x18
call dbg.swprintf
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x403baf
mov dword [esp + 4], 0
lea edi, [ebp - 0x58]
lea esi, [ebp - 0x64]
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
sub esp, 8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x10
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x403b6c
cmp dword [ebp - 0x64], 0x10
jne 0x403b6c
mov eax, dword [edi]
test eax, eax
jne 0x4037b0
mov eax, dword [edi + 4]
test eax, eax
jne 0x4037b0
mov eax, dword [edi + 8]
test eax, eax
jne 0x4037b0
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4037b0
mov dword [ebp - 0x90], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40283c
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [edi]
sub esp, 0xc
mov dword [eax], edx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov edx, dword [edi + 8]
mov dword [eax + 8], edx
mov edx, dword [edi + 0xc]
mov dword [eax + 0xc], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], dbg.custom_action_thread
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], eax
sub esp, 0x18
lea eax, [ebp - 0x60]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 8
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x403861
cmp dword [ebp - 0x64], 8
je 0x403746
test byte [section..data], 2
jne 0x404538
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x90], eax
jmp 0x40283c
mov eax, dword [ebp - 0x94]
call dbg.get_path_with_extension
mov ebx, eax
test eax, eax
je 0x403960
mov eax, dword [ebp - 0xb8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._MsiReinstallProductW_8
sub esp, 8
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x90], esi
sub esp, 0xc
jmp 0x40283c
test ebx, ebx
je 0x40456e
mov eax, ebx
shr eax, 0x10
je 0x403bf2
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x40391c
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4071ec
mov dword [esp + 8], 0x4078e0
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402cdc
mov eax, 0x2aa
cmovne eax, dword [ebp - 0xb8]
mov dword [ebp - 0xb8], eax
jmp 0x403504
mov dword [ebp - 0x90], 2
jmp 0x40283c
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4033b0
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4031b9
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4024d8
add eax, 2
mov edx, str.uninstall
call dbg.msi_strequal
test eax, eax
jne 0x403562
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4024d8
add eax, 2
mov edx, 0x4073c0
call dbg.msi_strprefix
test eax, eax
mov eax, dword [ebx]
je 0x4024d8
cmp word [eax], 0
je 0x4045bb
mov edx, eax
add edx, 2
cmp word [edx], 0
jne 0x4039fb
sub edx, eax
mov ecx, edx
sar ecx, 1
mov dword [ebp - 0x88], ecx
cmp edx, 4
jle 0x4045bb
mov ecx, 2
mov dword [ebp - 0x94], edi
mov edi, ebx
mov dword [ebp - 0xac], esi
mov esi, ecx
jmp 0x403a5d
cmp bx, 0x4d
je 0x4045a0
cmp bx, 0x55
jne 0x403a73
mov dword [ebp - 0xb4], 1
mov eax, dword [ebp - 0x88]
add esi, 1
cmp esi, eax
jge 0x4045af
mov eax, dword [edi]
movzx ebx, word [eax + esi*2]
cmp bx, 0x6d
je 0x4045a0
jbe 0x403a30
cmp bx, 0x75
je 0x403a40
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Unknown_option___c__in_Advertise_mode_n
mov dword [esp], eax
call sym._fprintf
jmp 0x403a4a
movzx eax, word [ebp - 0x9c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x403142
call dbg.DoService
jmp 0x402a26
mov eax, dword [ebp - 0x94]
shr eax, 0x10
je 0x403cfb
mov dword [esp + 4], 0xffffffff
mov esi, dword [ebp - 0x94]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x40361e
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
jmp 0x40361e
mov ebx, dword [esi]
test ebx, ebx
je 0x403f1a
mov eax, ebx
shr eax, 0x10
je 0x403ee0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x403b3b
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x403526
test byte [section..data], 2
je 0x40386e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Failed_to_read_from_custom_action_server_pipe:__lu_n
mov dword [esp + 8], 0x4078e0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x406000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40386e
test byte [section..data], 2
je 0x403874
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Failed_to_create_custom_action_server_pipe:__lu_n
mov dword [esp + 8], 0x4078e0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x406000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x403874
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x40391c
mov eax, str._null_
jmp 0x4033b0
movzx eax, word [ebp - 0x9c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov ebx, eax
jmp 0x4032c9
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x424
je 0x403d17
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 4], str.Failed_to_open_MSI_service_n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0x8c]
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [ebp - 0x90], eax
jmp 0x403275
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 4], str.Failed_to_open_service_control_manager_n
mov dword [esp], eax
call sym._fprintf
jmp 0x402366
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 4], str.Failed_to_delete_MSI_service_n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
jmp 0x403267
mov eax, str._null_
jmp 0x403142
movzx eax, word [ebp - 0x9c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov ebx, eax
jmp 0x403688
mov ebx, str._null_
jmp 0x403688
movzx eax, word [ebp - 0x94]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x40361e
mov dword [ebp - 0x90], 0
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x403275
mov eax, dword [ebx]
mov edx, 0x4073ed
call dbg.msi_strequal
test eax, eax
je 0x403dae
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jge 0x404578
mov eax, dword [ebp - 0x80]
lea ebx, [esi + eax + 4]
test byte [section..data], 8
jne 0x403d79
mov dword [ebp - 0xac], 1
mov eax, dword [ebx]
mov dword [ebp - 0x94], eax
xor eax, eax
mov dword [ebp - 0xb4], eax
jmp 0x40254f
mov eax, dword [ebx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x403d5a
mov eax, dword [ebx]
mov edx, 0x4073ef
call sym._msi_option_equal
test eax, eax
je 0x403e5c
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jge 0x404578
mov eax, dword [ebp - 0x80]
lea ebx, [esi + eax + 4]
test byte [section..data], 8
jne 0x403e27
mov edx, dword [ebx]
lea eax, [ebp - 0x70]
call dbg.StringListAppend
jmp 0x40254f
mov eax, dword [ebx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40250c
mov eax, dword [ebx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x403de0
mov eax, dword [ebx]
mov edx, 0x4073f1
call sym._msi_option_equal
test eax, eax
jne 0x403f6d
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x403f24
add eax, 2
mov edx, 0x4073f3
call dbg.msi_strprefix
test eax, eax
je 0x403f24
mov ecx, dword [ebx]
mov eax, ecx
jmp 0x403ea0
add eax, 2
cmp word [eax], 0
jne 0x403e9d
sub eax, ecx
mov dword [ebp - 0x88], edi
mov edx, 2
sar eax, 1
mov ebx, eax
mov eax, dword [ebp - 0xb0]
cmp edx, ebx
jge 0x404365
movzx edi, word [ecx + edx*2]
sub edi, 0x21
cmp di, 0x56
ja case.0x403ed9.1
movzx edi, di
jmp dword [edi*4 + 0x40771c]
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x403b3b
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402d48
mov eax, str._null_
jmp 0x402d48
mov eax, str._null_
jmp 0x403b3b
mov eax, dword [ebx]
mov edx, 0x40741d
call sym._msi_option_equal
test eax, eax
je 0x403fef
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jge 0x404578
mov eax, dword [ebp - 0x80]
lea ebx, [esi + eax + 4]
test byte [section..data], 8
jne 0x403fb7
mov dword [ebp - 0x90], 1
mov eax, dword [ebx]
mov dword [ebp - 0xd4], eax
jmp 0x40254f
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jge 0x404578
mov eax, dword [ebp - 0x80]
lea ebx, [esi + eax + 4]
test byte [section..data], 8
jne 0x404058
mov ebx, dword [ebx]
xor eax, eax
jmp 0x403f9f
imul eax, eax, 0xa
add ebx, 2
lea eax, [eax + edx - 0x30]
movzx edx, word [ebx]
lea ecx, [edx - 0x30]
cmp cx, 9
jbe 0x403f95
mov word [ebp - 0xc6], ax
jmp 0x40254f
mov eax, dword [ebx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x403f56
mov eax, dword [ebx]
mov edx, str.update
call sym._msi_option_equal
test eax, eax
jne 0x403f38
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x404090
add eax, 2
mov edx, 0x407426
call dbg.msi_strprefix
test eax, eax
je 0x404090
mov edx, dword [ebx]
mov eax, edx
jmp 0x40402b
add eax, 2
cmp word [eax], 0
jne 0x404028
sub eax, edx
cmp eax, 4
je 0x404049
lea eax, [edx + 4]
mov edx, 0x407428
call dbg.msi_strequal
test eax, eax
je 0x4040bc
mov dword [ebp - 0x98], 2
jmp 0x40254f
mov eax, dword [ebx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x403f8f
mov eax, dword [ebx]
mov edx, str.passive
call sym._msi_option_equal
test eax, eax
je 0x4040f9
mov edx, str.REBOOTPROMPT_S_
lea eax, [ebp - 0x74]
call dbg.StringListAppend
mov dword [ebp - 0x98], 0x63
jmp 0x40254f
mov eax, dword [ebx]
mov edx, str.uiet
add eax, 4
call dbg.msi_strequal
test eax, eax
jne 0x404049
mov eax, dword [ebx]
mov edx, 0x40742f
add eax, 4
call dbg.msi_strequal
test eax, eax
je 0x40429f
mov dword [ebp - 0x98], 4
jmp 0x40254f
mov eax, dword [ebx]
mov edx, 0x4074a2
call sym._msi_option_equal
test eax, eax
je 0x404171
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jge 0x404578
mov eax, dword [ebp - 0x80]
lea ebx, [esi + eax + 4]
test byte [section..data], 8
je 0x40415a
mov eax, dword [ebx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov dword [ebp - 0xbc], 1
mov eax, dword [ebx]
mov dword [ebp - 0x9c], eax
jmp 0x40254f
mov eax, dword [ebx]
mov edx, 0x4074a4
call sym._msi_option_equal
test eax, eax
je 0x4041e9
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jge 0x404578
mov eax, dword [ebp - 0x80]
lea ebx, [esi + eax + 4]
test byte [section..data], 8
je 0x4041d2
mov eax, dword [ebx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov dword [ebp - 0xc0], 1
mov eax, dword [ebx]
mov dword [ebp - 0x9c], eax
jmp 0x40254f
mov eax, dword [ebx]
mov edx, str.help
call sym._msi_option_equal
test eax, eax
jne 0x404298
mov eax, dword [ebx]
mov edx, 0x4074ab
call sym._msi_option_equal
test eax, eax
jne 0x404298
mov eax, dword [ebx]
mov edx, 0x4073ed
call sym._msi_option_equal
test eax, eax
je 0x40425b
test byte [section..data], 1
je 0x40424c
xor ecx, ecx
mov dword [esp + 0xc], str.Unknown_parameter__m_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], ecx
call sym._wine_dbg_log.constprop.0
mov dword [ebp - 0xc4], 1
jmp 0x40254f
mov eax, dword [ebx]
mov edx, 0x4074c3
call sym._msi_option_equal
test eax, eax
je 0x4042c1
test byte [section..data], 1
je 0x40424c
xor edx, edx
mov dword [esp + 0xc], str.Unknown_parameter__D_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], edx
call sym._wine_dbg_log.constprop.0
jmp 0x40424c
xor eax, eax
call dbg.ShowUsage
mov eax, dword [ebx]
mov edx, 0x407365
add eax, 4
call dbg.msi_strequal
test eax, eax
je 0x4042e0
mov dword [ebp - 0x98], 0x85
jmp 0x40254f
mov eax, dword [ebx]
mov edx, 0x4074db
call sym._msi_option_equal
test eax, eax
je 0x404302
mov dword [ebp - 0xd0], 1
jmp 0x40254f
mov eax, dword [ebx]
mov edx, 0x407431
add eax, 4
call dbg.msi_strequal
test eax, eax
je 0x404311
mov dword [ebp - 0x98], 0x82
jmp 0x40254f
mov edx, dword [ebx]
lea eax, [ebp - 0x74]
call dbg.StringListAppend
jmp 0x40254f
mov eax, dword [ebx]
mov edx, 0x407434
add eax, 4
call dbg.msi_strprefix
test eax, eax
mov eax, dword [ebx]
jne 0x404427
add eax, 4
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp], 2
mov ebx, eax
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Unknown_option___s__for_UI_level_n
mov dword [esp], eax
call sym._fprintf
jmp 0x40254f
or eax, 4
add edx, 1
jmp 0x403ebd
mov edi, dword [ebp - 0x88]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jge 0x404578
mov eax, dword [ebp - 0x80]
lea ebx, [esi + eax + 4]
test byte [section..data], 8
jne 0x4044c3
mov eax, dword [ebp - 0xcc]
mov ebx, dword [ebx]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call sym._MsiEnableLogW_12
sub esp, 0xc
test eax, eax
je 0x40254f
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp], 2
mov ebx, eax
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, dword [ebp - 0xcc]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0xb0]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str.Logging_in__s__0x_08lx___lu__failed_n
mov dword [esp], eax
call sym._fprintf
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
or ah, 4
jmp case.0x403ed9.1
or eax, 8
jmp case.0x403ed9.1
or ah, 2
jmp case.0x403ed9.1
or ah, 0x10
jmp case.0x403ed9.1
lea ebx, [eax + 6]
mov esi, 3
cmp word [ebx], 0
je 0x4044a1
mov edx, 0x407436
mov eax, ebx
call dbg.msi_strprefix
test eax, eax
je 0x40444b
or esi, 0x80
mov edx, 0x407438
mov eax, ebx
call dbg.msi_strprefix
test eax, eax
je 0x40445e
or esi, 0x40
mov edx, 0x40743a
mov eax, ebx
call dbg.msi_strprefix
test eax, eax
je 0x40449c
test byte [section..data], 1
je 0x404499
xor eax, eax
mov dword [esp + 0xc], 0x40743c
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], eax
call sym._wine_dbg_log.constprop.0
or esi, 0x20
add ebx, 2
jmp 0x40442f
mov dword [ebp - 0x98], esi
jmp 0x40254f
or eax, 1
jmp case.0x403ed9.1
or eax, 0x10
jmp case.0x403ed9.1
or al, 0x80
jmp case.0x403ed9.1
mov eax, dword [ebx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x404393
or eax, 2
jmp case.0x403ed9.1
or ah, 8
jmp case.0x403ed9.1
mov eax, 0x7fdf
jmp case.0x403ed9.1
or dword [ebp - 0xcc], 2
jmp case.0x403ed9.1
or ah, 1
jmp case.0x403ed9.1
or dword [ebp - 0xcc], 1
jmp case.0x403ed9.1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Failed_to_write_to_custom_action_server_pipe:__lu_n
mov dword [esp + 8], 0x4078e0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x406000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40386e
mov eax, str._null_
jmp 0x40391c
mov eax, 1
call dbg.ShowUsage
lea esi, [esi]
mov ebx, str._null_
jmp 0x4032c9
mov dword [ebp - 0x7c], 2
xor edx, edx
jmp 0x402fa6
mov dword [ebp - 0xb4], 0
jmp 0x403a4a
mov edi, dword [ebp - 0x94]
mov esi, dword [ebp - 0xac]
mov eax, dword [ebp - 0x7c]
add edi, 1
cmp edi, eax
jge 0x404578
mov eax, dword [ebp - 0x80]
lea ebx, [esi + eax + 4]
test byte [section..data], 8
jne 0x4045ec
mov dword [ebp - 0xac], 1
mov eax, dword [ebx]
mov dword [ebp - 0x94], eax
jmp 0x40254f
mov eax, dword [ebx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4045d5