Function at 0x4019e0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x4c
mov dword [ebp - 0x2c], eax
mov eax, edx
call dbg.strdup_unixcp
mov dword [ebp - 0x34], eax
test eax, eax
je 0x401b7b
cmp word [edi], 0
je 0x401c98
mov dword [ebp - 0x38], ebx
nop
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._CommandLineToArgvW_8
mov ecx, dword [ebp - 0x1c]
sub esp, 8
mov esi, eax
lea eax, [ecx*4 + 8]
mov dword [ebp - 0x30], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x30]
test eax, eax
mov edi, eax
je 0x401cb0
test ecx, ecx
jle 0x401a65
xor ebx, ebx
mov eax, dword [esi + ebx*4]
call dbg.strdup_unixcp
mov ecx, dword [ebp - 0x1c]
mov dword [edi + ebx*4], eax
add ebx, 1
cmp ecx, ebx
jg 0x401a50
mov eax, dword [ebp - 0x34]
mov dword [edi + ecx*4 + 4], 0
mov dword [edi + ecx*4], eax
movzx eax, byte [global___dbch]
test al, 8
jne 0x401bc0
mov edx, dword [ebp - 0x1c]
test edx, edx
js 0x401aeb
xor ebx, ebx
jmp 0x401a98
add ebx, 1
cmp dword [ebp - 0x1c], ebx
jl 0x401ae3
mov ecx, eax
and ecx, 8
je 0x401a90
mov eax, dword [edi + ebx*4]
add ebx, 1
call sym._wine_dbgstr_an.constprop.0
mov dword [esp + 0xc], 0x405120
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x405440
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [global___dbch]
mov ecx, eax
and ecx, 8
cmp dword [ebp - 0x1c], ebx
jge 0x401a98
test cl, cl
jne 0x401b90
mov dword [esp + 4], 0
mov dword [esp], edi
call sym.___wine_unix_spawnvp_8
sub esp, 8
test eax, eax
je 0x401ca3
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
xor esi, esi
test ecx, ecx
jle 0x401b2c
lea esi, [esi]
mov eax, dword [edi + esi*4]
add esi, 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
cmp dword [ebp - 0x1c], esi
jg 0x401b18
mov dword [esp], edi
call ebx
mov edx, dword [ebp - 0x2c]
cmp word [edx], 0
mov eax, edx
je 0x401c00
add eax, 2
cmp word [eax], 0
jne 0x401b40
mov edx, dword [ebp - 0x2c]
sub eax, edx
add eax, 2
add dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
cmp word [edx], 0
jne 0x401a10
mov edi, ebx
mov ebx, dword [ebp - 0x38]
test byte [0x404000], 2
jne 0x401c21
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call edi
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x405124
mov dword [esp + 8], 0x405440
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401aeb
mov dword [esp + 0xc], str.Trying
mov dword [esp + 8], 0x405440
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
js 0x401c0a
movzx eax, byte [global___dbch]
jmp 0x401a89
mov eax, 2
jmp 0x401b51
movzx ecx, byte [global___dbch]
and ecx, 8
test cl, cl
je 0x401aeb
jmp 0x401b90
test ebx, ebx
je 0x401c91
mov eax, ebx
shr eax, 0x10
je 0x401c7f
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x401c52
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.could_not_find_a_suitable_app_to_open__s_n
mov dword [esp + 8], 0x405440
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401b73
mov dword [esp + 4], ebx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401c52
mov eax, str._null_
jmp 0x401c52
mov edi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x401b66
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ebx, dword [ebp - 0x38]
mov edi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x401b66