Function at 0x402960
Capabilities:
Accept command line arguments
Delete service
Get process heap flags
Query or enumerate registry value
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, 0xb8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0
call sym._InitCommonControls_0
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x38]
call dbg.process_args
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
cmp eax, 1
jg 0x4029d0
mov dword [esp + 4], 0
mov dword [esp], 5
call sym._MsiSetInternalUI_8
sub esp, 8
mov eax, 1
call dbg.ShowUsage
nop
mov esi, dword [ebp - 0x34]
mov edx, dword [esi + 4]
mov dword [ebp - 0x4c], esi
movzx eax, word [edx]
and eax, 0xfffffffd
cmp ax, 0x2d
jne 0x402b67
lea eax, [edx + 2]
mov edx, 0x40723c
call dbg.msi_strequal
test eax, eax
je 0x4033ff
lea eax, [ebp - 0x30]
mov edi, dword [esi + 8]
mov dword [esp + 4], 0x407240
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x403350
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x402b4d
cmp dword [ebp - 0x28], 1
jne 0x402b4d
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
cmp word [ecx], 0
je 0x404110
mov eax, ecx
add eax, 2
cmp word [eax], 0
jne 0x402a88
sub eax, ecx
mov edx, eax
lea eax, [eax + 2]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x2c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x54], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x54]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x402b4d
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x4c], edx
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._memcpy
mov edx, dword [ebp - 0x4c]
mov eax, 0x20
mov word [ebx + edx], ax
lea eax, [ebp - 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], 0
add eax, ebx
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x403589
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x403350
mov dword [ebp - 0x50], 3
xor ebx, ebx
mov edi, 1
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x68], 5
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x70], 0
mov word [ebp - 0x9a], bx
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x6c], 0
lea esi, [esi]
mov eax, dword [ebp - 0x4c]
lea esi, [edi*4]
lea ebx, [eax + esi]
test byte [section..data], 8
jne 0x402cd0
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
je 0x402c98
mov edx, str.umtgl
call dbg.msi_strequal
test eax, eax
je 0x403ffa
add edi, 1
cmp edi, dword [ebp - 0x50]
jge 0x4029c4
mov eax, dword [ebp - 0x4c]
lea ebx, [eax + esi + 4]
test byte [section..data], 8
jne 0x404045
mov eax, dword [ebx]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x64], eax
jmp 0x402cb4
add eax, 2
mov edx, str.regserver
call dbg.msi_strequal
test eax, eax
je 0x402d40
mov dword [ebp - 0x54], 1
add edi, 1
cmp edi, dword [ebp - 0x50]
jge 0x402d7a
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
jmp 0x402c20
mov edx, dword [ebx]
test edx, edx
je 0x402ff0
mov eax, edx
shr eax, 0x10
je 0x402fd0
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
mov dword [ebp - 0x58], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x402d0f
mov eax, dword [ebp - 0x58]
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 0x402c3a
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x402c48
add eax, 2
mov edx, str.unregserver
call dbg.msi_strequal
test eax, eax
je 0x403000
mov dword [ebp - 0x5c], 1
add edi, 1
cmp edi, dword [ebp - 0x50]
jl 0x402cc0
movzx eax, byte [ebp - 0x74]
and al, byte [ebp - 0x60]
mov dword [esp + 4], 0
xor eax, 1
and al, byte [ebp - 0x6c]
mov esi, dword [ebp - 0x40]
mov byte [ebp - 0x6c], al
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x70], esi
mov dword [esp], eax
call sym._MsiSetInternalUI_8
sub esp, 8
test esi, esi
je 0x40364d
mov edx, esi
mov ebx, 1
lea esi, [esi]
cmp word [edx + 4], 0
lea ecx, [edx + 4]
je 0x4030e8
mov eax, ecx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x402dd0
sub eax, ecx
sar eax, 1
add eax, 3
mov edx, dword [edx]
add ebx, eax
test edx, edx
jne 0x402db8
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
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x68], eax
sub esp, 0xc
mov edi, eax
jmp 0x402e2a
mov ebx, dword [ebx]
test ebx, ebx
je 0x402f05
lea edx, [ebx + 4]
mov dword [esp + 4], 0x3d
mov dword [esp], edx
mov dword [ebp - 0x4c], edx
call dword [sym.imp.ucrtbase.dll_wcschr]
mov esi, eax
test eax, eax
je 0x402e20
mov edx, 0x20
lea ecx, [edi + 2]
mov word [edi], dx
mov edx, dword [ebp - 0x4c]
mov edi, eax
mov dword [esp], ecx
sub edi, edx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [ebp - 0x4c], ecx
call sym._memcpy
mov ecx, dword [ebp - 0x4c]
add ecx, edi
mov edi, 0x3d
mov word [ecx], di
lea edi, [esi + 2]
mov dword [ebp - 0x4c], ecx
mov dword [esp + 4], 0x20
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov ecx, dword [ebp - 0x4c]
test eax, eax
mov dword [ebp - 0x50], eax
je 0x4030d0
mov eax, 0x22
lea edx, [ecx + 4]
mov word [ecx + 2], ax
cmp word [esi + 2], 0
je 0x402ef0
mov eax, edi
lea esi, [esi]
nop
mov ecx, eax
add eax, 2
cmp word [eax], 0
jne 0x402eb8
sub ecx, esi
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], edx
call sym._memcpy
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
add edx, ecx
mov edi, edx
test eax, eax
je 0x402e20
mov eax, 0x22
lea edi, [edx + 2]
mov word [edx], ax
mov ebx, dword [ebx]
test ebx, ebx
jne 0x402e2a
xor eax, eax
mov word [edi], ax
test byte [section..data], 8
jne 0x4030f2
cmp byte [ebp - 0x6c], 0
jne 0x403161
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x4031f8
mov edi, dword [ebp - 0x80]
test edi, edi
jne 0x403414
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x40361c
mov edi, dword [ebp - 0x88]
test edi, edi
jne 0x40335c
mov esi, dword [ebp - 0x90]
test esi, esi
jne 0x4036f4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
jne 0x403a89
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
jne 0x40379f
mov edx, dword [ebp - 0xa4]
test edx, edx
jne 0x403ddf
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x4029c4
test byte [section..data], 1
je 0x403350
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
mov eax, dword [ebp - 0x94]
jmp 0x40323e
movzx edx, dx
mov dword [esp], str._04x
mov dword [esp + 4], edx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402d0f
mov eax, str._null_
jmp 0x402d0f
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x402c48
add eax, 2
mov edx, str.unregister
call dbg.msi_strequal
test eax, eax
jne 0x402d67
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x402c48
add eax, 2
mov edx, str.unreg
call dbg.msi_strequal
test eax, eax
jne 0x402d67
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x402c48
add eax, 2
mov edx, 0x407307
call dbg.msi_strprefix
test eax, eax
je 0x40327c
mov ecx, dword [ebx]
movzx eax, word [ecx]
mov edx, eax
and edx, 0xfffffffd
cmp dx, 0x2d
je 0x403252
mov edx, ecx
mov ebx, 8
test ax, ax
je 0x403550
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4030a0
sub eax, edx
sar eax, 1
cmp ebx, eax
jge 0x403550
lea eax, [ecx + ebx*2]
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x64], eax
jmp 0x402cb4
cmp word [esi + 2], 0
lea edx, [ecx + 2]
jne 0x402eb1
mov edi, edx
jmp 0x402e20
mov eax, 3
jmp 0x402de0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x403783
shr eax, 0x10
je 0x4033e6
mov esi, dword [ebp - 0x68]
mov dword [esp + 4], 0xffffffff
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 0x40312f
mov eax, esi
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
cmp byte [ebp - 0x6c], 0
je 0x402f21
mov eax, dword [ebp - 0x64]
cmp word [eax], 0
je 0x403185
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x403170
sub eax, dword [ebp - 0x64]
cmp eax, 0x4c
je 0x4038a2
mov eax, dword [ebp - 0x68]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sym._MsiInstallProductW_8
mov dword [ebp - 0x60], eax
sub esp, 8
cmp eax, 2
jne 0x403241
mov eax, dword [ebp - 0x64]
call dbg.get_path_with_extension
mov ebx, eax
test eax, eax
je 0x403dd3
mov eax, dword [ebp - 0x68]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._MsiInstallProductW_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 - 0x60], esi
sub esp, 0xc
jmp 0x403241
mov eax, dword [ebp - 0x64]
cmp word [eax], 0
je 0x40321d
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x403208
sub eax, dword [ebp - 0x64]
cmp eax, 0x4c
je 0x403326
mov eax, dword [ebp - 0x8c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sym._MsiReinstallProductW_8
sub esp, 8
cmp eax, 2
je 0x403bf7
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
lea eax, [ecx + 2]
mov edx, 0x407307
mov dword [ebp - 0x58], ecx
call dbg.msi_strprefix
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x58]
test eax, eax
movzx eax, word [edx]
je 0x40308b
mov ebx, 2
jmp 0x403090
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x402c48
add eax, 2
mov edx, str.package
call dbg.msi_strprefix
test eax, eax
jne 0x403075
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x402c48
add eax, 2
mov edx, 0x407311
call dbg.msi_strequal
test eax, eax
je 0x403996
add edi, 1
cmp edi, dword [ebp - 0x50]
jge 0x4029c4
mov eax, dword [ebp - 0x4c]
lea esi, [eax + esi + 4]
test byte [section..data], 8
jne 0x4038e9
mov eax, dword [esi]
mov edx, str.ACTIONADMIN
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x40]
call dbg.StringListAppend
test byte [section..data], 1
jne 0x403955
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x6c], 1
jmp 0x402cb4
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sym._CLSIDFromString_8
sub esp, 8
test eax, eax
jne 0x40321d
test byte [section..data], 1
jne 0x403659
mov dword [ebp - 0x60], 1
jmp 0x403241
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x28]
mov edx, str.DllRegisterServer
mov dword [ebp - 0x28], 0
call sym._LoadProc.constprop.0
call eax
test eax, eax
mov eax, dword [ebp - 0x78]
js 0x403c20
test eax, eax
je 0x40388e
shr eax, 0x10
je 0x403bde
mov esi, dword [ebp - 0x78]
mov dword [esp + 4], 0xffffffff
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 0x4033ba
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 - 0x28]
test eax, eax
je 0x403241
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
jmp 0x403241
movzx eax, word [ebp - 0x68]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x40312f
cmp dword [ebp - 0x50], 3
je 0x4035d1
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
jmp 0x402b67
mov edx, dword [ebp - 0x70]
test edx, edx
je 0x403c89
mov ebx, 1
lea esi, [esi]
cmp word [edx + 4], 0
lea ecx, [edx + 4]
je 0x403612
mov eax, ecx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x403440
sub eax, ecx
sar eax, 1
add eax, 1
mov edx, dword [edx]
add ebx, eax
test edx, edx
jne 0x403428
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
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, dword [ebp - 0x70]
mov dword [ebp - 0x50], eax
sub esp, 0xc
mov dword [ebp - 0x4c], eax
lea esi, [esi]
nop
movzx ebx, word [edi + 4]
lea edx, [edi + 4]
test bx, bx
je 0x403581
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4034a8
sub eax, edx
mov ecx, eax
sar ecx, 1
mov esi, ecx
cmp eax, 2
jbe 0x403541
mov ecx, dword [ebp - 0x4c]
lea esi, [esi]
sub esi, 1
add ecx, 2
add edx, 2
mov word [ecx - 2], bx
cmp esi, 1
je 0x4034e2
movzx ebx, word [edx]
test bx, bx
jne 0x4034c8
mov esi, dword [ebp - 0x4c]
add eax, esi
xor esi, esi
mov edx, eax
mov word [ecx], si
mov ebx, dword [edi]
test ebx, ebx
je 0x40350a
mov ecx, 0x3b
lea eax, [edx + 2]
mov word [edx], cx
mov edi, dword [edi]
mov dword [ebp - 0x4c], eax
test edi, edi
jne 0x403490
mov edx, eax
xor eax, eax
mov word [edx], ax
movzx eax, word [ebp - 0x9a]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x84]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sym._MsiAdvertiseProductW_16
mov dword [ebp - 0x60], eax
sub esp, 0x10
jmp 0x403241
add eax, dword [ebp - 0x4c]
mov edx, eax
test ecx, ecx
je 0x4034ee
mov ecx, dword [ebp - 0x4c]
jmp 0x4034e7
add edi, 1
cmp edi, dword [ebp - 0x50]
jge 0x4029c4
mov eax, dword [ebp - 0x4c]
lea esi, [eax + esi + 4]
test byte [section..data], 8
jne 0x403688
mov eax, dword [esi]
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x64], eax
jmp 0x402cb4
mov edx, dword [ebp - 0x4c]
jmp 0x4034ee
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x38]
mov eax, ebx
call dbg.process_args
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x30]
sub esp, 0xc
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, dword [ebp - 0x38]
sub esp, 4
mov dword [ebp - 0x50], eax
cmp eax, 3
jne 0x4040f4
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 4]
mov dword [ebp - 0x4c], eax
movzx eax, word [edx]
and eax, 0xfffffffd
cmp ax, 0x2d
jne 0x402b60
lea eax, [edx + 2]
mov edx, str.Embedding
call dbg.msi_strequal
test eax, eax
je 0x40378d
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 8]
call dbg.custom_action_server
mov dword [ebp - 0x60], eax
jmp 0x403241
mov eax, 1
jmp 0x403450
mov eax, dword [ebp - 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xa0]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa8]
mov dword [esp], eax
call sym._MsiApplyPatchW_16
mov dword [ebp - 0x60], eax
sub esp, 0x10
jmp 0x403241
mov dword [ebp - 0x68], 0
jmp 0x402f17
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
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x60], eax
jmp 0x403241
mov ebx, dword [esi]
test ebx, ebx
je 0x403898
mov eax, ebx
shr eax, 0x10
je 0x403dec
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 0x4036c3
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 0x403570
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x28]
mov edx, str.DllUnregisterServer
mov dword [ebp - 0x28], 0
call sym._LoadProc.constprop.0
call eax
test eax, eax
mov eax, dword [ebp - 0x78]
js 0x403822
test eax, eax
je 0x403f7e
shr eax, 0x10
je 0x403e04
mov esi, dword [ebp - 0x78]
mov dword [esp + 4], 0xffffffff
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 0x403752
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 - 0x28]
test eax, eax
je 0x403775
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x60], eax
jmp 0x403241
mov eax, str._null_
jmp 0x40312f
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], 3
mov dword [ebp - 0x4c], eax
jmp 0x402b67
mov dword [esp + 8], 1
mov dword [esp + 4], str.ServicesActive
mov dword [esp], 0
call sym._OpenSCManagerW_12
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x403ee6
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 0x407066
mov dword [esp], eax
call sym._OpenServiceW_12
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x403ea4
mov dword [esp], eax
call sym._DeleteService_4
mov dword [ebp - 0x60], 0
sub esp, 4
test eax, eax
je 0x403f0e
mov dword [esp], esi
call sym._CloseServiceHandle_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseServiceHandle_4
sub esp, 4
jmp 0x403241
test eax, eax
je 0x403f88
shr eax, 0x10
je 0x403f40
mov esi, dword [ebp - 0x78]
mov dword [esp + 4], 0xffffffff
mov ebx, str._invalid_
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x40385c
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 - 0x90]
mov dword [ebp - 0x88], eax
jmp 0x403775
mov eax, str._null_
jmp 0x4033ba
mov eax, str._null_
jmp 0x4036c3
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._CLSIDFromString_8
sub esp, 8
test eax, eax
jne 0x403185
mov eax, dword [ebp - 0x68]
mov dword [esp + 8], 5
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov dword [esp], esi
call sym._MsiConfigureProductExW_16
mov dword [ebp - 0x60], eax
sub esp, 0x10
jmp 0x403241
mov ebx, dword [esi]
test ebx, ebx
je 0x403f74
mov eax, ebx
shr eax, 0x10
je 0x403dbb
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 0x403924
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 0x4032ea
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
mov dword [ebp - 0x74], 1
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0x6c], 1
jmp 0x402cb4
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x402c48
add eax, 2
mov edx, 0x407365
call dbg.msi_strprefix
test eax, eax
mov eax, dword [ebx]
je 0x403ad3
cmp word [eax], 0
je 0x403aa2
mov edx, eax
add edx, 2
cmp word [edx], 0
jne 0x4039cb
sub edx, eax
mov ecx, edx
sar ecx, 1
mov dword [ebp - 0x58], ecx
cmp edx, 4
jle 0x403da4
mov dword [ebp - 0x7c], esi
mov ecx, 2
mov edx, ebx
mov dword [ebp - 0x64], edi
mov edi, dword [ebp - 0x8c]
mov ebx, ecx
movzx esi, word [eax + ebx*2]
lea eax, [esi - 0x41]
cmp ax, 0x35
ja case.0x403a0b.1
movzx eax, ax
jmp dword [eax*4 + 0x407644]
mov dword [ebp - 0x8c], 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 - 0x8c]
add ebx, 1
cmp ebx, dword [ebp - 0x58]
jge 0x403a96
mov eax, dword [edx]
jmp 0x4039fb
or edi, 0x400
jmp 0x403a3f
or edi, 0x100
jmp 0x403a3f
or edi, 0x200
jmp 0x403a3f
or edi, 2
jmp 0x403a3f
or edi, 4
jmp 0x403a3f
or edi, 0x80
jmp 0x403a3f
or edi, 8
jmp 0x403a3f
or edi, 0x10
jmp 0x403a3f
or edi, 0x20
jmp 0x403a3f
or edi, 0x40
jmp 0x403a3f
call dbg.DoRegServer
mov dword [ebp - 0x60], eax
jmp 0x403241
mov dword [ebp - 0x8c], edi
mov esi, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x64]
add edi, 1
cmp edi, dword [ebp - 0x50]
jge 0x4029c4
mov eax, dword [ebp - 0x4c]
lea esi, [eax + esi + 4]
test byte [section..data], 8
jne 0x403e1d
mov eax, dword [esi]
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x64], eax
jmp 0x402cb4
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x402c48
add eax, 2
mov edx, 0x40738c
call dbg.msi_strprefix
test eax, eax
je 0x403cbb
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x403b4a
add eax, 2
mov edx, 0x40738c
call dbg.msi_strprefix
test eax, eax
je 0x403b4a
mov eax, dword [ebx]
add eax, 4
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
cmp word [eax], 0
je 0x403b51
test byte [section..data], 8
jne 0x403b7c
mov edx, str.REMOVEALL
lea eax, [ebp - 0x40]
call dbg.StringListAppend
mov dword [ebp - 0x6c], 1
jmp 0x402cb4
mov ecx, dword [ebp - 0x64]
test ecx, ecx
jne 0x403b1f
add edi, 1
cmp edi, dword [ebp - 0x50]
jge 0x4029c4
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + esi + 4]
mov dword [ebp - 0x64], eax
test byte [section..data], 8
je 0x403b31
mov edx, dword [ebp - 0x64]
mov eax, str._null_
test edx, edx
je 0x403bb1
mov eax, dword [ebp - 0x64]
shr eax, 0x10
je 0x403f5b
mov esi, dword [ebp - 0x64]
mov dword [esp + 4], 0xffffffff
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 0x403bb1
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
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 0x403b31
movzx eax, word [ebp - 0x78]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4033ba
mov eax, dword [ebp - 0x64]
call dbg.get_path_with_extension
mov ebx, eax
test eax, eax
je 0x403dd3
mov eax, dword [ebp - 0x8c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._MsiReinstallProductW_8
jmp 0x4031c7
test eax, eax
je 0x403f36
shr eax, 0x10
je 0x403e89
mov esi, dword [ebp - 0x78]
mov dword [esp + 4], 0xffffffff
mov ebx, str._invalid_
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x403c5a
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 - 0x88]
mov dword [ebp - 0x60], eax
jmp 0x403241
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]
mov dword [ebp - 0x50], eax
sub esp, 0xc
mov edx, eax
jmp 0x40350a
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x402c48
add eax, 2
mov edx, str.uninstall
call dbg.msi_strequal
test eax, eax
jne 0x403af8
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x402c48
add eax, 2
mov edx, 0x4073c0
call dbg.msi_strprefix
test eax, eax
mov eax, dword [ebx]
je 0x402c48
cmp word [eax], 0
je 0x403fa7
mov edx, eax
add edx, 2
cmp word [edx], 0
jne 0x403d17
sub edx, eax
mov ecx, edx
sar ecx, 1
mov dword [ebp - 0x58], ecx
cmp edx, 4
jle 0x403fa7
mov ecx, 2
mov dword [ebp - 0x64], edi
mov edi, ebx
mov dword [ebp - 0x80], esi
mov esi, ecx
jmp 0x403d6b
cmp bx, 0x4d
je 0x403f92
cmp bx, 0x55
jne 0x403d81
mov dword [ebp - 0x84], 1
add esi, 1
cmp esi, dword [ebp - 0x58]
jge 0x403fa1
mov eax, dword [edi]
movzx ebx, word [eax + esi*2]
cmp bx, 0x6d
je 0x403f92
jbe 0x403d43
cmp bx, 0x75
je 0x403d53
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 0x403d5d
mov eax, 0x2aa
cmovne eax, dword [ebp - 0x8c]
mov dword [ebp - 0x8c], eax
jmp 0x403aa2
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x403924
mov dword [ebp - 0x60], 2
jmp 0x403241
call dbg.DoService
mov dword [ebp - 0x60], eax
jmp 0x403241
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4036c3
movzx eax, word [ebp - 0x78]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x403752
mov ebx, dword [esi]
test ebx, ebx
je 0x403ff0
mov eax, ebx
shr eax, 0x10
je 0x403fd8
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 0x403e58
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 0x403ac2
movzx eax, word [ebp - 0x78]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov ebx, eax
jmp 0x403c5a
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x424
mov dword [ebp - 0x60], 0
je 0x403812
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 - 0x5c]
mov dword [ebp - 0x60], eax
jmp 0x403812
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
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
jmp 0x403241
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 - 0x5c]
mov dword [ebp - 0x60], eax
jmp 0x403807
mov ebx, str._null_
jmp 0x403c5a
movzx eax, word [ebp - 0x78]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov ebx, eax
jmp 0x40385c
movzx eax, word [ebp - 0x64]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x403bb1
mov eax, str._null_
jmp 0x403924
mov eax, str._null_
jmp 0x403752
mov ebx, str._null_
jmp 0x40385c
mov dword [ebp - 0x84], 0
jmp 0x403d5d
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x80]
add edi, 1
cmp edi, dword [ebp - 0x50]
jge 0x4029c4
mov eax, dword [ebp - 0x4c]
lea ebx, [eax + esi + 4]
test byte [section..data], 8
jne 0x40411e
mov eax, dword [ebx]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x64], eax
jmp 0x402cb4
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x403e58
mov eax, str._null_
jmp 0x403e58
mov eax, dword [ebx]
mov edx, 0x4073ed
call dbg.msi_strequal
test eax, eax
je 0x4040b5
add edi, 1
cmp edi, dword [ebp - 0x50]
jge 0x4029c4
mov eax, dword [ebp - 0x4c]
lea ebx, [eax + esi + 4]
test byte [section..data], 8
jne 0x40407d
mov eax, dword [ebx]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x64], eax
jmp 0x402cb4
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 0x402c7a
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 0x40402a
mov eax, dword [ebx]
mov edx, 0x4073ef
call sym._msi_option_equal
test eax, eax
je 0x40418e
add edi, 1
cmp edi, dword [ebp - 0x50]
jge 0x4029c4
mov eax, dword [ebp - 0x4c]
lea ebx, [eax + esi + 4]
test byte [section..data], 8
jne 0x404156
mov edx, dword [ebx]
lea eax, [ebp - 0x3c]
call dbg.StringListAppend
jmp 0x402cb4
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], eax
jg 0x402b67
jmp 0x4029ad
mov dword [ebp - 0x50], 2
xor edx, edx
jmp 0x402a9b
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 0x403fc7
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 0x4040e5
mov eax, dword [ebx]
mov edx, 0x4073f1
call sym._msi_option_equal
test eax, eax
jne 0x404208
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x404250
add eax, 2
mov edx, 0x4073f3
call dbg.msi_strprefix
test eax, eax
je 0x404250
mov ecx, dword [ebx]
mov eax, ecx
jmp 0x4041ce
add eax, 2
cmp word [eax], 0
jne 0x4041cb
sub eax, ecx
mov dword [ebp - 0x58], edi
mov edx, 2
sar eax, 1
mov ebx, eax
mov eax, dword [ebp - 0x70]
cmp edx, ebx
jge 0x404346
movzx edi, word [ecx + edx*2]
sub edi, 0x21
cmp di, 0x56
ja case.0x404201.1
movzx edi, di
jmp dword [edi*4 + 0x40771c]
add edi, 1
cmp edi, dword [ebp - 0x50]
jge 0x4029c4
mov eax, dword [ebp - 0x4c]
lea ebx, [eax + esi + 4]
test byte [section..data], 8
jne 0x4043da
mov ebx, dword [ebx]
xor eax, eax
jmp 0x404238
imul eax, eax, 0xa
add ebx, 2
lea eax, [eax + edx - 0x30]
movzx edx, word [ebx]
lea ecx, [edx - 0x30]
cmp cx, 9
jbe 0x40422e
mov word [ebp - 0x9a], ax
jmp 0x402cb4
mov eax, dword [ebx]
mov edx, 0x40741d
call sym._msi_option_equal
test eax, eax
je 0x4042d0
add edi, 1
cmp edi, dword [ebp - 0x50]
jge 0x4029c4
mov eax, dword [ebp - 0x4c]
lea ebx, [eax + esi + 4]
test byte [section..data], 8
jne 0x40429b
mov eax, dword [ebx]
mov dword [ebp - 0x60], 1
mov dword [ebp - 0xa8], eax
jmp 0x402cb4
or eax, 4
add edx, 1
jmp 0x4041e5
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 0x40427c
mov eax, dword [ebx]
mov edx, str.update
call sym._msi_option_equal
test eax, eax
jne 0x404260
mov eax, dword [ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x40444a
add eax, 2
mov edx, 0x407426
call dbg.msi_strprefix
test eax, eax
je 0x40444a
mov edx, dword [ebx]
mov eax, edx
jmp 0x404310
add eax, 2
cmp word [eax], 0
jne 0x40430d
sub eax, edx
cmp eax, 4
je 0x404332
lea eax, [edx + 4]
mov edx, 0x407428
call dbg.msi_strequal
test eax, eax
je 0x404473
mov dword [ebp - 0x68], 2
jmp 0x402cb4
or ah, 0x10
jmp case.0x404201.1
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x70], eax
add edi, 1
cmp edi, dword [ebp - 0x50]
jge 0x4029c4
mov eax, dword [ebp - 0x4c]
lea ebx, [eax + esi + 4]
test byte [section..data], 8
jne 0x404412
mov eax, dword [ebp - 0x98]
mov ebx, dword [ebx]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._MsiEnableLogW_12
sub esp, 0xc
test eax, eax
je 0x402cb4
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 esi, dword [ebp - 0x98]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Logging_in__s__0x_08lx___lu__failed_n
mov dword [esp + 0x10], esi
mov esi, dword [ebp - 0x70]
mov dword [esp], eax
mov dword [esp + 0xc], esi
call sym._fprintf
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
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 0x404228
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 0x40436c
mov eax, dword [ebx]
mov edx, str.passive
call sym._msi_option_equal
test eax, eax
je 0x4044ad
mov edx, str.REBOOTPROMPT_S_
lea eax, [ebp - 0x40]
call dbg.StringListAppend
mov dword [ebp - 0x68], 0x63
jmp 0x402cb4
mov eax, dword [ebx]
mov edx, str.uiet
add eax, 4
call dbg.msi_strequal
test eax, eax
jne 0x404332
mov eax, dword [ebx]
mov edx, 0x40742f
add eax, 4
call dbg.msi_strequal
test eax, eax
je 0x40460b
mov dword [ebp - 0x68], 4
jmp 0x402cb4
mov eax, dword [ebx]
mov edx, 0x4074a2
call sym._msi_option_equal
test eax, eax
je 0x404520
add edi, 1
cmp edi, dword [ebp - 0x50]
jge 0x4029c4
mov eax, dword [ebp - 0x4c]
lea ebx, [eax + esi + 4]
test byte [section..data], 8
je 0x40450c
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 - 0x88], 1
mov eax, dword [ebx]
mov dword [ebp - 0x78], eax
jmp 0x402cb4
mov eax, dword [ebx]
mov edx, 0x4074a4
call sym._msi_option_equal
test eax, eax
je 0x404593
add edi, 1
cmp edi, dword [ebp - 0x50]
jge 0x4029c4
mov eax, dword [ebp - 0x4c]
lea ebx, [eax + esi + 4]
test byte [section..data], 8
je 0x40457f
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 - 0x90], 1
mov eax, dword [ebx]
mov dword [ebp - 0x78], eax
jmp 0x402cb4
mov eax, dword [ebx]
mov edx, str.help
call sym._msi_option_equal
test eax, eax
jne 0x40467a
mov eax, dword [ebx]
mov edx, 0x4074ab
call sym._msi_option_equal
test eax, eax
jne 0x40467a
mov eax, dword [ebx]
mov edx, 0x4073ed
call sym._msi_option_equal
test eax, eax
je 0x40462a
mov dword [ebp - 0x94], 1
test byte [section..data], 1
je 0x402cb4
mov dword [esp + 0xc], str.Unknown_parameter__m_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x402cb4
mov eax, dword [ebx]
mov edx, 0x407365
add eax, 4
call dbg.msi_strequal
test eax, eax
je 0x404681
mov dword [ebp - 0x68], 0x85
jmp 0x402cb4
mov eax, dword [ebx]
mov edx, 0x4074c3
call sym._msi_option_equal
test eax, eax
je 0x4046a0
mov dword [ebp - 0x94], 1
test byte [section..data], 1
je 0x402cb4
mov dword [esp + 0xc], str.Unknown_parameter__D_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x402cb4
xor eax, eax
call dbg.ShowUsage
mov eax, dword [ebx]
mov edx, 0x407431
add eax, 4
call dbg.msi_strequal
test eax, eax
je 0x4046bf
mov dword [ebp - 0x68], 0x82
jmp 0x402cb4
mov eax, dword [ebx]
mov edx, 0x4074db
call sym._msi_option_equal
test eax, eax
je 0x404704
mov dword [ebp - 0xa4], 1
jmp 0x402cb4
mov eax, dword [ebx]
mov edx, 0x407434
add eax, 4
call dbg.msi_strprefix
test eax, eax
mov eax, dword [ebx]
jne 0x404713
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 0x402cb4
mov edx, dword [ebx]
lea eax, [ebp - 0x40]
call dbg.StringListAppend
jmp 0x402cb4
lea ebx, [eax + 6]
mov esi, 3
cmp word [ebx], 0
je 0x40478f
mov edx, 0x407436
mov eax, ebx
call dbg.msi_strprefix
test eax, eax
je 0x404737
or esi, 0x80
mov edx, 0x407438
mov eax, ebx
call dbg.msi_strprefix
test eax, eax
je 0x40474a
or esi, 0x40
mov edx, 0x40743a
mov eax, ebx
call dbg.msi_strprefix
test eax, eax
je 0x40478a
test byte [section..data], 1
je 0x404787
mov dword [esp + 0xc], 0x40743c
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
or esi, 0x20
add ebx, 2
jmp 0x40471b
mov dword [ebp - 0x68], esi
jmp 0x402cb4
or eax, 8
jmp case.0x404201.1
or ah, 2
jmp case.0x404201.1
or ah, 4
jmp case.0x404201.1
or al, 0x80
jmp case.0x404201.1
or ah, 1
jmp case.0x404201.1
or dword [ebp - 0x98], 1
jmp case.0x404201.1
mov eax, 0x7fdf
jmp case.0x404201.1
or dword [ebp - 0x98], 2
jmp case.0x404201.1
or eax, 1
jmp case.0x404201.1
or eax, 0x10
jmp case.0x404201.1
or eax, 2
jmp case.0x404201.1
or ah, 8
jmp case.0x404201.1