Function at 0x4028f0
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0x20], edx
call sym._strdup_unixcp
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x402ad4
mov dword [esp], str.ORIG_LD_LIBRARY_PATH
call dword [sym.imp.ucrtbase.dll_getenv]
test eax, eax
je 0x40294c
mov ebx, dword [sym.imp.ntdll.dll___wine_set_unix_env]
mov dword [esp + 4], eax
mov dword [esp], str.LD_LIBRARY_PATH
call ebx
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], str.ORIG_LD_LIBRARY_PATH
call ebx
sub esp, 8
mov eax, dword [ebp - 0x14]
cmp word [eax], 0
je 0x402be9
lea esi, [esi]
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.shell32.dll_CommandLineToArgvW]
mov ecx, dword [ebp - 0x10]
sub esp, 8
mov esi, eax
lea eax, [ecx*4 + 8]
mov dword [ebp - 0x18], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x18]
test eax, eax
mov ebx, eax
je 0x402be9
test ecx, ecx
jle 0x4029bb
xor edi, edi
lea esi, [esi]
mov eax, dword [esi + edi*4]
call sym._strdup_unixcp
mov ecx, dword [ebp - 0x10]
mov dword [ebx + edi*4], eax
inc edi
cmp ecx, edi
jg 0x4029a8
mov eax, dword [ebp - 0x1c]
mov dword [ebx + ecx*4 + 4], 0
mov dword [ebx + ecx*4], eax
movzx eax, byte [0x404030]
test al, 8
jne 0x402b18
mov esi, dword [ebp - 0x10]
test esi, esi
js 0x402a3f
xor esi, esi
jmp 0x4029ee
inc esi
cmp dword [ebp - 0x10], esi
jl 0x402a37
mov edx, eax
and edx, 8
je 0x4029e8
mov eax, dword [ebx + esi*4]
inc esi
call sym._wine_dbgstr_an.constprop.0
mov dword [esp + 0xc], 0x405146
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.launch_app
mov dword [esp + 4], 0x404030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x404030]
mov edx, eax
and edx, 8
cmp dword [ebp - 0x10], esi
jge 0x4029ee
test dl, dl
jne 0x402ae8
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.ntdll.dll___wine_unix_spawnvp]
sub esp, 8
test eax, eax
je 0x402bf4
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ucrtbase.dll_free]
xor esi, esi
test eax, eax
jle 0x402a82
lea esi, [esi]
mov eax, dword [ebx + esi*4]
inc esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
cmp dword [ebp - 0x10], esi
jg 0x402a70
mov dword [esp], ebx
call edi
mov ecx, dword [ebp - 0x14]
cmp word [ecx], 0
mov eax, ecx
je 0x402b60
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402aa0
sub eax, dword [ebp - 0x14]
add eax, 2
add dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp word [ecx], 0
jne 0x402960
test byte [0x404030], 2
jne 0x402b6a
mov eax, dword [ebp - 0x1c]
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], 0x40514a
mov dword [esp + 8], str.launch_app
mov dword [esp + 4], 0x404030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402a3f
mov dword [esp + 0xc], str.Trying
mov dword [esp + 8], str.launch_app
mov dword [esp + 4], 0x404030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x404030]
mov ecx, dword [ebp - 0x10]
mov edx, eax
and edx, 8
test ecx, ecx
jns 0x4029df
test dl, dl
je 0x402a3f
jmp 0x402ae8
mov eax, 2
jmp 0x402aaf
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x402be2
shr eax, 0x10
je 0x402bcc
mov ebx, dword [ebp - 0x20]
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 0x402b9f
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], str.launch_app
mov dword [esp + 4], 0x404030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402acc
movzx eax, word [ebp - 0x20]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402b9f
mov eax, str._null_
jmp 0x402b9f
mov edi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x402abf
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_ExitProcess]