Function at 0x4010b0
Capabilities:
Accept command line arguments
Create thread
Query or enumerate registry value
Read file on windows
Resolve function by parsing pe exports
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov dword [esp + 0x20], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.comctl32.dll_InitCommonControls]
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea esi, [esp + 0x24]
lea edx, [esp + 0x40]
mov ecx, eax
push esi
call dbg.process_args
add esp, 4
mov ebx, dword [esp + 0x40]
cmp ebx, 2
jl 0x402989
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 4]
movzx eax, word [ecx]
or eax, 2
cmp eax, 0x2f
jne 0x401253
add ecx, 2
mov edx, 0x4052f3
call dbg.msi_strequal
test eax, eax
je 0x401253
mov edi, dword [esi + 8]
mov dword [esp + 0x78], 0
mov dword [esp + 0x50], 0
lea eax, [esp + 0x8c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
jne 0x401216
lea ecx, [esp + 0x78]
lea eax, [esp + 0x50]
push ecx
push 0
push eax
push 0
mov dword [esp + 0x14], edi
push edi
push dword [esp + 0xa0]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x401209
cmp dword [esp + 0x50], 1
jne 0x401209
mov esi, dword [esi]
mov ebx, 0xfffffffe
nop word [eax + eax]
cmp word [esi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x4011a0
mov edi, ebx
sar edi, 1
lea eax, [edi*2 + 2]
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
test eax, eax
je 0x401209
mov ecx, eax
inc edi
push ebx
push esi
mov esi, eax
push ecx
call sym._memcpy
add esp, 0xc
mov word [esi + ebx], 0x20
lea eax, [esi + edi*2]
lea ecx, [esp + 0x78]
push ecx
push eax
lea eax, [esp + 0x58]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0xa0]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x401225
push esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
push dword [esp + 0x8c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
lea edx, [esp + 0x40]
mov ecx, esi
lea eax, [esp + 0x24]
push eax
call dbg.process_args
add esp, 4
push esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
push dword [esp + 0x8c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [esp + 0x40]
cmp ebx, 3
jne 0x401420
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 4]
movzx eax, word [ecx]
mov ebx, 3
or eax, 2
cmp eax, 0x2f
jne 0x401429
add ecx, 2
mov edx, str.Embedding
call dbg.msi_strequal
test eax, eax
je 0x401429
mov esi, dword [esi + 8]
test byte [section..data], 8
je 0x4012c5
mov ecx, esi
call dbg.wine_dbgstr_wn
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4055ed
mov dword [esp + 8], str.custom_action_server
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x14
push 0xa
push 0
push esi
call dword [sym.imp.ucrtbase.dll_wcstol]
add esp, 0xc
mov dword [0x40804c], eax
test eax, eax
je 0x40275c
lea esi, [esp + 0x8c]
push 0x20
push eax
push str..pipemsica__x__d
push 0x18
push esi
call dbg.swprintf
sub esp, 8
movaps xmm0, xmmword [section..rdata]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4027e7
mov esi, eax
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea edi, [esp + 0x74]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
nop
push 0
push edi
push 0x10
lea eax, [esp + 0x84]
push eax
push esi
call ebx
test eax, eax
je 0x402898
cmp dword [esp + 0x74], 0x10
jne 0x402898
mov eax, dword [esp + 0x7c]
or eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x78]
or ecx, dword [esp + 0x80]
or ecx, eax
je 0x4028e4
push 0x10
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
movups xmm0, xmmword [esp + 0x78]
movups xmmword [eax], xmm0
push 0
push 0
push eax
push dbg._custom_action_thread@4
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
push 0
push edi
push 8
lea eax, [esp + 0x5c]
push eax
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4013d4
cmp dword [esp + 0x74], 8
je 0x401340
test byte [section..data], 2
je 0x40140c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_write_to_custom_action_server_pipe:__lu_n
mov dword [esp + 8], str.custom_action_server
mov dword [esp], 1
call sym._wine_dbg_log
add esp, 0x14
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x40121b
cmp ebx, 2
jl 0x402989
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 0
mov edi, 1
mov dword [esp + 0x4c], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
mov dword [esp + 8], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x2c], 0
jmp 0x4014e5
mov dword [esp + 0x3c], 1
inc edi
mov ebx, dword [esp + 0x40]
cmp edi, ebx
jge 0x402400
test byte [section..data], 8
mov esi, dword [esp + 0x24]
je 0x401524
mov ecx, dword [esi + edi*4]
call dbg.wine_dbgstr_wn
sub esp, 0x18
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], 3
call sym._wine_dbg_log
add esp, 0x18
mov ecx, dword [esi + edi*4]
movzx eax, word [ecx]
mov edx, eax
or edx, 2
cmp edx, 0x2f
jne 0x401556
add ecx, 2
mov edx, str.regserver
call dbg.msi_strequal
test eax, eax
je 0x401550
mov dword [esp + 0x70], 1
jmp 0x4014d8
mov ecx, dword [esi + edi*4]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x40157c
add ecx, 2
mov edx, str.unregserver
call dbg.msi_strequal
test eax, eax
jne 0x4014d0
mov ecx, dword [esi + edi*4]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x4015a2
add ecx, 2
mov edx, str.unregister
call dbg.msi_strequal
test eax, eax
jne 0x4014d0
mov ecx, dword [esi + edi*4]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x4015c8
add ecx, 2
mov edx, str.unreg
call dbg.msi_strequal
test eax, eax
jne 0x4014d0
mov ecx, dword [esi + edi*4]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x4015ea
add ecx, 2
mov edx, 0x40533e
call dbg.msi_strprefix
test eax, eax
jne 0x40160e
mov ecx, dword [esi + edi*4]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x4016db
add ecx, 2
mov edx, str.package
call dbg.msi_strprefix
test eax, eax
je 0x4016d5
mov dword [esp + 0x14], ebx
mov ebx, esi
mov esi, dword [esi + edi*4]
movzx eax, word [esi]
or eax, 2
cmp eax, 0x2f
jne 0x401638
lea ecx, [esi + 2]
mov edx, 0x40533e
call dbg.msi_strprefix
mov ecx, 2
test eax, eax
jne 0x40163d
mov ecx, 8
mov eax, dword [ebx + edi*4]
mov edx, 0xfffffffe
nop word cs:[eax + eax]
cmp word [eax + edx + 2], 0
lea edx, [edx + 2]
jne 0x401650
sar edx, 1
cmp edx, ecx
jle 0x401675
lea eax, [esi + ecx*2]
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], 1
jmp 0x4014d8
lea esi, [edi + 1]
cmp esi, dword [esp + 0x14]
jge 0x402992
test byte [section..data], 8
je 0x4016be
mov ecx, dword [ebx + edi*4 + 4]
call dbg.wine_dbgstr_wn
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x18
mov eax, dword [ebx + edi*4 + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], 1
mov edi, esi
jmp 0x4014d8
mov ecx, dword [esi + edi*4]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x4017e2
add ecx, 2
mov edx, str.aACTIONADMIN
call dbg.msi_strequal
test eax, eax
je 0x4017dc
lea eax, [edi + 1]
cmp eax, ebx
jge 0x402992
mov ebx, eax
test byte [section..data], 8
je 0x401748
mov ecx, dword [esi + edi*4 + 4]
call dbg.wine_dbgstr_wn
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x18
mov eax, dword [esi + edi*4 + 4]
mov dword [esp + 0xc], eax
push 0x1e
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
test eax, eax
je 0x40299c
movups xmm0, xmmword [0x405354]
movups xmmword [eax + 0xe], xmm0
movups xmm0, xmmword [0x40534a]
movups xmmword [eax + 4], xmm0
mov dword [eax], 0
lea edx, [esp + 0x20]
nop word cs:[eax + eax]
mov ecx, edx
mov edx, dword [edx]
test edx, edx
jne 0x401790
mov dword [ecx], eax
mov dword [esp + 0x4c], 1
test byte [section..data], 1
je 0x4017cd
sub esp, 0x10
mov dword [esp + 0xc], str.Administrative_installs_are_not_currently_supported_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 0
call sym._wine_dbg_log
add esp, 0x10
mov dword [esp + 0x1c], 1
mov edi, ebx
jmp 0x4014d8
mov ecx, dword [esi + edi*4]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x40194c
add ecx, 2
mov edx, 0x405399
call dbg.msi_strprefix
mov ecx, dword [esi + edi*4]
test eax, eax
je 0x401949
mov dword [esp + 4], esi
mov esi, 0xfffffffe
nop word cs:[eax + eax]
cmp word [ecx + esi + 2], 0
lea esi, [esi + 2]
jne 0x401820
mov dword [esp + 0x14], ebx
mov edx, esi
sar edx, 1
cmp edx, 3
jl 0x4018ce
mov ebx, 2
mov dword [esp + 0xc], edx
jmp 0x401855
or dword [esp + 0x10], 4
nop dword [eax]
inc ebx
cmp edx, ebx
je 0x4018ce
mov eax, dword [esp + 4]
mov eax, dword [eax + edi*4]
movzx eax, word [eax + ebx*2]
lea ecx, [eax - 0x41]
cmp ecx, 0x35
ja case.0x401868.66
jmp dword [ecx*4 + 0x405010]
or dword [esp + 0x10], 0x40
jmp 0x401850
or dword [esp + 0x10], 0x400
jmp 0x401850
or dword [esp + 0x10], 0x20
jmp 0x401850
or dword [esp + 0x10], 8
jmp 0x401850
or dword [esp + 0x10], 2
jmp 0x401850
or dword [esp + 0x10], 0x10
jmp 0x401850
or dword [esp + 0x10], 0x80
jmp 0x401850
or dword [esp + 0x10], 0x200
jmp 0x401850
or dword [esp + 0x10], 0x100
jmp 0x401850
push eax
push str.Unknown_option___c__in_Repair_mode_n
call dbg.report_error
mov edx, dword [esp + 0x14]
add esp, 8
jmp 0x401850
cmp esi, 4
mov eax, dword [esp + 0x10]
mov ecx, 0x2aa
cmove eax, ecx
mov dword [esp + 0x10], eax
lea esi, [edi + 1]
cmp esi, dword [esp + 0x14]
jge 0x402992
test byte [section..data], 8
je 0x40192e
mov eax, dword [esp + 4]
mov ecx, dword [eax + edi*4 + 4]
call dbg.wine_dbgstr_wn
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x18
mov eax, dword [esp + 4]
mov eax, dword [eax + edi*4 + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x6c], 1
mov edi, esi
jmp 0x4014d8
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x40196e
add ecx, 2
mov edx, 0x4053bf
call dbg.msi_strprefix
test eax, eax
jne 0x401992
mov ecx, dword [esi + edi*4]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x401a35
add ecx, 2
mov edx, str.uninstall
call dbg.msi_strequal
test eax, eax
je 0x401a2f
mov ecx, dword [esi + edi*4]
movzx eax, word [ecx]
or eax, 2
cmp eax, 0x2f
jne 0x4019b9
add ecx, 2
mov edx, 0x4053bf
call dbg.msi_strprefix
test eax, eax
je 0x4019b9
mov ecx, dword [esi + edi*4]
add ecx, 4
jmp 0x4019c1
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4019c7
cmp word [ecx], 0
jne 0x4019d8
lea eax, [edi + 1]
cmp eax, ebx
jge 0x402992
mov ecx, dword [esi + edi*4 + 4]
mov edi, eax
mov dword [esp + 0xc], ecx
test byte [section..data], 8
je 0x401a14
mov ecx, dword [esp + 0xc]
call dbg.wine_dbgstr_wn
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.PackageName___s_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x14
lea ecx, [esp + 0x20]
mov edx, str.REMOVEALL
call sym._StringListAppend
mov dword [esp + 0x1c], 1
jmp 0x4014d8
mov ecx, dword [esi + edi*4]
movzx eax, word [ecx]
movzx eax, ax
or eax, 2
cmp eax, 0x2f
jne 0x401ae4
add ecx, 2
mov edx, 0x4053f4
call dbg.msi_strprefix
mov ecx, dword [esi + edi*4]
test eax, eax
je 0x401ae4
mov dword [esp + 4], esi
mov esi, 0xfffffffe
nop word cs:[eax + eax]
cmp word [ecx + esi + 2], 0
lea esi, [esi + 2]
jne 0x401a70
mov dword [esp + 0x14], ebx
sar esi, 1
cmp esi, 3
jl 0x401b53
mov ebx, 2
jmp 0x401ab7
push eax
push str.Unknown_option___c__in_Advertise_mode_n
call dbg.report_error
add esp, 8
inc ebx
cmp esi, ebx
je 0x401b53
mov eax, dword [esp + 4]
mov eax, dword [eax + edi*4]
movzx eax, word [eax + ebx*2]
lea ecx, [eax - 0x4d]
rol ecx, 0x1d
cmp ecx, 6
jae 0x401aa0
mov edx, 0x33
bt edx, ecx
jae 0x401aa0
mov eax, dword [ecx*4 + 0x405984]
mov dword [esp + 0x38], eax
jmp 0x401aae
mov edx, str.umtgl
call dbg.msi_strequal
test eax, eax
je 0x401bbb
mov eax, ebx
mov ebx, esi
lea esi, [edi + 1]
cmp esi, eax
jge 0x402992
test byte [section..data], 8
je 0x401b41
mov ecx, dword [ebx + edi*4 + 4]
call dbg.wine_dbgstr_wn
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x18
mov eax, dword [ebx + edi*4 + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x38], 1
jmp 0x401bac
lea esi, [edi + 1]
cmp esi, dword [esp + 0x14]
jge 0x402992
test byte [section..data], 8
je 0x401ba0
mov eax, dword [esp + 4]
mov ecx, dword [eax + edi*4 + 4]
call dbg.wine_dbgstr_wn
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x18
mov eax, dword [esp + 4]
mov eax, dword [eax + edi*4 + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x34], 1
mov edi, esi
jmp 0x4014d8
mov dword [esp + 0x14], ebx
mov ecx, dword [esi + edi*4]
mov edx, 0x40541f
call dbg.msi_strequal
test eax, eax
je 0x401c3a
mov ebx, esi
lea esi, [edi + 1]
cmp esi, dword [esp + 0x14]
jge 0x402992
test byte [section..data], 8
je 0x401c1b
mov ecx, dword [ebx + edi*4 + 4]
call dbg.wine_dbgstr_wn
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x18
mov eax, dword [ebx + edi*4 + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
mov edi, esi
jmp 0x4014d8
mov edx, dword [esi + edi*4]
movzx eax, word [edx]
mov ecx, eax
or ecx, 2
cmp ecx, 0x2f
jne 0x401cc5
add edx, 2
mov ecx, edx
mov edx, 0x405421
call dbg.msi_strequal
test eax, eax
je 0x401cbf
mov ebx, esi
lea esi, [edi + 1]
cmp esi, dword [esp + 0x14]
jge 0x402992
test byte [section..data], 8
je 0x401ca8
mov ecx, dword [ebx + edi*4 + 4]
call dbg.wine_dbgstr_wn
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x18
mov edx, dword [ebx + edi*4 + 4]
lea ecx, [esp + 0x88]
call sym._StringListAppend
mov edi, esi
jmp 0x4014d8
mov edx, dword [esi + edi*4]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
mov ebx, dword [esp + 0x14]
jne 0x401d7e
add edx, 2
mov ecx, edx
mov edx, 0x405423
call dbg.msi_strequal
test eax, eax
je 0x401d78
lea eax, [edi + 1]
cmp eax, ebx
jge 0x402992
mov ebx, eax
test byte [section..data], 8
je 0x401d38
mov ecx, dword [esi + edi*4 + 4]
call dbg.wine_dbgstr_wn
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x18
mov eax, dword [esi + edi*4 + 4]
movzx ecx, word [eax]
lea edx, [ecx - 0x30]
cmp dx, 9
ja 0x401ed1
add eax, 2
xor esi, esi
add esi, esi
lea edx, [esi + esi*4]
lea esi, [ecx + edx]
add esi, 0xffffffd0
movzx ecx, word [eax]
mov edx, ecx
add edx, 0xffffffd0
add eax, 2
cmp dx, 0xa
jb 0x401d51
mov dword [esp + 0x30], esi
mov edi, ebx
jmp 0x4014d8
mov edx, dword [esi + edi*4]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x401ee3
add edx, 2
mov ecx, edx
mov edx, 0x405425
call dbg.msi_strprefix
mov edx, dword [esi + edi*4]
test eax, eax
je 0x401ee0
mov eax, 0xfffffffe
cmp word [edx + eax + 2], 0
lea eax, [eax + 2]
jne 0x401dac
sar eax, 1
cmp eax, 3
mov dword [esp + 4], esi
jl 0x401e61
mov ecx, 2
jmp 0x401dde
or dword [esp + 8], 0x400
inc ecx
cmp eax, ecx
je 0x401e61
movzx esi, word [edx + ecx*2]
add esi, 0xffffffdf
cmp esi, 0x56
ja case.0x401dea.34
jmp dword [esi*4 + 0x4050e8]
or dword [esp + 8], 0x100
jmp case.0x401dea.34
or dword [esp + 8], 8
jmp case.0x401dea.34
or dword [esp + 8], 0x1000
jmp case.0x401dea.34
or dword [esp + 8], 1
jmp case.0x401dea.34
or dword [esp + 8], 0x800
jmp case.0x401dea.34
or dword [esp + 8], 2
jmp case.0x401dea.34
or dword [esp + 8], 4
jmp case.0x401dea.34
or dword [esp + 8], 0x10
jmp case.0x401dea.34
or dword [esp + 8], 0x200
jmp case.0x401dea.34
or dword [esp + 8], 0x80
jmp case.0x401dea.34
or dword [esp + 0x28], 1
jmp case.0x401dea.34
or dword [esp + 0x28], 2
jmp case.0x401dea.34
mov dword [esp + 8], 0x7fdf
jmp case.0x401dea.34
lea esi, [edi + 1]
cmp esi, ebx
jge 0x402992
test byte [section..data], 8
je 0x401eac
mov eax, dword [esp + 4]
mov ecx, dword [eax + edi*4 + 4]
call dbg.wine_dbgstr_wn
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x18
mov eax, dword [esp + 4]
mov edi, dword [eax + edi*4 + 4]
push dword [esp + 0x28]
push edi
push dword [esp + 0x10]
call sym._MsiEnableLogW_12
test eax, eax
jne 0x4029cf
mov edi, esi
jmp 0x4014d8
mov dword [esp + 0x30], 0
mov edi, ebx
jmp 0x4014d8
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x401f07
add edx, 2
mov ecx, edx
mov edx, 0x40544c
call dbg.msi_strequal
test eax, eax
jne 0x401f25
mov edx, dword [esi + edi*4]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x401f8d
add edx, 2
mov ecx, edx
mov edx, str.update
call dbg.msi_strequal
test eax, eax
je 0x401f87
mov eax, ebx
mov ebx, esi
lea esi, [edi + 1]
cmp esi, eax
jge 0x402992
test byte [section..data], 8
je 0x401f70
mov ecx, dword [ebx + edi*4 + 4]
call dbg.wine_dbgstr_wn
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x18
mov eax, dword [ebx + edi*4 + 4]
mov dword [esp + 0x68], eax
mov dword [esp + 0x48], 1
mov edi, esi
jmp 0x4014d8
mov edx, dword [esi + edi*4]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x402001
add edx, 2
mov ecx, edx
mov edx, 0x405455
call dbg.msi_strprefix
mov edx, dword [esi + edi*4]
test eax, eax
je 0x401ffe
xor eax, eax
cmp word [edx + eax], 0
lea eax, [eax + 2]
jne 0x401fb0
cmp eax, 6
je 0x401fea
add edx, 4
mov ecx, edx
mov edx, 0x405457
call dbg.msi_strequal
test eax, eax
jne 0x401fea
mov ecx, dword [esi + edi*4]
add ecx, 4
mov edx, str.uiet
call dbg.msi_strequal
test eax, eax
je 0x402202
mov byte [0x408048], 1
mov dword [esp + 0x18], 2
jmp 0x4014d8
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x402040
add edx, 2
mov ecx, edx
mov edx, str.passive
call dbg.msi_strequal
test eax, eax
je 0x40203a
lea ecx, [esp + 0x20]
mov edx, str.REBOOTPROMPT_S_
call sym._StringListAppend
mov dword [esp + 0x18], 0x63
jmp 0x4014d8
mov edx, dword [esi + edi*4]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
mov dword [esp + 4], esi
jne 0x4020d6
add edx, 2
mov ecx, edx
mov edx, 0x4054ce
call dbg.msi_strequal
test eax, eax
je 0x4020cc
lea esi, [edi + 1]
cmp esi, ebx
jge 0x402992
test byte [section..data], 8
je 0x4020b1
mov eax, dword [esp + 4]
mov ecx, dword [eax + edi*4 + 4]
call dbg.wine_dbgstr_wn
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x18
mov eax, dword [esp + 4]
mov eax, dword [eax + edi*4 + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x64], 1
mov edi, esi
jmp 0x4014d8
mov eax, dword [esp + 4]
mov edx, dword [eax + edi*4]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x40216a
add edx, 2
mov ecx, edx
mov edx, 0x4054d0
call dbg.msi_strequal
test eax, eax
je 0x402160
lea esi, [edi + 1]
cmp esi, dword [esp + 0x14]
jge 0x402992
test byte [section..data], 8
je 0x402145
mov eax, dword [esp + 4]
mov ecx, dword [eax + edi*4 + 4]
call dbg.wine_dbgstr_wn
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.argvW__d____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x18
mov eax, dword [esp + 4]
mov eax, dword [eax + edi*4 + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x60], 1
mov edi, esi
jmp 0x4014d8
mov eax, dword [esp + 4]
mov edx, dword [eax + edi*4]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x402196
add edx, 2
mov ecx, edx
mov edx, str.help
call dbg.msi_strequal
test eax, eax
jne 0x4029f4
mov eax, dword [esp + 4]
mov edx, dword [eax + edi*4]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x4021c2
add edx, 2
mov ecx, edx
mov edx, 0x4054d7
call dbg.msi_strequal
test eax, eax
jne 0x4029f4
mov eax, dword [esp + 4]
mov edx, dword [eax + edi*4]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x402233
add edx, 2
mov ecx, edx
mov edx, 0x40541f
call dbg.msi_strequal
test eax, eax
je 0x402229
mov dword [esp + 0x44], 1
test byte [section..data], 1
je 0x4014d8
sub esp, 0x10
mov dword [esp + 0xc], str.Unknown_parameter__m_n
jmp 0x402271
mov ebx, esi
mov ecx, dword [esi + edi*4]
add ecx, 4
mov edx, 0x40545e
call dbg.msi_strequal
test eax, eax
je 0x4022c2
mov dword [esp + 0x18], 4
jmp 0x4014d8
mov eax, dword [esp + 4]
mov edx, dword [eax + edi*4]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x402297
add edx, 2
mov ecx, edx
mov edx, 0x4054ef
call dbg.msi_strequal
test eax, eax
je 0x40228d
mov dword [esp + 0x44], 1
test byte [section..data], 1
je 0x4014d8
sub esp, 0x10
mov dword [esp + 0xc], str.Unknown_parameter__D_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 0
call sym._wine_dbg_log
add esp, 0x10
jmp 0x4014d8
mov eax, dword [esp + 4]
mov edx, dword [eax + edi*4]
movzx eax, word [edx]
movzx eax, ax
or eax, 2
cmp eax, 0x2f
jne 0x4022ea
add edx, 2
mov ecx, edx
mov edx, 0x405507
call dbg.msi_strequal
test eax, eax
je 0x4022e3
mov dword [esp + 0x5c], 1
jmp 0x4014d8
mov ecx, dword [ebx + edi*4]
add ecx, 4
mov edx, 0x405399
call dbg.msi_strequal
test eax, eax
je 0x4022f8
mov dword [esp + 0x18], 0x85
jmp 0x4014d8
mov eax, dword [esp + 4]
mov edx, dword [eax + edi*4]
lea ecx, [esp + 0x20]
call sym._StringListAppend
jmp 0x4014d8
mov ecx, dword [ebx + edi*4]
add ecx, 4
mov edx, 0x405460
call dbg.msi_strequal
test eax, eax
je 0x402319
mov dword [esp + 0x18], 0x82
jmp 0x4014d8
mov ecx, dword [ebx + edi*4]
add ecx, 4
mov edx, 0x405463
call dbg.msi_strprefix
mov ebx, dword [ebx + edi*4]
test eax, eax
je 0x4023d6
cmp word [ebx + 6], 0
je 0x4023f3
add ebx, 6
mov dword [esp + 0x18], 3
jmp 0x40235f
or dword [esp + 0x18], 0x20
cmp word [ebx + 2], 0
lea ebx, [ebx + 2]
je 0x4014d8
mov ecx, ebx
mov edx, 0x405465
call dbg.msi_strprefix
mov ecx, dword [esp + 0x18]
mov esi, ecx
or esi, 0x80
test eax, eax
cmove esi, ecx
mov ecx, ebx
mov edx, 0x405467
call dbg.msi_strprefix
mov ecx, esi
or ecx, 0x40
test eax, eax
cmove ecx, esi
mov dword [esp + 0x18], ecx
mov ecx, ebx
mov edx, 0x405469
call dbg.msi_strprefix
test eax, eax
je 0x402351
test byte [section..data], 1
je 0x40234c
sub esp, 0x10
mov dword [esp + 0xc], 0x40546b
mov dword [esp + 8], str.WinMain
mov dword [esp], 0
call sym._wine_dbg_log
add esp, 0x10
jmp 0x40234c
add ebx, 4
mov ecx, ebx
call dbg.wine_dbgstr_wn
push eax
push str.Unknown_option___s__for_UI_level_n
call dbg.report_error
add esp, 8
jmp 0x4014d8
mov dword [esp + 0x18], 3
jmp 0x4014d8
mov ebx, dword [esp + 0x20]
push 0
push dword [esp + 0x1c]
call sym._MsiSetInternalUI_8
test ebx, ebx
je 0x402577
mov eax, 1
mov ecx, ebx
nop
mov edx, 0xfffffffe
nop word cs:[eax + eax]
cmp word [ecx + edx + 6], 0
lea edx, [edx + 2]
jne 0x402430
sar edx, 1
add eax, edx
add eax, 3
mov ecx, dword [ecx]
test ecx, ecx
jne 0x402420
add eax, eax
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov ecx, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
jmp 0x402484
mov dword [esp + 4], eax
mov ecx, dword [sym.imp.ucrtbase.dll_wcschr]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402534
lea edi, [ebx + 4]
push 0x3d
push edi
call ecx
add esp, 8
test eax, eax
je 0x402474
mov esi, eax
mov dword [esp + 0x14], ebx
mov ecx, eax
sub ecx, edi
mov ebx, dword [esp + 4]
lea eax, [ebx + 2]
mov word [ebx], 0x20
push ecx
push edi
mov edi, ecx
push eax
call sym._memcpy
add esp, 0xc
mov word [ebx + edi + 2], 0x3d
add esi, 2
push 0x20
push esi
call dword [sym.imp.ucrtbase.dll_wcschr]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x4024f0
add ebx, edi
add ebx, 2
mov word [ebx + 2], 0x22
add ebx, 4
mov eax, ebx
jmp 0x4024f6
lea eax, [ebx + edi]
add eax, 4
mov edi, 0xfffffffe
mov ebx, dword [esp + 0x14]
nop
cmp word [esi + edi + 2], 0
lea edi, [edi + 2]
jne 0x402500
push edi
push esi
push eax
mov esi, eax
call sym._memcpy
mov eax, esi
add esp, 0xc
add eax, edi
cmp dword [esp + 0x18], 0
je 0x402470
mov word [eax], 0x22
add eax, 2
jmp 0x402470
mov eax, dword [esp + 4]
mov word [eax], 0
test byte [section..data], 8
je 0x40257f
mov ecx, dword [esp + 8]
call dbg.wine_dbgstr_wn
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.properties_____s_n
mov dword [esp + 8], str.build_properties
mov dword [esp], 3
call sym._wine_dbg_log
add esp, 0x14
jmp 0x40257f
mov dword [esp + 8], 0
cmp dword [esp + 0x4c], 0
setne al
cmp dword [esp + 0x48], 0
setne cl
test al, cl
jne 0x4025fa
cmp dword [esp + 0x1c], 0
je 0x4025fa
xor eax, eax
mov esi, dword [esp + 0xc]
cmp word [esi + eax], 0
lea eax, [eax + 2]
jne 0x4025a0
cmp eax, 0x4e
jne 0x4025ca
lea eax, [esp + 0x8c]
push eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x4027a5
push dword [esp + 8]
push esi
call sym._MsiInstallProductW_8
cmp eax, 2
jne 0x40121b
mov ecx, esi
call dbg.get_path_with_extension
test eax, eax
je 0x402752
push dword [esp + 8]
push eax
mov edi, eax
call sym._MsiInstallProductW_8
jmp 0x402668
cmp dword [esp + 0x6c], 0
mov esi, dword [esp + 0xc]
je 0x40267b
xor eax, eax
nop word [eax + eax]
cmp word [esi + eax], 0
lea eax, [eax + 2]
jne 0x402610
cmp eax, 0x4e
jne 0x40263a
lea eax, [esp + 0x8c]
push eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x40282d
push dword [esp + 0x10]
push esi
call sym._MsiReinstallProductW_8
cmp eax, 2
jne 0x40121b
mov ecx, esi
call dbg.get_path_with_extension
test eax, eax
je 0x402752
push dword [esp + 0x10]
push eax
mov edi, eax
call sym._MsiReinstallProductW_8
mov esi, eax
push edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, esi
add esp, 4
jmp 0x40121b
cmp dword [esp + 0x34], 0
je 0x4027c5
mov esi, dword [esp + 0x20]
test esi, esi
je 0x40286b
mov eax, 1
mov ecx, esi
nop dword [eax]
mov edx, 0xfffffffe
nop word cs:[eax + eax]
cmp word [ecx + edx + 6], 0
lea edx, [edx + 2]
jne 0x4026b0
sar edx, 1
add eax, edx
inc eax
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4026a0
add eax, eax
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, eax
nop dword [eax + eax]
mov edx, 0xfffffffe
nop word cs:[eax + eax]
cmp word [esi + edx + 6], 0
lea edx, [edx + 2]
jne 0x4026f0
mov eax, edx
sar eax, 1
cmp eax, 2
mov dword [esp + 4], eax
jb 0x402730
lea ebx, [esi + 4]
mov edx, eax
mov edi, ecx
nop
movzx eax, word [ebx]
test ax, ax
je 0x402736
dec edx
add ebx, 2
mov word [edi], ax
add edi, 2
cmp edx, 1
ja 0x402710
jmp 0x402736
mov edi, ecx
test edx, edx
je 0x40273b
mov word [edi], 0
mov eax, dword [esp + 4]
lea ecx, [ecx + eax*2]
mov esi, dword [esi]
test esi, esi
je 0x4027b8
mov word [ecx], 0x3b
add ecx, 2
jmp 0x4026e0
mov eax, 2
jmp 0x40121b
mov eax, 1
test byte [section..data], 2
je 0x40121b
mov ecx, esi
call dbg.wine_dbgstr_wn
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Invalid_parameter__s_n
mov dword [esp + 8], str.custom_action_server
mov dword [esp], 1
call sym._wine_dbg_log
mov eax, 1
add esp, 0x14
jmp 0x40121b
push dword [esp + 8]
push 5
push 0
push esi
call sym._MsiConfigureProductExW_16
jmp 0x40121b
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
jmp 0x40287c
cmp dword [esp + 0x48], 0
je 0x4028f1
push dword [esp + 8]
push dword [esp + 0x50]
push esi
push dword [esp + 0x74]
call sym._MsiApplyPatchW_16
jmp 0x40121b
test byte [section..data], 2
je 0x40281f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_create_custom_action_server_pipe:__lu_n
mov dword [esp + 8], str.custom_action_server
mov dword [esp], 1
call sym._wine_dbg_log
add esp, 0x14
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x40121b
mov eax, 1
test byte [section..data], 1
je 0x40121b
sub esp, 0x10
mov dword [esp + 0xc], str.Product_code_treatment_not_implemented_yet_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 0
call sym._wine_dbg_log
mov eax, 1
add esp, 0x10
jmp 0x40121b
push 2
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov ecx, eax
mov edx, dword [esp + 0x30]
mov word [ecx], 0
movzx ecx, dx
push ecx
push eax
push dword [esp + 0x40]
push dword [esp + 0x18]
call sym._MsiAdvertiseProductW_16
jmp 0x40121b
test byte [section..data], 2
je 0x4028d0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_read_from_custom_action_server_pipe:__lu_n
mov dword [esp + 8], str.custom_action_server
mov dword [esp], 1
call sym._wine_dbg_log
add esp, 0x14
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x40121b
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x40121b
cmp dword [esp + 0x64], 0
je 0x402906
mov ecx, dword [esp + 0x2c]
call dbg.DoDllRegisterServer
jmp 0x40121b
cmp dword [esp + 0x60], 0
je 0x40291b
mov ecx, dword [esp + 0x2c]
call dbg.DoDllUnregisterServer
jmp 0x40121b
cmp dword [esp + 0x70], 0
je 0x40292c
call dbg.DoRegServer
jmp 0x40121b
cmp dword [esp + 0x3c], 0
je 0x40293d
call dbg.DoUnregServer
jmp 0x40121b
cmp dword [esp + 0x5c], 0
je 0x40294e
call dbg.DoService
jmp 0x40121b
cmp dword [esp + 0x44], 0
je 0x402992
test byte [section..data], 1
je 0x401216
sub esp, 0x10
mov dword [esp + 0xc], str.Unknown_function__ignoring_n
mov dword [esp + 8], str.WinMain
mov dword [esp], 0
call sym._wine_dbg_log
add esp, 0x10
jmp 0x401216
push 0
push 5
call sym._MsiSetInternalUI_8
mov ecx, 1
call dbg.ShowUsage
test byte [section..data], 2
je 0x4029c7
sub esp, 0x10
mov dword [esp + 0xc], str.Out_of_memory__n
mov dword [esp + 8], str.StringListAppend
mov dword [esp], 1
call sym._wine_dbg_log
add esp, 0x10
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, edi
call sym._wine_dbgstr_w
push dword [esp + 0x28]
push dword [esp + 0xc]
push eax
push 0x405427
call dbg.report_error
add esp, 0x10
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
xor ecx, ecx
call dbg.ShowUsage
nop dword [eax + eax]