Function at 0x401df0
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 dword [sym.imp.comctl32.dll_InitCommonControls]
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x38]
call sym._process_args
cmp dword [ebp - 0x38], 1
jg 0x402112
xor eax, eax
mov byte [ebp - 0x6c], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x54], 5
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], 0
mov word [ebp - 0x86], ax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._MsiSetInternalUI_8
mov eax, dword [ebp - 0x40]
sub esp, 8
mov edi, eax
test eax, eax
je 0x402b18
mov edx, eax
mov ebx, 1
cmp word [edx + 4], 0
lea ecx, [edx + 4]
je 0x402108
mov eax, ecx
add eax, 2
cmp word [eax], 0
jne 0x401f00
sub eax, ecx
sar eax, 1
add eax, 3
mov edx, dword [edx]
add ebx, eax
test edx, edx
jne 0x401ef0
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 dword [ebp - 0x98], eax
sub esp, 0xc
mov esi, eax
jmp 0x401f5a
mov edi, dword [edi]
test edi, edi
je 0x40202f
lea edx, [edi + 4]
mov dword [esp + 4], 0x3d
mov dword [esp], edx
mov dword [ebp - 0x54], edx
call dword [sym.imp.ucrtbase.dll_wcschr]
mov ebx, eax
test eax, eax
je 0x401f50
mov edx, dword [ebp - 0x54]
mov eax, 0x20
lea ecx, [esi + 2]
mov word [esi], ax
mov esi, ebx
sub esi, edx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp], ecx
mov dword [ebp - 0x54], ecx
call sym._memcpy
mov ecx, dword [ebp - 0x54]
mov eax, 0x3d
add esi, ecx
lea ecx, [ebx + 2]
mov word [esi], ax
mov dword [ebp - 0x54], ecx
mov dword [esp], ecx
mov dword [esp + 4], 0x20
call dword [sym.imp.ucrtbase.dll_wcschr]
mov ecx, dword [ebp - 0x54]
test eax, eax
mov dword [ebp - 0x58], eax
je 0x4020f0
mov eax, 0x22
lea edx, [esi + 4]
mov word [esi + 2], ax
cmp word [ebx + 2], 0
je 0x40201a
mov eax, ecx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x401fe8
sub eax, ecx
mov dword [esp], edx
mov dword [esp + 8], eax
mov ebx, eax
mov dword [esp + 4], ecx
mov dword [ebp - 0x54], edx
call sym._memcpy
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
add edx, ebx
mov esi, edx
test eax, eax
je 0x401f50
mov eax, 0x22
lea esi, [edx + 2]
mov word [edx], ax
mov edi, dword [edi]
test edi, edi
jne 0x401f5a
xor eax, eax
mov word [esi], ax
test byte [0x406010], 8
jne 0x40260d
cmp byte [ebp - 0x6c], 0
jne 0x402682
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x402720
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x402777
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x402ae4
mov edi, dword [ebp - 0x74]
test edi, edi
jne 0x4029a6
mov esi, dword [ebp - 0x84]
test esi, esi
jne 0x402bd4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
jne 0x402f43
mov ecx, dword [ebp - 0x50]
test ecx, ecx
jne 0x402c68
mov edx, dword [ebp - 0x94]
test edx, edx
jne 0x403320
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x403497
test byte [0x406010], 1
je 0x40299a
mov dword [esp + 0xc], str.Unknown_function__ignoring_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x7c]
jmp 0x402763
lea edx, [esi + 2]
cmp word [ebx + 2], 0
mov esi, edx
jne 0x401fe1
jmp 0x401f50
mov eax, 3
jmp 0x401f10
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
movzx edx, word [ecx]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4022f7
lea eax, [ecx + 2]
mov edx, 0x40723c
call sym._msi_strequal
test eax, eax
je 0x4022df
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], 0
mov edi, dword [eax + 8]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x407240
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x40299a
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], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 4], edi
mov dword [ebp - 0x50], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x402291
cmp dword [ebp - 0x28], 1
jne 0x402291
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
cmp word [ecx], 0
je 0x4036f2
mov eax, ecx
add eax, 2
cmp word [eax], 0
jne 0x4021d0
sub eax, ecx
mov edx, eax
lea eax, [eax + 2]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
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 0x402291
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x54], 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 - 0x54]
mov eax, 0x20
mov word [ebx + edx], ax
lea eax, [ebp - 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x4c]
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
mov eax, dword [ebp - 0x50]
call eax
sub esp, 0x18
test eax, eax
je 0x4022a5
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 dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40299a
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x38]
mov eax, ebx
call sym._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 dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x38]
cmp eax, 3
je 0x402aa6
cmp eax, 1
jle 0x401e3d
mov eax, dword [ebp - 0x34]
xor ebx, ebx
mov edi, 1
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x54], 5
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov word [ebp - 0x86], bx
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x58], 0
lea esi, [esi]
nop
lea ebx, [edi*4]
test byte [0x406010], 8
jne 0x402440
mov eax, dword [eax + ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
je 0x402410
mov edx, str.umtgl
call sym._msi_strequal
test eax, eax
je 0x4034a1
mov edx, dword [ebp - 0x38]
inc edi
cmp edx, edi
jle 0x403497
test byte [0x406010], 8
jne 0x4034e8
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x70], 1
mov eax, dword [eax + ebx + 4]
mov dword [ebp - 0x60], eax
jmp 0x40242f
add eax, 2
mov edx, str.regserver
call sym._msi_strequal
test eax, eax
je 0x4024b0
mov dword [ebp - 0x4c], 1
mov edx, dword [ebp - 0x38]
inc edi
cmp edi, edx
jge 0x4024ea
mov eax, dword [ebp - 0x34]
jmp 0x4023a8
mov esi, dword [eax + edi*4]
test esi, esi
je 0x402520
mov eax, esi
shr eax, 0x10
je 0x402500
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 0x40247c
mov eax, esi
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x34]
jmp 0x4023bc
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4023cb
add eax, 2
mov edx, str.unregserver
call sym._msi_strequal
test eax, eax
je 0x402530
mov edx, dword [ebp - 0x38]
inc edi
mov dword [ebp - 0x50], 1
cmp edi, edx
jl 0x402438
movzx eax, byte [ebp - 0x6c]
and al, byte [ebp - 0x5c]
xor eax, 1
and al, byte [ebp - 0x58]
mov byte [ebp - 0x6c], al
jmp 0x401ec6
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
jmp 0x40247c
mov eax, str._null_
jmp 0x40247c
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4023cb
add eax, 2
mov edx, str.unregister
call sym._msi_strequal
test eax, eax
jne 0x4024d7
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4023cb
add eax, 2
mov edx, str.unreg
call sym._msi_strequal
test eax, eax
jne 0x4024d7
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4023cb
add eax, 2
mov edx, 0x407307
call sym._msi_strprefix
test eax, eax
je 0x4028be
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + ebx]
movzx edx, word [esi]
mov ecx, edx
and ecx, 0xfffffffd
cmp cx, 0x2d
je 0x402894
mov ecx, esi
mov dword [ebp - 0x58], 8
test dx, dx
je 0x402a68
mov edx, ecx
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4025e0
sub edx, ecx
mov ecx, dword [ebp - 0x58]
sar edx, 1
cmp ecx, edx
jge 0x402a68
lea eax, [esi + ecx*2]
mov dword [ebp - 0x58], 1
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
jmp 0x40242f
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x402bca
shr eax, 0x10
je 0x402a30
mov esi, dword [ebp - 0x98]
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 0x402650
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
cmp byte [ebp - 0x6c], 0
je 0x40204b
mov eax, dword [ebp - 0x60]
cmp word [eax], 0
je 0x4026a5
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x402690
sub eax, dword [ebp - 0x60]
cmp eax, 0x4c
je 0x402d6b
mov eax, dword [ebp - 0x98]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym._MsiInstallProductW_8
mov dword [ebp - 0x5c], eax
sub esp, 8
cmp eax, 2
jne 0x402766
mov eax, dword [ebp - 0x60]
call sym._get_path_with_extension
mov ebx, eax
test eax, eax
je 0x40332d
mov eax, dword [ebp - 0x98]
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 - 0x5c], esi
sub esp, 0xc
jmp 0x402766
mov eax, dword [ebp - 0x60]
cmp word [eax], 0
je 0x402745
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402730
sub eax, dword [ebp - 0x60]
cmp eax, 0x4c
je 0x40296f
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym._MsiReinstallProductW_8
sub esp, 8
cmp eax, 2
je 0x4030e6
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x40309b
mov edx, esi
mov ebx, 1
lea esi, [esi]
cmp word [edx + 4], 0
lea ecx, [edx + 4]
je 0x402a94
mov eax, ecx
add eax, 2
cmp word [eax], 0
jne 0x4027a0
sub eax, ecx
sar eax, 1
inc eax
mov edx, dword [edx]
add ebx, eax
test edx, edx
jne 0x402790
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 dword [ebp - 0x50], eax
sub esp, 0xc
mov dword [ebp - 0x4c], eax
lea esi, [esi]
movzx ebx, word [esi + 4]
lea edx, [esi + 4]
test bx, bx
je 0x402a9e
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402800
sub eax, edx
mov ecx, eax
sar ecx, 1
mov edi, ecx
cmp eax, 2
jbe 0x402a4c
mov ecx, dword [ebp - 0x4c]
lea esi, [esi]
dec edi
add ecx, 2
add edx, 2
mov word [ecx - 2], bx
cmp edi, 1
je 0x402838
movzx ebx, word [edx]
test bx, bx
jne 0x402820
mov ebx, dword [ebp - 0x4c]
add eax, ebx
xor edi, edi
mov edx, eax
mov word [ecx], di
mov ebx, dword [esi]
test ebx, ebx
je 0x402860
mov ecx, 0x3b
lea eax, [edx + 2]
mov word [edx], cx
mov esi, dword [esi]
mov dword [ebp - 0x4c], eax
test esi, esi
jne 0x4027e8
mov edx, eax
xor eax, eax
mov word [edx], ax
movzx eax, word [ebp - 0x86]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x80]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym._MsiAdvertiseProductW_16
mov dword [ebp - 0x5c], eax
sub esp, 0x10
jmp 0x402766
mov edx, 0x407307
lea eax, [esi + 2]
call sym._msi_strprefix
test eax, eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + ebx]
movzx edx, word [ecx]
je 0x4025c7
mov dword [ebp - 0x58], 2
jmp 0x4025ce
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4023cb
add eax, 2
mov edx, str.package
call sym._msi_strprefix
test eax, eax
jne 0x4025ad
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4023cb
add eax, 2
mov edx, 0x407311
call sym._msi_strequal
test eax, eax
je 0x402e50
inc edi
cmp dword [ebp - 0x38], edi
jle 0x403497
test byte [0x406010], 8
jne 0x402ddf
mov eax, dword [ebp - 0x34]
mov edx, str.ACTIONADMIN
mov eax, dword [eax + ebx + 4]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x40]
call sym._StringListAppend
test byte [0x406010], 1
jne 0x402db6
mov dword [ebp - 0x8c], 1
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x58], 1
jmp 0x40242f
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
sub esp, 8
test eax, eax
jne 0x402745
test byte [0x406010], 1
jne 0x402b27
mov dword [ebp - 0x5c], 1
jmp 0x402766
mov eax, dword [ebp - 0x64]
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 - 0x64]
js 0x40310c
test eax, eax
je 0x402d57
shr eax, 0x10
je 0x4030cd
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 0x402a04
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 sym._printf
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x402766
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
jmp 0x402766
movzx eax, word [ebp - 0x98]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402650
add eax, dword [ebp - 0x4c]
mov edx, eax
test ecx, ecx
je 0x402844
mov ecx, dword [ebp - 0x4c]
jmp 0x40283d
mov edx, dword [ebp - 0x38]
inc edi
cmp edx, edi
jle 0x403497
test byte [0x406010], 8
jne 0x402b56
mov eax, dword [eax + ebx + 4]
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x60], eax
jmp 0x40242f
mov eax, 1
jmp 0x4027ae
mov edx, dword [ebp - 0x4c]
jmp 0x402844
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
movzx edx, word [ecx]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4022f7
lea eax, [ecx + 2]
mov edx, str.Embedding
call sym._msi_strequal
test eax, eax
je 0x402c60
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
call sym._custom_action_server
mov dword [ebp - 0x5c], eax
jmp 0x402766
mov eax, dword [ebp - 0x98]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call sym._MsiApplyPatchW_16
mov dword [ebp - 0x5c], eax
sub esp, 0x10
jmp 0x402766
mov dword [ebp - 0x98], 0
jmp 0x402041
mov dword [esp + 0xc], str.Product_code_treatment_not_implemented_yet_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x5c], eax
jmp 0x402766
mov esi, dword [eax + ebx + 4]
test esi, esi
je 0x402d61
mov eax, esi
shr eax, 0x10
je 0x403172
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 0x402b93
mov eax, esi
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
jmp 0x402a81
mov eax, str._null_
jmp 0x402650
mov eax, dword [ebp - 0x64]
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 - 0x64]
js 0x402cee
test eax, eax
je 0x403415
shr eax, 0x10
je 0x4032f6
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 0x402c32
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 sym._printf
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x402c55
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x5c], eax
jmp 0x402766
mov eax, dword [ebp - 0x38]
jmp 0x4022eb
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 0x4033db
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 0x40339e
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_DeleteService]
mov dword [ebp - 0x5c], 0
sub esp, 4
test eax, eax
je 0x403376
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 0x402766
test eax, eax
je 0x4036a8
shr eax, 0x10
je 0x403351
mov esi, dword [ebp - 0x64]
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 0x402d28
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 - 0x84]
mov dword [ebp - 0x74], eax
jmp 0x402c55
mov eax, str._null_
jmp 0x402a04
mov eax, str._null_
jmp 0x402b93
mov esi, dword [ebp - 0x60]
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
sub esp, 8
test eax, eax
jne 0x4026a5
mov eax, dword [ebp - 0x98]
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 - 0x5c], eax
sub esp, 0x10
jmp 0x402766
mov dword [esp + 0xc], str.Administrative_installs_are_not_currently_supported_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40294f
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + ebx + 4]
test esi, esi
je 0x40336c
mov eax, esi
shr eax, 0x10
je 0x403339
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 0x402e1f
mov eax, esi
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40292b
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4023cb
add eax, 2
mov edx, 0x407365
call sym._msi_strprefix
test eax, eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx]
je 0x402f87
cmp word [eax], 0
je 0x402f58
mov edx, eax
add edx, 2
cmp word [edx], 0
jne 0x402e8d
sub edx, eax
mov ecx, edx
sar ecx, 1
cmp edx, 4
jle 0x40330f
mov edx, 2
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x60], edi
mov edi, edx
mov edx, ebx
movzx ebx, word [eax + edi*2]
lea eax, [ebx - 0x41]
cmp ax, 0x35
ja case.0x402ec4.1
movzx eax, ax
jmp dword [eax*4 + 0x407644]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x68], edx
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_Repair_mode_n
mov dword [esp], eax
call sym._fprintf
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x68]
inc edi
cmp edi, ecx
jge 0x402f50
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + edx]
jmp 0x402eb4
or esi, 0x400
jmp 0x402ef8
or esi, 0x100
jmp 0x402ef8
or esi, 0x200
jmp 0x402ef8
or esi, 2
jmp 0x402ef8
or esi, 4
jmp 0x402ef8
or esi, 0x80
jmp 0x402ef8
or esi, 8
jmp 0x402ef8
or esi, 0x10
jmp 0x402ef8
or esi, 0x20
jmp 0x402ef8
or esi, 0x40
jmp 0x402ef8
call sym._DoRegServer
mov dword [ebp - 0x5c], eax
jmp 0x402766
mov dword [ebp - 0x78], esi
mov edi, dword [ebp - 0x60]
mov ebx, edx
mov edx, dword [ebp - 0x38]
inc edi
cmp edx, edi
jle 0x403497
test byte [0x406010], 8
jne 0x40318a
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x68], 1
mov eax, dword [eax + ebx + 4]
mov dword [ebp - 0x60], eax
jmp 0x40242f
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4023cb
add eax, 2
mov edx, 0x40738c
call sym._msi_strprefix
test eax, eax
je 0x4031fe
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x403009
add eax, 2
mov edx, 0x40738c
call sym._msi_strprefix
test eax, eax
je 0x403009
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx]
add eax, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
cmp word [eax], 0
je 0x403010
test byte [0x406010], 8
jne 0x403039
mov edx, str.REMOVEALL
lea eax, [ebp - 0x40]
call sym._StringListAppend
mov dword [ebp - 0x58], 1
mov edx, dword [ebp - 0x38]
jmp 0x40242f
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jne 0x402fdb
inc edi
cmp dword [ebp - 0x38], edi
jle 0x403497
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx + 4]
mov dword [ebp - 0x60], eax
test byte [0x406010], 8
je 0x402fed
mov edx, dword [ebp - 0x60]
mov eax, str._null_
test edx, edx
je 0x40306e
mov eax, dword [ebp - 0x60]
shr eax, 0x10
je 0x403444
mov esi, dword [ebp - 0x60]
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 0x40306e
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402fed
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 0x402860
movzx eax, word [ebp - 0x64]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402a04
mov eax, dword [ebp - 0x60]
call sym._get_path_with_extension
mov ebx, eax
test eax, eax
je 0x40332d
mov eax, dword [ebp - 0x78]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._MsiReinstallProductW_8
jmp 0x4026ed
test eax, eax
je 0x40343a
shr eax, 0x10
je 0x40341f
mov esi, dword [ebp - 0x64]
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 0x403146
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 - 0x74]
mov dword [ebp - 0x5c], eax
jmp 0x402766
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402b93
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + ebx + 4]
test esi, esi
je 0x4035c8
mov eax, esi
shr eax, 0x10
je 0x4035b0
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 0x4031ca
mov eax, esi
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x38]
jmp 0x402f71
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4023cb
add eax, 2
mov edx, str.uninstall
call sym._msi_strequal
test eax, eax
jne 0x402fac
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx]
movzx edx, word [eax]
and edx, 0xfffffffd
cmp dx, 0x2d
jne 0x4023cb
add eax, 2
mov edx, 0x4073c0
call sym._msi_strprefix
test eax, eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx]
je 0x4023cb
cmp word [eax], 0
je 0x40346c
mov edx, eax
add edx, 2
cmp word [edx], 0
jne 0x403266
sub edx, eax
mov esi, edx
sar esi, 1
mov dword [ebp - 0x60], esi
cmp edx, 4
jle 0x40346c
mov edx, 2
mov dword [ebp - 0x70], edi
mov edi, edx
mov edx, ebx
mov ebx, dword [ebp - 0x80]
jmp 0x4032b7
cmp si, 0x4d
je 0x40345d
cmp si, 0x55
jne 0x4032cd
mov ebx, 1
inc edi
cmp edi, dword [ebp - 0x60]
jge 0x403464
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + edx]
movzx esi, word [eax + edi*2]
cmp si, 0x6d
je 0x40345d
jbe 0x403292
cmp si, 0x75
je 0x4032a2
mov dword [ebp - 0x80], 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_Advertise_mode_n
mov dword [esp], eax
call sym._fprintf
mov edx, dword [ebp - 0x80]
jmp 0x4032a7
movzx eax, word [ebp - 0x64]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402c32
mov eax, 0x2aa
cmovne eax, dword [ebp - 0x78]
mov dword [ebp - 0x78], eax
jmp 0x402f58
call sym._DoService
mov dword [ebp - 0x5c], eax
jmp 0x402766
mov dword [ebp - 0x5c], 2
jmp 0x402766
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402e1f
movzx eax, word [ebp - 0x64]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov ebx, eax
jmp 0x402d28
mov eax, str._null_
jmp 0x402e1f
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 - 0x50]
mov dword [ebp - 0x5c], eax
jmp 0x402cd3
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x424
je 0x403403
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 - 0x50]
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [ebp - 0x5c], eax
jmp 0x402ce1
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 - 0x50]
mov dword [ebp - 0x5c], eax
jmp 0x402766
mov dword [ebp - 0x5c], 0
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x402ce1
mov eax, str._null_
jmp 0x402c32
movzx eax, word [ebp - 0x64]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov ebx, eax
jmp 0x403146
mov ebx, str._null_
jmp 0x403146
movzx eax, word [ebp - 0x60]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x40306e
xor ebx, ebx
jmp 0x4032a7
mov edi, dword [ebp - 0x70]
mov dword [ebp - 0x80], ebx
mov ebx, edx
mov edx, dword [ebp - 0x38]
inc edi
cmp edx, edi
jle 0x403497
test byte [0x406010], 8
jne 0x4036b2
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x70], 1
mov eax, dword [eax + ebx + 4]
mov dword [ebp - 0x60], eax
jmp 0x40242f
mov eax, 1
call sym._ShowUsage
mov eax, dword [ebp - 0x34]
mov edx, 0x4073ed
mov eax, dword [eax + ebx]
call sym._msi_strequal
test eax, eax
je 0x403565
inc edi
cmp dword [ebp - 0x38], edi
jle 0x403497
test byte [0x406010], 8
jne 0x403528
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x70], 1
mov eax, dword [eax + ebx + 4]
mov dword [ebp - 0x60], eax
jmp 0x40242f
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx + 4]
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x38]
jmp 0x4023f6
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx + 4]
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4034c8
mov eax, dword [ebp - 0x34]
mov edx, 0x4073ef
mov eax, dword [eax + ebx]
call sym._msi_option_equal
test eax, eax
je 0x40360c
inc edi
cmp dword [ebp - 0x38], edi
jle 0x403497
test byte [0x406010], 8
jne 0x4035d2
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + ebx + 4]
lea eax, [ebp - 0x3c]
call sym._StringListAppend
mov edx, dword [ebp - 0x38]
jmp 0x40242f
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4031ca
mov eax, str._null_
jmp 0x4031ca
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx + 4]
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x403590
mov eax, dword [ebp - 0x34]
mov edx, 0x4073f1
mov eax, dword [eax + ebx]
call sym._msi_option_equal
test eax, eax
jne 0x403744
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + ebx]
movzx ecx, word [edx]
and ecx, 0xfffffffd
cmp cx, 0x2d
jne 0x403700
lea eax, [edx + 2]
mov edx, 0x4073f3
call sym._msi_strprefix
test eax, eax
mov eax, dword [ebp - 0x34]
je 0x403700
mov esi, dword [eax + ebx]
mov edx, esi
jmp 0x40365c
add edx, 2
cmp word [edx], 0
jne 0x403659
sub edx, esi
mov dword [ebp - 0xa4], edi
mov ecx, 2
sar edx, 1
mov dword [ebp - 0xa0], edx
mov edx, dword [ebp - 0x98]
cmp ecx, dword [ebp - 0xa0]
jge 0x403c89
movzx edi, word [esi + ecx*2]
sub edi, 0x21
cmp di, 0x56
ja case.0x40369d.1
movzx edi, di
jmp dword [edi*4 + 0x40771c]
mov ebx, str._null_
jmp 0x402d28
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx + 4]
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x38]
jmp 0x403481
mov dword [ebp - 0x4c], 2
xor edx, edx
jmp 0x4021e3
mov eax, dword [eax + ebx]
mov edx, 0x40741d
call sym._msi_option_equal
test eax, eax
je 0x4037c8
inc edi
cmp dword [ebp - 0x38], edi
jle 0x403497
test byte [0x406010], 8
jne 0x40378b
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x5c], 1
mov eax, dword [eax + ebx + 4]
mov dword [ebp - 0x90], eax
jmp 0x40242f
inc edi
cmp dword [ebp - 0x38], edi
jle 0x403497
test byte [0x406010], 8
jne 0x403841
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + ebx + 4]
xor ebx, ebx
jmp 0x403770
imul ebx, ebx, 0xa
add edx, 2
lea ebx, [ebx + eax - 0x30]
movzx eax, word [edx]
lea ecx, [eax - 0x30]
cmp cx, 9
jbe 0x403766
mov word [ebp - 0x86], bx
mov edx, dword [ebp - 0x38]
jmp 0x40242f
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx + 4]
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x403728
mov eax, dword [ebp - 0x34]
mov edx, str.update
mov eax, dword [eax + ebx]
call sym._msi_option_equal
test eax, eax
jne 0x403715
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + ebx]
movzx ecx, word [edx]
and ecx, 0xfffffffd
cmp cx, 0x2d
jne 0x40387e
lea eax, [edx + 2]
mov edx, 0x407426
call sym._msi_strprefix
test eax, eax
mov eax, dword [ebp - 0x34]
je 0x40387e
mov edx, dword [eax + ebx]
mov eax, edx
jmp 0x403814
add eax, 2
cmp word [eax], 0
jne 0x403811
sub eax, edx
cmp eax, 4
je 0x403832
lea eax, [edx + 4]
mov edx, 0x407428
call sym._msi_strequal
test eax, eax
je 0x4038ab
mov dword [ebp - 0x54], 2
mov edx, dword [ebp - 0x38]
jmp 0x40242f
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx + 4]
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40375b
mov eax, dword [eax + ebx]
mov edx, str.passive
call sym._msi_option_equal
test eax, eax
je 0x4038f0
mov edx, str.REBOOTPROMPT_S_
lea eax, [ebp - 0x40]
call sym._StringListAppend
mov dword [ebp - 0x54], 0x63
mov edx, dword [ebp - 0x38]
jmp 0x40242f
mov eax, dword [ebp - 0x34]
mov edx, str.uiet
mov eax, dword [eax + ebx]
add eax, 4
call sym._msi_strequal
test eax, eax
jne 0x403832
mov eax, dword [ebp - 0x34]
mov edx, 0x40742f
mov eax, dword [eax + ebx]
add eax, 4
call sym._msi_strequal
test eax, eax
je 0x403a43
mov dword [ebp - 0x54], 4
mov edx, dword [ebp - 0x38]
jmp 0x40242f
mov eax, dword [ebp - 0x34]
mov edx, 0x4074a2
mov eax, dword [eax + ebx]
call sym._msi_option_equal
test eax, eax
je 0x403968
inc edi
cmp dword [ebp - 0x38], edi
jle 0x403497
test byte [0x406010], 8
je 0x40394f
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx + 4]
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x74], 1
mov eax, dword [eax + ebx + 4]
mov dword [ebp - 0x64], eax
jmp 0x40242f
mov eax, dword [ebp - 0x34]
mov edx, 0x4074a4
mov eax, dword [eax + ebx]
call sym._msi_option_equal
test eax, eax
je 0x4039e3
inc edi
cmp dword [ebp - 0x38], edi
jle 0x403497
test byte [0x406010], 8
je 0x4039c7
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx + 4]
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x84], 1
mov eax, dword [eax + ebx + 4]
mov dword [ebp - 0x64], eax
jmp 0x40242f
mov eax, dword [ebp - 0x34]
mov edx, str.help
mov eax, dword [eax + ebx]
call sym._msi_option_equal
test eax, eax
jne 0x403ae0
mov eax, dword [ebp - 0x34]
mov edx, 0x4074ab
mov eax, dword [eax + ebx]
call sym._msi_option_equal
test eax, eax
jne 0x403ae0
mov eax, dword [ebp - 0x34]
mov edx, 0x4073ed
mov eax, dword [eax + ebx]
call sym._msi_option_equal
test eax, eax
je 0x403ab5
test byte [0x406010], 1
jne 0x403a69
mov dword [ebp - 0x7c], 1
mov edx, dword [ebp - 0x38]
jmp 0x40242f
mov eax, dword [ebp - 0x34]
mov edx, 0x407365
mov eax, dword [eax + ebx]
add eax, 4
call sym._msi_strequal
test eax, eax
je 0x403a8f
mov dword [ebp - 0x54], 0x85
mov edx, dword [ebp - 0x38]
jmp 0x40242f
mov dword [esp + 0xc], str.Unknown_parameter__m_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x403a34
mov eax, dword [ebp - 0x34]
mov edx, 0x407431
mov eax, dword [eax + ebx]
add eax, 4
call sym._msi_strequal
test eax, eax
je 0x403ae7
mov dword [ebp - 0x54], 0x82
mov edx, dword [ebp - 0x38]
jmp 0x40242f
mov eax, dword [ebp - 0x34]
mov edx, 0x4074c3
mov eax, dword [eax + ebx]
call sym._msi_option_equal
test eax, eax
je 0x403b37
test byte [0x406010], 1
je 0x403a34
mov dword [esp + 0xc], str.Unknown_parameter__D_n
jmp 0x403a71
xor eax, eax
call sym._ShowUsage
mov eax, dword [ebp - 0x34]
mov edx, 0x407434
mov eax, dword [eax + ebx]
add eax, 4
call sym._msi_strprefix
test eax, eax
mov eax, dword [ebp - 0x34]
jne 0x403b61
mov eax, dword [eax + ebx]
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
mov edx, dword [ebp - 0x38]
jmp 0x40242f
mov eax, dword [ebp - 0x34]
mov edx, 0x4074db
mov eax, dword [eax + ebx]
call sym._msi_option_equal
test eax, eax
je 0x403beb
mov dword [ebp - 0x94], 1
mov edx, dword [ebp - 0x38]
jmp 0x40242f
mov ebx, dword [eax + ebx]
mov esi, 3
add ebx, 6
cmp word [ebx], 0
je 0x403be0
mov edx, 0x407436
mov eax, ebx
call sym._msi_strprefix
test eax, eax
je 0x403b88
or esi, 0x80
mov edx, 0x407438
mov eax, ebx
call sym._msi_strprefix
test eax, eax
je 0x403b9b
or esi, 0x40
mov edx, 0x40743a
mov eax, ebx
call sym._msi_strprefix
test eax, eax
je 0x403bdb
test byte [0x406010], 1
je 0x403bd8
mov dword [esp + 0xc], 0x40743c
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x406010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
or esi, 0x20
add ebx, 2
jmp 0x403b6c
mov dword [ebp - 0x54], esi
mov edx, dword [ebp - 0x38]
jmp 0x40242f
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + ebx]
lea eax, [ebp - 0x40]
call sym._StringListAppend
mov edx, dword [ebp - 0x38]
jmp 0x40242f
or edx, 4
inc ecx
jmp 0x40367d
or dh, 0x10
inc ecx
jmp 0x40367d
or edx, 8
inc ecx
jmp 0x40367d
or dh, 2
inc ecx
jmp 0x40367d
or dh, 4
inc ecx
jmp 0x40367d
or dl, 0x80
inc ecx
jmp 0x40367d
or edx, 1
inc ecx
jmp 0x40367d
or edx, 0x10
inc ecx
jmp 0x40367d
or edx, 2
inc ecx
jmp 0x40367d
or dh, 8
inc ecx
jmp 0x40367d
or dh, 1
inc ecx
jmp 0x40367d
or dword [ebp - 0x9c], 1
inc ecx
jmp 0x40367d
mov edx, 0x7fdf
inc ecx
jmp 0x40367d
or dword [ebp - 0x9c], 2
inc ecx
jmp 0x40367d
mov edi, dword [ebp - 0xa4]
mov dword [ebp - 0x98], edx
inc edi
cmp dword [ebp - 0x38], edi
jle 0x403497
test byte [0x406010], 8
jne 0x403d1e
mov ebx, dword [eax + ebx + 4]
mov eax, dword [ebp - 0x9c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x98]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._MsiEnableLogW_12
sub esp, 0xc
test eax, eax
je 0x403bf9
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 - 0x9c]
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 - 0x98]
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 [eax + ebx + 4]
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], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x34]
jmp 0x403ca8