Function at 0x140001120
Capabilities:
Accept command line arguments
Create thread
Query or enumerate registry value
Read file on windows
Terminate process
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
mov qword [rsp + 0x78], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0x80], 0
call qword [sym.imp.comctl32.dll_InitCommonControls]
call qword [sym.imp.kernel32.dll_GetCommandLineW]
lea rdx, [rsp + 0x58]
lea r8, [rsp + 0x80]
mov rcx, rax
call sym.process_args
mov r14d, dword [rsp + 0x58]
cmp r14d, 2
jl 0x140002ba0
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rdi + 8]
movzx eax, word [rcx]
or eax, 2
cmp eax, 0x2f
jne 0x140001320
add rcx, 2
lea rdx, [0x1400052fb]
call sym.msi_strequal
test eax, eax
je 0x140001320
mov rsi, qword [rdi + 0x10]
mov dword [rsp + 0xc8], 0
mov dword [rsp + 0x88], 0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
lea r8, [rsp + 0xe0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400012d6
mov rcx, qword [rsp + 0xe0]
lea r14, [rsp + 0xc8]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400012c8
cmp dword [rsp + 0x88], 1
jne 0x1400012c8
mov rbx, qword [rdi]
xor r15d, r15d
movabs rax, 0x100000000
mov rcx, rbx
cmp word [rcx], 0
mov r12, r15
lea rcx, [rcx + 2]
lea r15, [r15 + rax]
jne 0x140001250
sar r15, 0x20
lea rcx, [r15 + r15]
call qword [sym.imp.ucrtbase.dll_malloc]
test rax, rax
je 0x1400012c8
mov rdi, rax
sar r12, 0x20
lea r8, [r12 + r12]
mov rcx, rax
mov rdx, rbx
call sym.memcpy
mov word [rdi + r12*2], 0x20
lea rax, [rdi + r15*2]
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x1400012ef
mov rcx, rdi
call qword [sym.imp.ucrtbase.dll_free]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x58]
lea r8, [rsp + 0x80]
mov rcx, rdi
call sym.process_args
mov rcx, rdi
call qword [sym.imp.ucrtbase.dll_free]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov r14d, dword [rsp + 0x58]
cmp r14d, 3
jne 0x14000153f
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rsi + 8]
movzx eax, word [rcx]
mov r14d, 3
or eax, 2
cmp eax, 0x2f
jne 0x140001549
add rcx, 2
lea rdx, str.Embedding
call sym.msi_strequal
test eax, eax
je 0x140001549
mov rsi, qword [rsi + 0x10]
test byte [section..data], 8
je 0x140001395
mov rcx, rsi
call sym.wine_dbgstr_wn
mov qword [rsp + 0x20], rax
lea r8, str.custom_action_server
lea r9, [0x1400055e0]
mov ecx, 3
call sym.wine_dbg_log
mov rcx, rsi
xor edx, edx
mov r8d, 0xa
call qword [sym.imp.ucrtbase.dll_wcstol]
mov dword [0x14000704c], eax
test eax, eax
je 0x1400029a7
mov qword [rsp + 0x20], 0x40
lea r8, str..pipemsica__x__d
lea rsi, [rsp + 0xe0]
mov edx, 0x18
mov rcx, rsi
mov r9d, eax
call sym.swprintf
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.kernel32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140002a20
mov rsi, rax
xor ecx, ecx
xor edx, edx
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rdi, [rsp + 0xc8]
lea rbx, [rsp + 0xa4]
mov r12, qword [sym.imp.kernel32.dll_ReadFile]
lea r14, [sym.custom_action_thread]
mov rbp, qword [sym.imp.kernel32.dll_CreateThread]
lea r15, [rsp + 0x88]
mov r13, qword [sym.imp.kernel32.dll_WriteFile]
nop word cs:[rax + rax]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8d, 0x10
mov r9, rbx
call r12
test eax, eax
je 0x140002ab9
cmp dword [rsp + 0xa4], 0x10
jne 0x140002ab9
mov rax, qword [rsp + 0xc8]
or rax, qword [rsp + 0xd0]
je 0x140002b01
mov ecx, 0x10
call qword [sym.imp.ucrtbase.dll_malloc]
movups xmm0, xmmword [rsp + 0xc8]
movups xmmword [rax], xmm0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, r14
mov r9, rax
call rbp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r15
mov r8d, 8
mov r9, rbx
call r13
test eax, eax
je 0x14000150f
cmp dword [rsp + 0xa4], 8
je 0x140001460
test byte [section..data], 2
je 0x140002aea
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
mov dword [rsp + 0x20], eax
lea r8, str.custom_action_server
lea r9, str.Failed_to_write_to_custom_action_server_pipe:__lu_n
jmp 0x140002ae0
cmp r14d, 2
jl 0x140002ba0
mov dword [rsp + 0x48], 5
xor eax, eax
mov qword [rsp + 0x70], rax
mov r15d, 1
lea r12, str.regserver
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x9c], 0
mov dword [rsp + 0x54], 0
mov dword [rsp + 0xa0], 0
mov dword [rsp + 0x98], 0
mov dword [rsp + 0x94], 0
mov ebp, 0
mov ebx, 0
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x5c], 0
xor edi, edi
mov dword [rsp + 0x4c], 0
xor eax, eax
mov qword [rsp + 0xb0], rax
xor eax, eax
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x50], 0
xor eax, eax
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x60], 0
xor eax, eax
mov qword [rsp + 0xa8], rax
jmp 0x140001626
mov ebx, 1
inc r15d
mov r14d, dword [rsp + 0x58]
cmp r15d, r14d
jge 0x1400025bc
test byte [section..data], 8
mov r13, qword [rsp + 0x80]
movsxd rsi, r15d
je 0x140001665
mov rcx, qword [r13 + rsi*8]
call sym.wine_dbgstr_wn
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov ecx, 3
lea r8, str.WinMain
lea r9, str.argvW__d____s_n
call sym.wine_dbg_log
mov rcx, qword [r13 + rsi*8]
movzx eax, word [rcx]
mov edx, eax
or edx, 2
cmp edx, 0x2f
jne 0x140001698
add rcx, 2
mov rdx, r12
call sym.msi_strequal
test eax, eax
je 0x140001690
mov ebp, 1
jmp 0x140001615
mov rcx, qword [r13 + rsi*8]
movzx eax, word [rcx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x1400016c3
add rcx, 2
lea rdx, str.unregserver
call sym.msi_strequal
test eax, eax
jne 0x140001610
mov rcx, qword [r13 + rsi*8]
movzx eax, word [rcx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x1400016ee
add rcx, 2
lea rdx, str.unregister
call sym.msi_strequal
test eax, eax
jne 0x140001610
mov rcx, qword [r13 + rsi*8]
movzx eax, word [rcx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x140001719
add rcx, 2
lea rdx, str.unreg
call sym.msi_strequal
test eax, eax
jne 0x140001610
mov rcx, qword [r13 + rsi*8]
movzx eax, word [rcx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x140001740
add rcx, 2
lea rdx, [0x140005346]
call sym.msi_strprefix
test eax, eax
jne 0x140001767
mov rcx, qword [r13 + rsi*8]
movzx eax, word [rcx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x140001818
add rcx, 2
lea rdx, str.package
call sym.msi_strprefix
test eax, eax
je 0x140001810
mov rdi, qword [r13 + rsi*8]
movzx eax, word [rdi]
or eax, 2
cmp eax, 0x2f
jne 0x140001790
lea rcx, [rdi + 2]
lea rdx, [0x140005346]
call sym.msi_strprefix
mov ecx, 2
test eax, eax
jne 0x140001795
mov ecx, 8
mov rdx, qword [r13 + rsi*8]
mov eax, 0xffffffff
nop
inc eax
cmp word [rdx], 0
lea rdx, [rdx + 2]
jne 0x1400017a0
cmp ecx, eax
jge 0x1400017b8
mov eax, ecx
lea rdi, [rdi + rax*2]
jmp 0x140001801
inc r15d
cmp r15d, r14d
jge 0x140002bac
test byte [section..data], 8
movsxd rsi, r15d
je 0x1400017fc
mov rcx, qword [r13 + rsi*8]
call sym.wine_dbgstr_wn
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov ecx, 3
lea r8, str.WinMain
lea r9, str.argvW__d____s_n
call sym.wine_dbg_log
mov rdi, qword [r13 + rsi*8]
mov eax, 1
mov qword [rsp + 0x70], rax
jmp 0x140001615
mov rcx, qword [r13 + rsi*8]
movzx eax, word [rcx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x1400018f8
add rcx, 2
lea rdx, str.aACTIONADMIN
call sym.msi_strequal
test eax, eax
je 0x1400018f0
inc r15d
cmp r15d, r14d
jge 0x140002bac
test byte [section..data], 8
movsxd rsi, r15d
je 0x140001883
mov rcx, qword [r13 + rsi*8]
call sym.wine_dbgstr_wn
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov ecx, 3
lea r8, str.WinMain
lea r9, str.argvW__d____s_n
call sym.wine_dbg_log
mov rdi, qword [r13 + rsi*8]
mov ecx, 0x22
call qword [sym.imp.ucrtbase.dll_malloc]
test rax, rax
je 0x140002bb6
movups xmm0, xmmword [0x14000535c]
movups xmmword [rax + 0x12], xmm0
movups xmm0, xmmword [0x140005352]
movups xmmword [rax + 8], xmm0
mov qword [rax], 0
lea rdx, [rsp + 0x78]
nop
mov rcx, rdx
mov rdx, qword [rdx]
test rdx, rdx
jne 0x1400018c0
mov qword [rcx], rax
test byte [section..data], 1
jne 0x1400019f4
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x6c], 1
jmp 0x140001801
mov rcx, qword [r13 + rsi*8]
movzx eax, word [rcx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x140001a21
add rcx, 2
lea rdx, [0x1400053a1]
call sym.msi_strprefix
mov rcx, qword [r13 + rsi*8]
test eax, eax
je 0x140001a1e
mov edi, 0xffffffff
xor eax, eax
nop dword [rax + rax]
inc edi
cmp word [rcx], 0
mov edx, eax
lea rcx, [rcx + 2]
lea eax, [rdx + 1]
jne 0x140001930
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x64], ebp
cmp edi, 3
jl 0x140001b01
mov ebx, edx
mov ebp, 2
mov ecx, dword [rsp + 0x4c]
jmp 0x14000197c
or ecx, 4
nop word cs:[rax + rax]
inc rbp
cmp rbx, rbp
je 0x140001b05
mov rax, qword [r13 + rsi*8]
movzx edx, word [rax + rbp*2]
lea eax, [rdx - 0x41]
cmp eax, 0x35
ja case.0x14000199b.66
lea r8, section..rdata
movsxd rax, dword [r8 + rax*4]
add rax, r8
jmp rax
or ecx, 0x40
jmp 0x140001970
or ecx, 0x400
jmp 0x140001970
or ecx, 0x20
jmp 0x140001970
or ecx, 8
jmp 0x140001970
or ecx, 2
jmp 0x140001970
or ecx, 0x10
jmp 0x140001970
or ecx, 0x80
jmp 0x140001970
or ecx, 0x200
jmp 0x140001970
or ecx, 0x100
jmp 0x140001970
mov r12d, ecx
lea rcx, str.Unknown_option___c__in_Repair_mode_n
call sym.report_error
mov ecx, r12d
lea r12, str.regserver
jmp 0x140001970
mov dword [rsp + 0x60], 1
xor ecx, ecx
lea r8, str.WinMain
lea r9, str.Administrative_installs_are_not_currently_supported_n
call sym.wine_dbg_log
mov dword [rsp + 0x6c], 1
jmp 0x140001801
movzx eax, word [rcx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x140001a48
add rcx, 2
lea rdx, [0x1400053c7]
call sym.msi_strprefix
test eax, eax
jne 0x140001a6f
mov rcx, qword [r13 + rsi*8]
movzx eax, word [rcx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x140001b7d
add rcx, 2
lea rdx, str.uninstall
call sym.msi_strequal
test eax, eax
je 0x140001b75
mov rcx, qword [r13 + rsi*8]
movzx eax, word [rcx]
or eax, 2
cmp eax, 0x2f
jne 0x140001a9e
add rcx, 2
lea rdx, [0x1400053c7]
call sym.msi_strprefix
test eax, eax
je 0x140001a9e
mov rdi, qword [r13 + rsi*8]
add rdi, 4
jmp 0x140001aa3
test rdi, rdi
je 0x140001aa9
cmp word [rdi], 0
jne 0x140001abd
inc r15d
cmp r15d, r14d
jge 0x140002bac
movsxd rax, r15d
mov rdi, qword [r13 + rax*8]
test byte [section..data], 8
je 0x140001aeb
mov rcx, rdi
call sym.wine_dbgstr_wn
mov qword [rsp + 0x20], rax
mov ecx, 3
lea r8, str.WinMain
lea r9, str.PackageName___s_n
call sym.wine_dbg_log
lea rcx, [rsp + 0x78]
lea rdx, str.REMOVEALL
call sym.StringListAppend
jmp 0x140001801
mov ecx, dword [rsp + 0x4c]
cmp edi, 2
mov eax, 0x2aa
cmove ecx, eax
mov dword [rsp + 0x4c], ecx
inc r15d
cmp r15d, r14d
jge 0x140002bac
test byte [section..data], 8
movsxd rsi, r15d
mov ebp, dword [rsp + 0x64]
mov ebx, dword [rsp + 0x68]
je 0x140001b60
mov rcx, qword [r13 + rsi*8]
call sym.wine_dbgstr_wn
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov ecx, 3
lea r8, str.WinMain
lea r9, str.argvW__d____s_n
call sym.wine_dbg_log
mov rdi, qword [r13 + rsi*8]
mov dword [rsp + 0x9c], 1
jmp 0x140001615
mov rcx, qword [r13 + rsi*8]
movzx eax, word [rcx]
movzx eax, ax
or eax, 2
cmp eax, 0x2f
jne 0x140001c2d
add rcx, 2
lea rdx, [0x1400053fc]
call sym.msi_strprefix
mov rcx, qword [r13 + rsi*8]
test eax, eax
je 0x140001c2d
mov eax, 0xffffffff
xor edx, edx
inc eax
cmp word [rcx], 0
mov r8d, edx
lea rcx, [rcx + 2]
lea edx, [r8 + 1]
jne 0x140001bb0
mov r12d, ebx
cmp eax, 3
jl 0x140001ca4
mov edi, r8d
mov ebx, 2
jmp 0x140001bf8
lea rcx, str.Unknown_option___c__in_Advertise_mode_n
call sym.report_error
inc rbx
cmp rdi, rbx
je 0x140001ca4
mov rax, qword [r13 + rsi*8]
movzx edx, word [rax + rbx*2]
lea eax, [rdx - 0x4d]
rol eax, 0x1d
cmp eax, 6
jae 0x140001be0
mov ecx, 0x33
bt ecx, eax
jae 0x140001be0
mov eax, eax
lea rcx, [0x1400052c0]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0xb0], rax
jmp 0x140001bec
lea rdx, str.umtgl
call sym.msi_strequal
test eax, eax
je 0x140001d04
inc r15d
cmp r15d, r14d
jge 0x140002bac
test byte [section..data], 8
movsxd rsi, r15d
je 0x140001c85
mov rcx, qword [r13 + rsi*8]
call sym.wine_dbgstr_wn
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov ecx, 3
lea r8, str.WinMain
lea r9, str.argvW__d____s_n
call sym.wine_dbg_log
mov rdi, qword [r13 + rsi*8]
mov dword [rsp + 0x54], 1
mov eax, 1
mov qword [rsp + 0xb0], rax
jmp 0x140001615
inc r15d
cmp r15d, r14d
jge 0x140002bac
test byte [section..data], 8
movsxd rsi, r15d
mov ebx, r12d
je 0x140001ceb
mov rcx, qword [r13 + rsi*8]
call sym.wine_dbgstr_wn
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov ecx, 3
lea r8, str.WinMain
lea r9, str.argvW__d____s_n
call sym.wine_dbg_log
mov rdi, qword [r13 + rsi*8]
mov dword [rsp + 0x54], 1
lea r12, str.regserver
jmp 0x140001615
mov rcx, qword [r13 + rsi*8]
lea rdx, [0x140005427]
call sym.msi_strequal
test eax, eax
je 0x140001d79
inc r15d
cmp r15d, r14d
jge 0x140002bac
test byte [section..data], 8
movsxd rsi, r15d
je 0x140001d5d
mov rcx, qword [r13 + rsi*8]
call sym.wine_dbgstr_wn
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov ecx, 3
lea r8, str.WinMain
lea r9, str.argvW__d____s_n
call sym.wine_dbg_log
mov rdi, qword [r13 + rsi*8]
mov dword [rsp + 0x54], 1
xor eax, eax
mov qword [rsp + 0xb0], rax
jmp 0x140001615
mov rdx, qword [r13 + rsi*8]
movzx eax, word [rdx]
mov ecx, eax
or ecx, 2
cmp ecx, 0x2f
jne 0x140001e05
add rdx, 2
mov rcx, rdx
lea rdx, [0x140005429]
call sym.msi_strequal
test eax, eax
je 0x140001dfd
inc r15d
cmp r15d, r14d
jge 0x140002bac
test byte [section..data], 8
movsxd rsi, r15d
je 0x140001de6
mov rcx, qword [r13 + rsi*8]
call sym.wine_dbgstr_wn
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov ecx, 3
lea r8, str.WinMain
lea r9, str.argvW__d____s_n
call sym.wine_dbg_log
mov rdx, qword [r13 + rsi*8]
lea rcx, [rsp + 0xd8]
call sym.StringListAppend
jmp 0x140001615
mov rdx, qword [r13 + rsi*8]
movzx eax, word [rdx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x140001ec5
add rdx, 2
mov rcx, rdx
lea rdx, [0x14000542b]
call sym.msi_strequal
test eax, eax
je 0x140001ebd
inc r15d
cmp r15d, r14d
jge 0x140002bac
test byte [section..data], 8
movsxd rsi, r15d
je 0x140001e73
mov rcx, qword [r13 + rsi*8]
call sym.wine_dbgstr_wn
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov ecx, 3
lea r8, str.WinMain
lea r9, str.argvW__d____s_n
call sym.wine_dbg_log
mov rax, qword [r13 + rsi*8]
movzx ecx, word [rax]
lea edx, [rcx - 0x30]
cmp dx, 9
ja 0x140002039
add rax, 2
xor r8d, r8d
add r8d, r8d
lea edx, [r8 + r8*4]
lea r8d, [rcx + rdx]
add r8d, 0xffffffd0
movzx ecx, word [rax]
mov edx, ecx
add edx, 0xffffffd0
add rax, 2
cmp dx, 0xa
jb 0x140001e8f
mov qword [rsp + 0xb8], r8
jmp 0x140001615
mov rdx, qword [r13 + rsi*8]
movzx eax, word [rdx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x14000204b
add rdx, 2
mov rcx, rdx
lea rdx, [0x14000542d]
call sym.msi_strprefix
mov rdx, qword [r13 + rsi*8]
test eax, eax
je 0x140002048
mov eax, 0xffffffff
xor ecx, ecx
mov r8, rdx
inc eax
cmp word [r8], 0
mov r9d, ecx
lea r8, [r8 + 2]
lea ecx, [r9 + 1]
jne 0x140001efe
cmp eax, 3
jl 0x140001fd2
mov eax, r9d
mov ecx, 2
jmp 0x140001f39
or dword [rsp + 0x44], 0x400
inc rcx
cmp rax, rcx
je 0x140001fd2
movzx r8d, word [rdx + rcx*2]
add r8d, 0xffffffdf
cmp r8d, 0x56
ja case.0x140001f56.34
lea r9, [0x1400050d8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
or dword [rsp + 0x44], 0x100
jmp case.0x140001f56.34
or dword [rsp + 0x44], 8
jmp case.0x140001f56.34
or dword [rsp + 0x44], 0x1000
jmp case.0x140001f56.34
or dword [rsp + 0x44], 1
jmp case.0x140001f56.34
or dword [rsp + 0x44], 0x800
jmp case.0x140001f56.34
or dword [rsp + 0x44], 2
jmp case.0x140001f56.34
or dword [rsp + 0x44], 4
jmp case.0x140001f56.34
or dword [rsp + 0x44], 0x10
jmp case.0x140001f56.34
or dword [rsp + 0x44], 0x200
jmp case.0x140001f56.34
or dword [rsp + 0x44], 0x80
jmp case.0x140001f56.34
or dword [rsp + 0x50], 1
jmp case.0x140001f56.34
or dword [rsp + 0x50], 2
jmp case.0x140001f56.34
mov dword [rsp + 0x44], 0x7fdf
jmp case.0x140001f56.34
inc r15d
cmp r15d, r14d
jge 0x140002bac
test byte [section..data], 8
movsxd rsi, r15d
je 0x140002016
mov rcx, qword [r13 + rsi*8]
call sym.wine_dbgstr_wn
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov ecx, 3
lea r8, str.WinMain
lea r9, str.argvW__d____s_n
call sym.wine_dbg_log
mov rsi, qword [r13 + rsi*8]
mov ecx, dword [rsp + 0x44]
mov rdx, rsi
mov r8d, dword [rsp + 0x50]
call sym.MsiEnableLogW
test eax, eax
je 0x140001615
jmp 0x140002be2
xor eax, eax
mov qword [rsp + 0xb8], rax
jmp 0x140001615
movzx eax, word [rdx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x140002075
add rdx, 2
mov rcx, rdx
lea rdx, [0x140005454]
call sym.msi_strequal
test eax, eax
jne 0x14000209b
mov rdx, qword [r13 + rsi*8]
movzx eax, word [rdx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x140002104
add rdx, 2
mov rcx, rdx
lea rdx, str.update
call sym.msi_strequal
test eax, eax
je 0x1400020fc
inc r15d
cmp r15d, r14d
jge 0x140002bac
test byte [section..data], 8
movsxd rsi, r15d
je 0x1400020df
mov rcx, qword [r13 + rsi*8]
call sym.wine_dbgstr_wn
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov ecx, 3
lea r8, str.WinMain
lea r9, str.argvW__d____s_n
call sym.wine_dbg_log
mov rax, qword [r13 + rsi*8]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xa0], 1
jmp 0x140001615
mov rdx, qword [r13 + rsi*8]
movzx eax, word [rdx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x1400021a0
add rdx, 2
mov rcx, rdx
lea rdx, [0x14000545d]
call sym.msi_strprefix
mov rdx, qword [r13 + rsi*8]
test eax, eax
je 0x14000219d
mov rax, 0xfffffffffffffffe
cmp word [rdx + rax + 2], 0
lea rax, [rax + 2]
jne 0x140002136
movabs rcx, 0x1fffffffe
and rax, rcx
cmp rax, 4
je 0x140002189
add rdx, 4
mov rcx, rdx
lea rdx, [0x14000545f]
call sym.msi_strequal
test eax, eax
jne 0x140002189
mov rcx, qword [r13 + rsi*8]
add rcx, 4
lea rdx, str.uiet
call sym.msi_strequal
test eax, eax
je 0x1400023b3
mov byte [0x140007048], 1
mov dword [rsp + 0x48], 2
jmp 0x140001615
movzx eax, word [rdx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x1400021e8
add rdx, 2
mov rcx, rdx
lea rdx, str.passive
call sym.msi_strequal
test eax, eax
je 0x1400021e0
lea rcx, [rsp + 0x78]
lea rdx, str.REBOOTPROMPT_S_
call sym.StringListAppend
mov dword [rsp + 0x48], 0x63
jmp 0x140001615
mov rdx, qword [r13 + rsi*8]
movzx eax, word [rdx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x140002277
add rdx, 2
mov rcx, rdx
lea rdx, [0x1400054d6]
call sym.msi_strequal
test eax, eax
je 0x14000226f
inc r15d
cmp r15d, r14d
jge 0x140002bac
test byte [section..data], 8
movsxd rsi, r15d
je 0x140002252
mov rcx, qword [r13 + rsi*8]
call sym.wine_dbgstr_wn
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov ecx, 3
lea r8, str.WinMain
lea r9, str.argvW__d____s_n
call sym.wine_dbg_log
mov rax, qword [r13 + rsi*8]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x98], 1
jmp 0x140001615
mov rdx, qword [r13 + rsi*8]
movzx eax, word [rdx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x140002306
add rdx, 2
mov rcx, rdx
lea rdx, [0x1400054d8]
call sym.msi_strequal
test eax, eax
je 0x1400022fe
inc r15d
cmp r15d, r14d
jge 0x140002bac
test byte [section..data], 8
movsxd rsi, r15d
je 0x1400022e1
mov rcx, qword [r13 + rsi*8]
call sym.wine_dbgstr_wn
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov ecx, 3
lea r8, str.WinMain
lea r9, str.argvW__d____s_n
call sym.wine_dbg_log
mov rax, qword [r13 + rsi*8]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x94], 1
jmp 0x140001615
mov rdx, qword [r13 + rsi*8]
movzx eax, word [rdx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x140002334
add rdx, 2
mov rcx, rdx
lea rdx, str.help
call sym.msi_strequal
test eax, eax
jne 0x140002c0e
mov rdx, qword [r13 + rsi*8]
movzx eax, word [rdx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x140002362
add rdx, 2
mov rcx, rdx
lea rdx, [0x1400054df]
call sym.msi_strequal
test eax, eax
jne 0x140002c0e
mov rdx, qword [r13 + rsi*8]
movzx eax, word [rdx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x1400023e5
add rdx, 2
mov rcx, rdx
lea rdx, [0x140005427]
call sym.msi_strequal
test eax, eax
je 0x1400023dd
mov dword [rsp + 0x5c], 1
test byte [section..data], 1
je 0x140001615
xor ecx, ecx
lea r8, str.WinMain
lea r9, str.Unknown_parameter__m_n
call sym.wine_dbg_log
jmp 0x140001615
mov rcx, qword [r13 + rsi*8]
add rcx, 4
lea rdx, [0x140005466]
call sym.msi_strequal
test eax, eax
je 0x140002470
mov dword [rsp + 0x48], 4
jmp 0x140001615
mov rdx, qword [r13 + rsi*8]
movzx eax, word [rdx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x14000243e
add rdx, 2
mov rcx, rdx
lea rdx, [0x1400054f7]
call sym.msi_strequal
test eax, eax
je 0x140002436
mov dword [rsp + 0x5c], 1
test byte [section..data], 1
je 0x140001615
xor ecx, ecx
lea r8, str.WinMain
lea r9, str.Unknown_parameter__D_n
call sym.wine_dbg_log
jmp 0x140001615
mov rdx, qword [r13 + rsi*8]
movzx eax, word [rdx]
movzx eax, ax
or eax, 2
cmp eax, 0x2f
jne 0x14000249b
add rdx, 2
mov rcx, rdx
lea rdx, [0x14000550f]
call sym.msi_strequal
test eax, eax
je 0x140002496
mov dword [rsp + 0x90], 1
jmp 0x140001615
mov rcx, qword [r13 + rsi*8]
add rcx, 4
lea rdx, [0x1400053a1]
call sym.msi_strequal
test eax, eax
je 0x1400024a5
mov dword [rsp + 0x48], 0x85
jmp 0x140001615
mov rdx, qword [r13 + rsi*8]
lea rcx, [rsp + 0x78]
jmp 0x140001df3
mov rcx, qword [r13 + rsi*8]
add rcx, 4
lea rdx, [0x140005468]
call sym.msi_strequal
test eax, eax
je 0x1400024cb
mov dword [rsp + 0x48], 0x82
jmp 0x140001615
mov rcx, qword [r13 + rsi*8]
add rcx, 4
lea rdx, [0x14000546b]
call sym.msi_strprefix
mov r14, qword [r13 + rsi*8]
test eax, eax
je 0x14000258f
cmp word [r14 + 6], 0
je 0x1400025af
add r14, 6
mov dword [rsp + 0x48], 3
jmp 0x14000251c
or dword [rsp + 0x48], 0x20
cmp word [r14 + 2], 0
lea r14, [r14 + 2]
je 0x140001615
mov rcx, r14
lea rdx, [0x14000546d]
call sym.msi_strprefix
mov ecx, dword [rsp + 0x48]
mov esi, ecx
or esi, 0x80
test eax, eax
cmove esi, ecx
mov rcx, r14
lea rdx, [0x14000546f]
call sym.msi_strprefix
mov ecx, esi
or ecx, 0x40
test eax, eax
cmove ecx, esi
mov dword [rsp + 0x48], ecx
mov rcx, r14
lea rdx, [0x140005471]
call sym.msi_strprefix
test eax, eax
je 0x14000250c
test byte [section..data], 1
je 0x140002507
xor ecx, ecx
lea r8, str.WinMain
lea r9, [0x140005473]
call sym.wine_dbg_log
jmp 0x140002507
add r14, 4
mov rcx, r14
call sym.wine_dbgstr_wn
lea rcx, str.Unknown_option___s__for_UI_level_n
mov rdx, rax
call sym.report_error
jmp 0x140001615
mov dword [rsp + 0x48], 3
jmp 0x140001615
mov dword [rsp + 0x64], ebp
mov rbp, qword [rsp + 0x78]
xor esi, esi
mov ecx, dword [rsp + 0x48]
xor edx, edx
call sym.MsiSetInternalUI
test rbp, rbp
je 0x140002744
mov r8d, 1
mov rcx, rbp
nop word cs:[rax + rax]
mov eax, r8d
xor edx, edx
nop word cs:[rax + rax]
cmp word [rcx + rdx*2 + 8], 0
lea rdx, [rdx + 1]
jne 0x140002600
lea r8d, [rax + rdx]
add r8d, 2
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1400025f0
mov dword [rsp + 0x68], ebx
lea ecx, [rax + rdx]
add ecx, 2
add rcx, rcx
call qword [sym.imp.ucrtbase.dll_malloc]
mov rsi, rax
mov rbx, qword [sym.imp.ucrtbase.dll_wcschr]
mov r14, rax
jmp 0x14000264d
mov rbp, qword [rbp]
test rbp, rbp
je 0x14000270c
lea r12, [rbp + 8]
mov rcx, r12
mov dx, 0x3d
call rbx
test rax, rax
je 0x140002640
mov r15, rax
mov r13, rax
sub r13, r12
lea rcx, [r14 + 2]
mov word [r14], 0x20
movabs rax, 0x1fffffffe
and r13, rax
mov rdx, r12
mov r8, r13
call sym.memcpy
mov word [r14 + r13 + 2], 0x3d
add r15, 2
mov rcx, r15
mov dx, 0x20
call rbx
mov r12, rax
test rax, rax
je 0x1400026c0
add r13, r14
add r13, 2
mov word [r13 + 2], 0x22
add r13, 4
jmp 0x1400026c7
add r13, r14
add r13, 4
mov rax, 0xffffffffffffffff
nop
cmp word [r15 + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400026d0
mov r14d, eax
add r14, r14
mov rcx, r13
mov rdx, r15
mov r8, r14
call sym.memcpy
add r14, r13
test r12, r12
je 0x140002640
mov word [r14], 0x22
add r14, 2
jmp 0x140002640
mov word [r14], 0
test byte [section..data], 8
mov ebx, dword [rsp + 0x68]
je 0x140002744
mov rcx, rsi
call sym.wine_dbgstr_wn
mov qword [rsp + 0x20], rax
lea r8, str.build_properties
lea r9, str.properties_____s_n
mov ecx, 3
call sym.wine_dbg_log
cmp dword [rsp + 0x6c], 0
setne al
mov edx, dword [rsp + 0xa0]
test edx, edx
setne cl
test al, cl
jne 0x1400027fd
cmp dword [rsp + 0x70], 0
je 0x1400027fd
mov rax, 0xfffffffffffffffe
nop word cs:[rax + rax]
cmp word [rdi + rax + 2], 0
lea rax, [rax + 2]
jne 0x140002780
movabs rcx, 0x1fffffffe
and rax, rcx
cmp rax, 0x4c
jne 0x1400027b8
lea rdx, [rsp + 0xe0]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
je 0x1400029e3
mov rcx, rdi
mov rdx, rsi
call sym.MsiInstallProductW
cmp eax, 2
jne 0x1400012db
mov rcx, rdi
call sym.get_path_with_extension
test rax, rax
je 0x14000299d
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call sym.MsiInstallProductW
mov esi, eax
mov rcx, rdi
call qword [sym.imp.ucrtbase.dll_free]
mov eax, esi
jmp 0x1400012db
cmp dword [rsp + 0x9c], 0
je 0x14000289f
mov rax, 0xfffffffffffffffe
nop word cs:[rax + rax]
cmp word [rdi + rax + 2], 0
lea rax, [rax + 2]
jne 0x140002820
movabs rcx, 0x1fffffffe
and rax, rcx
cmp rax, 0x4c
jne 0x140002858
lea rdx, [rsp + 0xe0]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
je 0x140002a5a
mov rcx, rdi
mov edx, dword [rsp + 0x4c]
call sym.MsiReinstallProductW
cmp eax, 2
jne 0x1400012db
mov rcx, rdi
call sym.get_path_with_extension
test rax, rax
je 0x14000299d
mov rsi, rax
mov rcx, rax
mov edx, dword [rsp + 0x4c]
call sym.MsiReinstallProductW
mov edi, eax
mov rcx, rsi
call qword [sym.imp.ucrtbase.dll_free]
mov eax, edi
jmp 0x1400012db
cmp dword [rsp + 0x54], 0
je 0x1400029fb
mov rsi, qword [rsp + 0x78]
test rsi, rsi
je 0x140002a86
mov r8d, 1
mov rax, rsi
nop word cs:[rax + rax]
mov ecx, r8d
xor edx, edx
nop word cs:[rax + rax]
cmp word [rax + rdx*2 + 8], 0
lea rdx, [rdx + 1]
jne 0x1400028e0
lea r8d, [rcx + rdx]
mov rax, qword [rax]
test rax, rax
jne 0x1400028d0
add ecx, edx
add rcx, rcx
call qword [sym.imp.ucrtbase.dll_malloc]
mov rcx, rax
nop word cs:[rax + rax]
lea r8, [rsi + 8]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rsi + rdx*2 + 0xa], 0
lea rdx, [rdx + 1]
jne 0x140002920
cmp edx, 2
jb 0x140002970
mov r10d, edx
mov r9, rcx
nop word [rax + rax]
movzx r11d, word [r8]
test r11w, r11w
je 0x140002977
dec r10d
add r8, 2
mov word [r9], r11w
add r9, 2
cmp r10d, 1
ja 0x140002940
jmp 0x140002977
mov r9, rcx
test edx, edx
je 0x14000297d
mov word [r9], 0
mov edx, edx
lea rcx, [rcx + rdx*2]
mov rsi, qword [rsi]
test rsi, rsi
je 0x140002a94
mov word [rcx], 0x3b
add rcx, 2
jmp 0x140002910
mov eax, 2
jmp 0x1400012db
mov eax, 1
test byte [section..data], 2
je 0x1400012db
mov rcx, rsi
call sym.wine_dbgstr_wn
mov qword [rsp + 0x20], rax
lea r8, str.custom_action_server
lea r9, str.Invalid_parameter__s_n
mov ecx, 1
call sym.wine_dbg_log
jmp 0x1400012d6
mov rcx, rdi
xor edx, edx
mov r8d, 5
mov r9, rsi
call sym.MsiConfigureProductExW
jmp 0x1400012db
test edx, edx
je 0x140002b0e
mov rcx, qword [rsp + 0xc0]
mov rdx, rdi
mov r8d, dword [rsp + 0x60]
mov r9, rsi
call sym.MsiApplyPatchW
jmp 0x1400012db
test byte [section..data], 2
je 0x140002af0
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
mov dword [rsp + 0x20], eax
lea r8, str.custom_action_server
lea r9, str.Failed_to_create_custom_action_server_pipe:__lu_n
mov ecx, 1
call sym.wine_dbg_log
jmp 0x140002af0
mov eax, 1
test byte [section..data], 1
je 0x1400012db
lea r8, str.WinMain
lea r9, str.Product_code_treatment_not_implemented_yet_n
xor ecx, ecx
call sym.wine_dbg_log
jmp 0x1400012d6
mov ecx, 2
call qword [sym.imp.ucrtbase.dll_malloc]
mov rcx, rax
mov word [rcx], 0
mov rcx, rdi
mov rdx, qword [rsp + 0xb0]
mov r8, rax
mov r9, qword [rsp + 0xb8]
call sym.MsiAdvertiseProductW
jmp 0x1400012db
test byte [section..data], 2
je 0x140002aea
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
mov dword [rsp + 0x20], eax
lea r8, str.custom_action_server
lea r9, str.Failed_to_read_from_custom_action_server_pipe:__lu_n
mov ecx, 1
call sym.wine_dbg_log
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x1400012db
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x1400012db
cmp dword [rsp + 0x98], 0
je 0x140002b2a
mov rcx, qword [rsp + 0xa8]
call sym.DoDllRegisterServer
jmp 0x1400012db
cmp dword [rsp + 0x94], 0
je 0x140002b46
mov rcx, qword [rsp + 0xa8]
call sym.DoDllUnregisterServer
jmp 0x1400012db
cmp dword [rsp + 0x64], 0
je 0x140002b57
call sym.DoRegServer
jmp 0x1400012db
test ebx, ebx
je 0x140002b65
call sym.DoUnregServer
jmp 0x1400012db
cmp dword [rsp + 0x90], 0
je 0x140002b79
call sym.DoService
jmp 0x1400012db
cmp dword [rsp + 0x5c], 0
je 0x140002bac
test byte [section..data], 1
je 0x1400012d6
lea r8, str.WinMain
lea r9, str.Unknown_function__ignoring_n
jmp 0x140002a7a
mov ecx, 5
xor edx, edx
call sym.MsiSetInternalUI
mov ecx, 1
call sym.ShowUsage
test byte [section..data], 2
je 0x140002bd7
lea r8, str.StringListAppend
lea r9, str.Out_of_memory__n
mov ecx, 1
call sym.wine_dbg_log
mov ecx, 1
call qword [sym.imp.kernel32.dll_ExitProcess]
mov rcx, rsi
call sym.wine_dbgstr_w
lea rcx, [0x14000542f]
mov rdx, rax
mov r8d, dword [rsp + 0x44]
mov r9d, dword [rsp + 0x50]
call sym.report_error
mov ecx, 1
call qword [sym.imp.kernel32.dll_ExitProcess]
xor ecx, ecx
call sym.ShowUsage
int3