Function at 0x4073f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x30
mov word [edx], 0
mov word [ecx], 0
mov eax, dword [eax]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x104
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [eax + 0xc]
sub esp, 0x14
test eax, eax
jne 0x40744c
cmp word [ebx], 0
jne 0x4074e0
mov eax, dword [edi]
lea edx, [ebp - 0x18]
mov dword [esp + 4], 0x414564
mov dword [esp + 8], edx
mov dword [esp], edi
call dword [eax]
sub esp, 0xc
test eax, eax
js 0x407498
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0xa0000006
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0xc
test eax, eax
jns 0x4074a0
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x10]
mov dword [esp + 4], 0
mov dword [esp + 8], edi
add eax, 0x10c
mov dword [ebp - 0x10], 0
mov dword [esp], eax
call sym._CommandLineFromMsiDescriptor_12
sub esp, 0xc
test eax, eax
je 0x407500
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x40748a
mov eax, dword [edi]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], 0x400
call dword [eax + 0x28]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x407735
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
add eax, 0x10c
mov dword [esp], eax
call sym._CommandLineFromMsiDescriptor_12
sub esp, 0xc
mov edi, eax
test byte [section..data], 8
jne 0x4076b0
test edi, edi
jne 0x40762b
mov edi, dword [ebp - 0x20]
mov edx, ebx
movzx eax, word [edi]
test ax, ax
je 0x407725
cmp ax, 0x20
je 0x40772d
cmp ax, 9
je 0x40772d
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esi
mov esi, ebx
lea esi, [esi]
add edi, 2
cmp ax, 0x5c
je 0x407640
cmp ax, 0x22
je 0x407658
mov dword [ebp - 0x1c], 0
add edx, 2
mov word [edx - 2], ax
mov ecx, edx
lea eax, [edx - 2]
sub ecx, esi
cmp ecx, 0x208
cmove edx, eax
movzx eax, word [edi]
test ax, ax
je 0x4076a8
cmp ax, 9
sete bl
cmp ax, 0x20
sete cl
or bl, cl
je 0x407590
test byte [ebp - 0x24], 1
jne 0x407590
mov esi, dword [ebp - 0x28]
lea esi, [esi]
movzx eax, word [edi + 2]
add edi, 2
cmp ax, 9
je 0x4075f0
cmp ax, 0x20
je 0x4075f0
xor ecx, ecx
mov word [edx], cx
lea edx, [edi + 0x7fe]
jmp 0x407613
movzx eax, word [edi]
test ax, ax
je 0x407626
add edi, 2
add esi, 2
mov word [esi - 2], ax
cmp edx, edi
jne 0x407610
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x4074cd
mov eax, 0x5c
inc dword [ebp - 0x1c]
add edx, 2
mov word [edx - 2], ax
jmp 0x4075b5
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
shr eax, 0x1f
add eax, ebx
sar eax, 1
and ebx, 1
jne 0x407680
add eax, eax
xor dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], 0
sub edx, eax
jmp 0x4075b5
mov ecx, 0x7fffffff
mov ebx, 0x22
mov dword [ebp - 0x1c], 0
sub ecx, eax
lea eax, [edx + ecx*2]
mov word [eax], bx
lea edx, [eax + 2]
jmp 0x4075b5
mov esi, dword [ebp - 0x28]
jmp 0x407603
mov eax, dword [ebp - 0x20]
shr eax, 0x10
je 0x40770f
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x4076e2
mov eax, dword [ebp - 0x20]
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.______command____:__s_n
mov dword [esp + 8], str.get_cmdline
mov dword [esp + 4], 0x40c000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40754a
movzx eax, word [ebp - 0x20]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4076e2
mov edi, dword [ebp - 0x20]
jmp 0x407603
mov edi, dword [ebp - 0x20]
jmp 0x4075f0
test byte [section..data], 2
jne 0x40774b
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40773e