Function at 0x401000
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, 0xd0
mov dword [esp + 0x30], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x34], 0
call dword [sym.imp.comctl32.dll_InitCommonControls]
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea esi, [esp + 0x34]
lea edx, [esp + 0x5c]
mov ecx, eax
push esi
call sym._process_args
add esp, 4
mov ebx, dword [esp + 0x5c]
cmp ebx, 2
jl 0x402a40
mov esi, dword [esp + 0x34]
mov ecx, dword [esi + 4]
movzx eax, word [ecx]
or eax, 2
cmp eax, 0x2f
jne 0x4011ae
add ecx, 2
mov edx, 0x405310
call sym._msi_strequal
test eax, eax
je 0x4011ae
mov edi, dword [esi + 8]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x60], 0
lea eax, [esp + 0x9c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
jne 0x40116f
lea ecx, [esp + 0x6c]
lea eax, [esp + 0x60]
push ecx
push 0
push eax
push 0
mov dword [esp + 0x14], edi
push edi
push dword [esp + 0xb0]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x401162
cmp dword [esp + 0x60], 1
jne 0x401162
mov esi, dword [esi]
mov ebx, 0xfffffffe
nop
cmp word [esi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x4010f0
mov edi, ebx
sar edi, 1
lea eax, [edi + edi]
add eax, 2
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
test eax, eax
je 0x401162
mov ecx, eax
lea eax, [edi + 1]
mov dword [esp + 0xc], eax
push ebx
push esi
mov esi, ecx
push ecx
call sub.ucrtbase.dll_memcpy
add esp, 0xc
mov word [esi + edi*2], 0x20
mov eax, dword [esp + 0xc]
lea eax, [esi + eax*2]
lea ecx, [esp + 0x6c]
push ecx
push eax
lea eax, [esp + 0x68]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0xb0]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x401180
push esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
push dword [esp + 0x9c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov esi, 1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
lea edx, [esp + 0x5c]
mov ecx, esi
lea eax, [esp + 0x34]
push eax
call sym._process_args
add esp, 4
push esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
push dword [esp + 0x9c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [esp + 0x5c]
cmp ebx, 3
jne 0x401386
mov esi, dword [esp + 0x34]
mov ecx, dword [esi + 4]
movzx eax, word [ecx]
mov ebx, 3
or eax, 2
cmp eax, 0x2f
jne 0x40138f
add ecx, 2
mov edx, str.Embedding
call sym._msi_strequal
test eax, eax
je 0x40138f
mov edi, dword [esi + 8]
test byte [section..data], 8
je 0x401220
mov ecx, edi
call sym._wine_dbgstr_wn
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4055f6
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 edi
call dword [sym.imp.ucrtbase.dll_wcstol]
add esp, 0xc
mov dword [0x407048], eax
test eax, eax
je 0x40283a
lea esi, [esp + 0x9c]
push 0x20
push eax
push str..pipemsica__x__d
push 0x18
push esi
call sym._swprintf
sub esp, 8
movaps xmm0, xmmword [0x4052e0]
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 0x4028bd
mov esi, eax
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea edi, [esp + 0x94]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
nop dword [eax]
push 0
push edi
push 0x10
lea eax, [esp + 0x78]
push eax
push esi
call ebx
test eax, eax
je 0x40293e
cmp dword [esp + 0x94], 0x10
jne 0x40293e
mov eax, dword [esp + 0x70]
or eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x6c]
or ecx, dword [esp + 0x74]
or ecx, eax
je 0x40299a
push 0x10
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
movups xmm0, xmmword [esp + 0x6c]
movups xmmword [eax], xmm0
push 0
push 0
push eax
push sym._custom_action_thread_4
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0
push 0
push edi
push 8
lea eax, [esp + 0x6c]
push eax
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x401331
cmp dword [esp + 0x94], 8
je 0x4012a0
test byte [section..data], 2
je 0x401371
mov eax, dword fs:[0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
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 dword [esp + 0x28], eax
jmp 0x40298e
cmp ebx, 2
jl 0x402a40
mov dword [esp + 0x10], 5
mov dword [esp + 0x2c], 0
mov esi, 1
mov dword [esp + 0x58], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xc], ebx
jmp 0x401463
mov dword [esp + 0x48], 1
inc esi
mov eax, esi
cmp esi, ebx
jge 0x402479
test byte [section..data], 8
mov edi, dword [esp + 0x34]
je 0x4014a2
mov ecx, dword [edi + esi*4]
call sym._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
lea eax, [edi + esi*4]
mov dword [esp + 4], eax
mov ecx, dword [edi + esi*4]
movzx eax, word [ecx]
mov edx, eax
or edx, 2
cmp edx, 0x2f
jne 0x4014e9
add ecx, 2
mov edx, str.regserver
call sym._msi_strequal
test eax, eax
je 0x4014e0
mov dword [esp + 0x90], 1
jmp 0x401458
mov eax, dword [esp + 4]
mov ecx, dword [eax]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x401512
add ecx, 2
mov edx, str.unregserver
call sym._msi_strequal
test eax, eax
jne 0x401450
mov eax, dword [esp + 4]
mov ecx, dword [eax]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x40153b
add ecx, 2
mov edx, str.unregister
call sym._msi_strequal
test eax, eax
jne 0x401450
mov eax, dword [esp + 4]
mov ecx, dword [eax]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x401564
add ecx, 2
mov edx, str.unreg
call sym._msi_strequal
test eax, eax
jne 0x401450
mov eax, dword [esp + 4]
mov ecx, dword [eax]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x401589
add ecx, 2
mov edx, 0x40535b
call sym._msi_strprefix
test eax, eax
jne 0x4015ad
mov eax, dword [esp + 4]
mov ecx, dword [eax]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x401686
add ecx, 2
mov edx, str.package
call sym._msi_strprefix
test eax, eax
je 0x40167d
mov ebx, edi
mov edi, esi
mov edx, dword [esp + 4]
mov esi, dword [edx]
movzx eax, word [esi]
or eax, 2
cmp eax, 0x2f
jne 0x4015dc
lea ecx, [esi + 2]
mov edx, 0x40535b
call sym._msi_strprefix
mov edx, dword [esp + 4]
mov ecx, 2
test eax, eax
jne 0x4015e1
mov ecx, 8
mov eax, dword [edx]
mov edx, 0xfffffffe
nop dword [eax + eax]
cmp word [eax + edx + 2], 0
lea edx, [edx + 2]
jne 0x4015f0
sar edx, 1
cmp edx, ecx
jle 0x40161b
lea eax, [esi + ecx*2]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], 1
mov esi, edi
mov ebx, dword [esp + 0xc]
jmp 0x401458
lea esi, [edi + 1]
cmp esi, dword [esp + 0xc]
jge 0x402a49
test byte [section..data], 8
je 0x401664
mov ecx, dword [ebx + edi*4 + 4]
call sym._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 + 0x14], eax
mov dword [esp + 0x2c], 1
mov ebx, dword [esp + 0xc]
jmp 0x401458
mov eax, dword [esp + 4]
mov ecx, dword [eax]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x401775
add ecx, 2
mov edx, 0x405365
call sym._msi_strequal
test eax, eax
je 0x40176c
mov eax, ebx
mov ebx, edi
mov edi, esi
inc esi
cmp esi, eax
jge 0x402a49
test byte [section..data], 8
je 0x4016f5
mov ecx, dword [ebx + edi*4 + 4]
call sym._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 + 0x14], eax
push 0x1e
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
test eax, eax
je 0x402a53
movups xmm0, xmmword [0x405372]
movups xmmword [eax + 0xe], xmm0
movups xmm0, xmmword [str.ACTIONADMIN]
movups xmmword [eax + 4], xmm0
mov dword [eax], 0
lea edx, [esp + 0x30]
mov ebx, dword [esp + 0xc]
nop word cs:[eax + eax]
mov ecx, edx
mov edx, dword [edx]
test edx, edx
jne 0x401740
mov dword [ecx], eax
mov dword [esp + 0x58], 1
test byte [section..data], 1
jne 0x401879
mov dword [esp + 0x2c], 1
jmp 0x401458
mov eax, dword [esp + 4]
mov ecx, dword [eax]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x4018ab
add ecx, 2
mov edx, 0x4053b7
call sym._msi_strprefix
mov ecx, dword [esp + 4]
mov ecx, dword [ecx]
test eax, eax
je 0x4018a8
mov dword [esp + 8], esi
mov eax, 1
mov esi, 0xfffffffe
xor edx, edx
nop
mov ebx, edx
dec eax
cmp word [ecx + esi + 2], 0
lea esi, [esi + 2]
lea edx, [edx + 1]
jne 0x4017b0
mov dword [esp + 0x1c], edi
cmp esi, 5
jl 0x401995
cmp ebx, 4
mov eax, 3
cmovl ebx, eax
mov edi, 2
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 4]
jmp 0x4017f9
or ecx, 4
nop dword [eax + eax]
inc edi
cmp ebx, edi
je 0x401999
mov eax, dword [edx]
movzx eax, word [eax + edi*2]
mov dword [esp + 0x4c], eax
add eax, 0xffffffbf
cmp eax, 0x35
ja case.0x40180b.66
jmp dword [eax*4 + section..rdata]
or ecx, 0x40
jmp 0x4017f0
or ecx, 0x400
jmp 0x4017f0
or ecx, 0x20
jmp 0x4017f0
or ecx, 8
jmp 0x4017f0
or ecx, 0x10
jmp 0x4017f0
or ecx, 2
jmp 0x4017f0
or ecx, 0x80
jmp 0x4017f0
or ecx, 0x200
jmp 0x4017f0
or ecx, 0x100
jmp 0x4017f0
push 2
mov dword [esp + 0x24], ecx
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push dword [esp + 0x4c]
push str.Unknown_option___c__in_Repair_mode_n
push eax
call sym._fprintf
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x4017f0
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 + 0x2c], 1
jmp 0x401458
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x4018d0
add ecx, 2
mov edx, 0x4053dd
call sym._msi_strprefix
test eax, eax
jne 0x4018f4
mov eax, dword [esp + 4]
mov ecx, dword [eax]
movzx eax, word [ecx]
movzx edx, ax
or edx, 2
cmp edx, 0x2f
jne 0x401a24
add ecx, 2
mov edx, str.uninstall
call sym._msi_strequal
test eax, eax
je 0x401a1b
mov eax, dword [esp + 4]
mov ecx, dword [eax]
movzx eax, word [ecx]
or eax, 2
cmp eax, 0x2f
jne 0x401921
add ecx, 2
mov edx, 0x4053dd
call sym._msi_strprefix
mov ecx, dword [esp + 4]
test eax, eax
je 0x401921
mov eax, dword [ecx]
add eax, 4
jmp 0x401929
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40192f
cmp word [eax], 0
jne 0x40193e
mov eax, esi
inc esi
cmp esi, ebx
jge 0x402a49
mov eax, dword [edi + eax*4 + 4]
mov dword [esp + 0x14], eax
test byte [section..data], 8
je 0x40197a
mov ecx, dword [esp + 0x14]
call sym._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 + 0x30]
mov edx, str.REMOVEALL
call sym._StringListAppend
mov dword [esp + 0x2c], 1
jmp 0x401458
mov ecx, dword [esp + 0x20]
cmp esi, 4
mov eax, 0x2aa
cmove ecx, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 8]
lea esi, [eax + 1]
mov ebx, dword [esp + 0xc]
cmp esi, ebx
jge 0x402a49
test byte [section..data], 8
mov edi, dword [esp + 0x1c]
je 0x4019ff
mov eax, dword [esp + 8]
mov ecx, dword [edi + eax*4 + 4]
call sym._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 + 8]
mov eax, dword [edi + eax*4 + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x8c], 1
jmp 0x401458
mov eax, dword [esp + 4]
mov ecx, dword [eax]
movzx eax, word [ecx]
movzx eax, ax
or eax, 2
cmp eax, 0x2f
jne 0x401adf
add ecx, 2
mov edx, 0x405412
call sym._msi_strprefix
mov ecx, dword [esp + 4]
mov ecx, dword [ecx]
test eax, eax
je 0x401adf
mov dword [esp + 0x1c], edi
mov dword [esp + 8], esi
xor edx, edx
mov edi, ecx
nop word [eax + eax]
mov eax, edi
mov esi, edx
add edi, 2
inc edx
cmp word [eax], 0
jne 0x401a60
sub eax, ecx
cmp eax, 5
jl 0x401b5d
cmp esi, 4
mov eax, 3
cmovl esi, eax
mov edi, 2
mov edx, dword [esp + 4]
jmp 0x401ab7
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push ebx
push str.Unknown_option___c__in_Advertise_mode_n
push eax
call sym._fprintf
mov edx, dword [esp + 0x10]
add esp, 0xc
inc edi
cmp esi, edi
je 0x401b5d
mov eax, dword [edx]
movzx ebx, word [eax + edi*2]
lea eax, [ebx - 0x4d]
rol eax, 0x1d
cmp eax, 6
jae 0x401a90
mov ecx, 0x33
bt ecx, eax
jae 0x401a90
mov eax, dword [eax*4 + 0x4052bc]
mov dword [esp + 0x44], eax
jmp 0x401aae
mov edx, str.umtgl
call sym._msi_strequal
test eax, eax
je 0x401bcd
mov eax, ebx
mov ebx, edi
mov edi, esi
inc esi
cmp esi, eax
jge 0x402a49
test byte [section..data], 8
je 0x401b3c
mov ecx, dword [ebx + edi*4 + 4]
call sym._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 + 0x14], eax
mov dword [esp + 0x44], 1
mov dword [esp + 0x40], 1
mov ebx, dword [esp + 0xc]
jmp 0x401458
mov eax, dword [esp + 8]
lea esi, [eax + 1]
mov ebx, dword [esp + 0xc]
cmp esi, ebx
jge 0x402a49
test byte [section..data], 8
mov edi, dword [esp + 0x1c]
je 0x401bb4
mov eax, dword [esp + 8]
mov ecx, dword [edi + eax*4 + 4]
call sym._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 + 8]
mov eax, dword [edi + eax*4 + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], 1
jmp 0x401458
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, 0x40543d
call sym._msi_strequal
test eax, eax
je 0x401c4d
mov eax, ebx
mov ebx, edi
mov edi, esi
inc esi
cmp esi, eax
jge 0x402a49
test byte [section..data], 8
je 0x401c2c
mov ecx, dword [ebx + edi*4 + 4]
call sym._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 + 0x14], eax
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 0
mov ebx, dword [esp + 0xc]
jmp 0x401458
mov eax, dword [esp + 4]
mov edx, dword [eax]
movzx eax, word [edx]
mov ecx, eax
or ecx, 2
cmp ecx, 0x2f
jne 0x401ce4
add edx, 2
mov ecx, edx
mov edx, 0x40543f
call sym._msi_strequal
test eax, eax
je 0x401cdb
mov eax, ebx
mov ebx, edi
mov edi, esi
inc esi
cmp esi, eax
jge 0x402a49
test byte [section..data], 8
je 0x401cc2
mov ecx, dword [ebx + edi*4 + 4]
call sym._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 + 0x98]
call sym._StringListAppend
mov ebx, dword [esp + 0xc]
jmp 0x401458
mov eax, dword [esp + 4]
mov edx, dword [eax]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x401d9f
add edx, 2
mov ecx, edx
mov edx, 0x405441
call sym._msi_strequal
test eax, eax
je 0x401d96
mov eax, ebx
mov ebx, edi
mov edi, esi
inc esi
cmp esi, eax
jge 0x402a49
test byte [section..data], 8
je 0x401d55
mov ecx, dword [ebx + edi*4 + 4]
call sym._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]
movzx ecx, word [eax]
lea edx, [ecx - 0x30]
xor edi, edi
cmp dx, 9
ja 0x401d89
add eax, 2
xor edi, edi
movzx ecx, cx
lea edx, [edi + edi*4]
lea edi, [ecx + edx*2]
add edi, 0xffffffd0
movzx ecx, word [eax]
mov edx, ecx
add edx, 0xffffffd0
add eax, 2
cmp dx, 0xa
jb 0x401d6c
mov dword [esp + 0x24], edi
mov ebx, dword [esp + 0xc]
jmp 0x401458
mov eax, dword [esp + 4]
mov edx, dword [eax]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x401e9c
add edx, 2
mov ecx, edx
mov edx, 0x405443
call sym._msi_strprefix
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
test eax, eax
je 0x401e99
mov ebx, edi
mov dword [esp + 8], esi
xor esi, esi
mov edi, edx
mov ecx, edi
mov eax, esi
add edi, 2
inc esi
cmp word [ecx], 0
jne 0x401dd5
sub ecx, edx
cmp ecx, 5
jl 0x401f50
cmp eax, 4
mov ecx, 3
cmovl eax, ecx
mov ecx, 2
mov edi, ebx
jmp 0x401e13
or dword [esp + 0x18], 0x1000
inc ecx
cmp eax, ecx
je 0x401f52
movzx esi, word [edx + ecx*2]
add esi, 0xffffffdf
cmp esi, 0x56
ja case.0x401e1f.34
jmp dword [esi*4 + 0x4050d8]
or dword [esp + 0x18], 0x100
jmp case.0x401e1f.34
or dword [esp + 0x18], 0x800
jmp case.0x401e1f.34
or dword [esp + 0x18], 2
jmp case.0x401e1f.34
or dword [esp + 0x18], 0x10
jmp case.0x401e1f.34
or dword [esp + 0x18], 1
jmp case.0x401e1f.34
or dword [esp + 0x18], 0x80
jmp case.0x401e1f.34
or dword [esp + 0x18], 0x400
jmp case.0x401e1f.34
or dword [esp + 0x18], 0x200
jmp case.0x401e1f.34
or dword [esp + 0x18], 8
jmp case.0x401e1f.34
or dword [esp + 0x18], 4
jmp case.0x401e1f.34
or dword [esp + 0x38], 2
jmp case.0x401e1f.34
mov dword [esp + 0x18], 0x7fdf
jmp case.0x401e1f.34
or dword [esp + 0x38], 1
jmp case.0x401e1f.34
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x401ec3
add edx, 2
mov ecx, edx
mov edx, 0x40546a
call sym._msi_strequal
test eax, eax
jne 0x401ee9
mov eax, dword [esp + 4]
mov edx, dword [eax]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x401fd1
add edx, 2
mov ecx, edx
mov edx, str.update
call sym._msi_strequal
test eax, eax
je 0x401fc8
mov eax, ebx
mov ebx, edi
mov edi, esi
inc esi
cmp esi, eax
jge 0x402a49
test byte [section..data], 8
je 0x401f34
mov ecx, dword [ebx + edi*4 + 4]
call sym._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 + 0x88], eax
mov dword [esp + 0x54], 1
mov ebx, dword [esp + 0xc]
jmp 0x401458
mov edi, ebx
mov eax, dword [esp + 8]
lea esi, [eax + 1]
mov ebx, dword [esp + 0xc]
cmp esi, ebx
jge 0x402a49
test byte [section..data], 8
je 0x401fa5
mov eax, dword [esp + 8]
mov ecx, dword [edi + eax*4 + 4]
call sym._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 + 8]
mov edi, dword [edi + eax*4 + 4]
push dword [esp + 0x38]
push edi
push dword [esp + 0x20]
call sub.msi.dll_MsiEnableLogW
test eax, eax
je 0x401458
jmp 0x402a86
mov eax, dword [esp + 4]
mov edx, dword [eax]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x40202d
add edx, 2
mov ecx, edx
mov edx, 0x405473
call sym._msi_strprefix
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
test eax, eax
je 0x40202a
xor eax, eax
cmp word [edx + eax], 0
lea eax, [eax + 2]
jne 0x401ff7
cmp eax, 6
je 0x40201d
add edx, 4
mov ecx, edx
mov edx, 0x405475
call sym._msi_strequal
test eax, eax
je 0x4021a8
mov dword [esp + 0x10], 2
jmp 0x401458
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x40206f
add edx, 2
mov ecx, edx
mov edx, str.passive
call sym._msi_strequal
test eax, eax
je 0x402066
lea ecx, [esp + 0x30]
mov edx, str.REBOOTPROMPT_S_
call sym._StringListAppend
mov dword [esp + 0x10], 0x63
jmp 0x401458
mov eax, dword [esp + 4]
mov edx, dword [eax]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
mov dword [esp + 0x1c], edi
jne 0x4020fc
add edx, 2
mov ecx, edx
mov edx, 0x4054ec
call sym._msi_strequal
test eax, eax
je 0x402102
mov edi, esi
inc esi
cmp esi, ebx
jge 0x402a49
test byte [section..data], 8
je 0x4020dc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + edi*4 + 4]
call sym._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 + 0x1c]
mov eax, dword [eax + edi*4 + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x84], 1
mov ebx, dword [esp + 0xc]
jmp 0x401458
mov dword [esp + 8], esi
jmp 0x40210f
mov dword [esp + 8], esi
mov eax, dword [esp + 4]
mov edx, dword [eax]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x4021dd
add edx, 2
mov ecx, edx
mov edx, 0x4054ee
call sym._msi_strequal
test eax, eax
je 0x4021d4
mov eax, dword [esp + 8]
lea esi, [eax + 1]
cmp esi, ebx
jge 0x402a49
test byte [section..data], 8
je 0x402188
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + eax*4 + 4]
call sym._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 + 8]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + eax*4 + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x80], 1
jmp 0x401458
mov dword [esp + 8], esi
mov eax, dword [esp + 4]
mov ecx, dword [eax]
add ecx, 4
mov edx, str.uiet
call sym._msi_strequal
test eax, eax
je 0x402273
mov dword [esp + 0x10], 2
jmp 0x40235c
mov eax, dword [esp + 4]
mov edx, dword [eax]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x402208
add edx, 2
mov ecx, edx
mov edx, str.help
call sym._msi_strequal
test eax, eax
jne 0x402ab9
mov eax, dword [esp + 4]
mov edx, dword [eax]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x402233
add edx, 2
mov ecx, edx
mov edx, 0x4054f5
call sym._msi_strequal
test eax, eax
jne 0x402ab9
mov eax, dword [esp + 4]
mov edx, dword [eax]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x4022a4
add edx, 2
mov ecx, edx
mov edx, 0x40543d
call sym._msi_strequal
test eax, eax
je 0x40229b
mov dword [esp + 0x50], 1
test byte [section..data], 1
je 0x40235c
sub esp, 0x10
mov dword [esp + 0xc], str.Unknown_parameter__m_n
jmp 0x4022e2
mov eax, dword [esp + 4]
mov ecx, dword [eax]
add ecx, 4
mov edx, 0x40547c
call sym._msi_strequal
test eax, eax
je 0x40232c
mov dword [esp + 0x10], 4
jmp 0x40235c
mov eax, dword [esp + 4]
mov edx, dword [eax]
movzx eax, word [edx]
movzx ecx, ax
or ecx, 2
cmp ecx, 0x2f
jne 0x402304
add edx, 2
mov ecx, edx
mov edx, 0x40550d
call sym._msi_strequal
test eax, eax
je 0x4022fb
mov dword [esp + 0x50], 1
test byte [section..data], 1
je 0x40235c
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 0x40235c
mov eax, dword [esp + 4]
mov edx, dword [eax]
movzx eax, word [edx]
movzx eax, ax
or eax, 2
cmp eax, 0x2f
jne 0x402353
add edx, 2
mov ecx, edx
mov edx, 0x405525
call sym._msi_strequal
test eax, eax
je 0x40234d
mov dword [esp + 0x7c], 1
jmp 0x40235c
mov eax, dword [esp + 4]
mov ecx, dword [eax]
add ecx, 4
mov edx, 0x4053b7
call sym._msi_strequal
test eax, eax
je 0x402365
mov dword [esp + 0x10], 0x85
jmp 0x40235c
mov eax, dword [esp + 4]
mov edx, dword [eax]
lea ecx, [esp + 0x30]
call sym._StringListAppend
mov esi, dword [esp + 8]
jmp 0x401458
mov eax, dword [esp + 4]
mov ecx, dword [eax]
add ecx, 4
mov edx, 0x40547e
call sym._msi_strequal
test eax, eax
je 0x402386
mov dword [esp + 0x10], 0x82
jmp 0x40235c
mov esi, dword [esp + 4]
mov ecx, dword [esi]
add ecx, 4
mov edx, 0x405481
call sym._msi_strprefix
mov edi, dword [esi]
test eax, eax
je 0x402441
cmp word [edi + 6], 0
je 0x40246c
add edi, 6
mov dword [esp + 0x10], 3
jmp 0x4023ca
or dword [esp + 0x10], 0x20
cmp word [edi + 2], 0
lea edi, [edi + 2]
je 0x40235c
mov ecx, edi
mov edx, 0x405483
call sym._msi_strprefix
mov ecx, dword [esp + 0x10]
mov esi, ecx
or esi, 0x80
test eax, eax
cmove esi, ecx
mov ecx, edi
mov edx, 0x405485
call sym._msi_strprefix
mov ecx, esi
or ecx, 0x40
test eax, eax
cmove ecx, esi
mov dword [esp + 0x10], ecx
mov ecx, edi
mov edx, 0x405487
call sym._msi_strprefix
test eax, eax
je 0x4023c0
test byte [section..data], 1
je 0x4023bb
sub esp, 0x10
mov dword [esp + 0xc], 0x405489
mov dword [esp + 8], str.WinMain
mov dword [esp], 0
call sym._wine_dbg_log
add esp, 0x10
jmp 0x4023bb
add edi, 4
mov ecx, edi
call sym._wine_dbgstr_wn
mov esi, eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push esi
push str.Unknown_option___s__for_UI_level_n
push eax
call sym._fprintf
add esp, 0xc
jmp 0x40235c
mov dword [esp + 0x10], 3
jmp 0x40235c
mov ebx, dword [esp + 0x30]
push 0
push dword [esp + 0x14]
call sub.msi.dll_MsiSetInternalUI
test ebx, ebx
je 0x4025fd
mov eax, 1
mov ecx, ebx
nop word [eax + eax]
mov edx, 0xfffffffe
nop word cs:[eax + eax]
cmp word [ecx + edx + 6], 0
lea edx, [edx + 2]
jne 0x4024b0
sar edx, 1
add eax, edx
add eax, 3
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4024a0
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 + 0xc], eax
jmp 0x4024fc
mov ecx, edi
mov ebx, dword [ebx]
test ebx, ebx
je 0x4025ba
lea eax, [ebx + 4]
push 0x3d
mov dword [esp + 8], eax
push eax
mov edi, ecx
call ecx
add esp, 8
test eax, eax
je 0x4024f0
mov esi, eax
mov dword [esp + 0x4c], ebx
mov ebx, eax
mov ecx, dword [esp + 4]
sub ebx, ecx
mov edi, dword [esp + 0xc]
lea eax, [edi + 2]
mov word [edi], 0x20
push ebx
push ecx
push eax
call sub.ucrtbase.dll_memcpy
add esp, 0xc
lea eax, [edi + ebx]
add eax, 4
mov dword [esp + 0x10], eax
mov word [edi + ebx + 2], 0x3d
add esi, 2
push 0x20
push esi
call dword [sym.imp.ucrtbase.dll_wcschr]
add esp, 8
test eax, eax
mov dword [esp + 4], eax
je 0x402570
mov edi, dword [esp + 0x10]
mov word [edi], 0x22
add edi, 2
jmp 0x402574
mov edi, dword [esp + 0x10]
mov ebx, 0xfffffffe
nop dword [eax]
cmp word [esi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x402580
push ebx
push esi
push edi
call sub.ucrtbase.dll_memcpy
add esp, 0xc
add edi, ebx
cmp dword [esp + 4], 0
je 0x4025a7
mov word [edi], 0x22
add edi, 2
mov dword [esp + 0xc], edi
mov ebx, dword [esp + 0x4c]
mov ecx, dword [sym.imp.ucrtbase.dll_wcschr]
jmp 0x4024f2
mov eax, dword [esp + 0xc]
mov word [eax], 0
test byte [section..data], 8
je 0x402605
mov ecx, dword [esp + 8]
call sym._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 0x402605
mov dword [esp + 8], 0
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x58], 0
setne al
cmp dword [esp + 0x54], 0
setne cl
test al, cl
jne 0x40268b
cmp dword [esp + 0x2c], 0
je 0x40268b
xor eax, eax
mov edi, dword [esp + 0x14]
nop word [eax + eax]
cmp word [edi + eax], 0
lea eax, [eax + 2]
jne 0x402630
cmp eax, 0x4e
jne 0x402656
lea eax, [esp + 0x9c]
push eax
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
je 0x40287e
push dword [esp + 8]
push edi
call sub.msi.dll_MsiInstallProductW
mov esi, eax
cmp eax, 2
jne 0x401174
mov ecx, edi
call sym._get_path_with_extension
test eax, eax
je 0x402830
mov edi, eax
push dword [esp + 8]
push eax
call sub.msi.dll_MsiInstallProductW
jmp 0x40281f
cmp dword [esp + 0x8c], 0
je 0x402707
xor eax, eax
mov edi, dword [esp + 0x14]
nop dword [eax + eax]
cmp word [edi + eax], 0
lea eax, [eax + 2]
jne 0x4026a0
cmp eax, 0x4e
jne 0x4027f2
lea eax, [esp + 0x9c]
push eax
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
mov eax, dword [esp + 0x20]
jne 0x4027f6
mov esi, 1
test byte [section..data], 1
je 0x401174
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
add esp, 0x10
jmp 0x401174
cmp dword [esp + 0x40], 0
je 0x402893
mov esi, dword [esp + 0x30]
test esi, esi
je 0x402913
mov dword [esp + 0x24], edi
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 0x402740
sar edx, 1
add eax, edx
inc eax
mov ecx, dword [ecx]
test ecx, ecx
jne 0x402730
add eax, eax
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, eax
nop dword [eax + eax]
lea edi, [esi + 4]
mov edx, 0xfffffffe
nop dword [eax + eax]
cmp word [esi + edx + 6], 0
lea edx, [edx + 2]
jne 0x402780
mov eax, edx
sar eax, 1
cmp edx, 3
mov dword [esp + 4], eax
jb 0x4027c0
mov edx, eax
mov ebx, ecx
nop dword [eax]
movzx eax, word [edi]
test ax, ax
je 0x4027c6
dec edx
add edi, 2
mov word [ebx], ax
add ebx, 2
cmp edx, 1
ja 0x4027a0
jmp 0x4027c6
mov ebx, ecx
test edx, edx
je 0x4027cb
mov word [ebx], 0
mov eax, dword [esp + 4]
lea ecx, [ecx + eax*2]
cmp dword [esi], 0
je 0x4027e5
mov word [ecx], 0x3b
add ecx, 2
mov esi, dword [esi]
test esi, esi
jne 0x402770
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
jmp 0x402920
mov eax, dword [esp + 0x20]
push eax
push edi
call sub.msi.dll_MsiReinstallProductW
mov esi, eax
cmp eax, 2
jne 0x401174
mov ecx, edi
call sym._get_path_with_extension
test eax, eax
je 0x402830
mov edi, eax
push dword [esp + 0x20]
push eax
call sub.msi.dll_MsiReinstallProductW
mov esi, eax
push edi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
jmp 0x401174
mov esi, 2
jmp 0x401174
mov esi, 1
test byte [section..data], 2
je 0x401174
mov ecx, edi
call sym._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
add esp, 0x14
jmp 0x401174
push dword [esp + 8]
push 5
push 0
push edi
call sub.msi.dll_MsiConfigureProductExW
mov esi, eax
jmp 0x401174
cmp dword [esp + 0x54], 0
je 0x4029a7
push dword [esp + 8]
push dword [esp + 0x5c]
push dword [esp + 0x1c]
push dword [esp + 0x94]
call sub.msi.dll_MsiApplyPatchW
mov esi, eax
jmp 0x401174
test byte [section..data], 2
je 0x4028fd
mov eax, dword fs:[0x18]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
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 dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
mov esi, dword [eax + 0x34]
jmp 0x401174
push 2
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov ecx, eax
mov word [ecx], 0
movzx ecx, di
push ecx
push eax
push dword [esp + 0x4c]
push dword [esp + 0x20]
call sub.msi.dll_MsiAdvertiseProductW
mov esi, eax
jmp 0x401174
test byte [section..data], 2
je 0x40297e
mov eax, dword fs:[0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
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 dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x34]
jmp 0x401174
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
jmp 0x401174
cmp dword [esp + 0x84], 0
je 0x4029c1
mov ecx, dword [esp + 0x3c]
call sym._DoDllRegisterServer
mov esi, eax
jmp 0x401174
cmp dword [esp + 0x80], 0
je 0x4029db
mov ecx, dword [esp + 0x3c]
call sym._DoDllUnregisterServer
mov esi, eax
jmp 0x401174
cmp dword [esp + 0x90], 0
je 0x4029f1
call sym._DoRegServer
mov esi, eax
jmp 0x401174
cmp dword [esp + 0x48], 0
je 0x402a04
call sym._DoUnregServer
mov esi, eax
jmp 0x401174
cmp dword [esp + 0x7c], 0
je 0x402a17
call sym._DoService
mov esi, eax
jmp 0x401174
cmp dword [esp + 0x50], 0
je 0x402a49
mov esi, 1
test byte [section..data], 1
je 0x401174
sub esp, 0x10
mov dword [esp + 0xc], str.Unknown_function__ignoring_n
jmp 0x4026eb
push 0
push 5
call sub.msi.dll_MsiSetInternalUI
mov ecx, 1
call sym._ShowUsage
test byte [section..data], 2
je 0x402a7e
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
mov esi, eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push dword [esp + 0x38]
push dword [esp + 0x1c]
push esi
push 0x405445
push eax
call sym._fprintf
add esp, 0x14
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
xor ecx, ecx
call sym._ShowUsage