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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rcx, rdx
mov qword [rsp + 0xb8], rdx
call sym.strdup_unixcp
mov qword [rsp + 0x38], rax
test rax, rax
je 0x401be9
lea rcx, str.ORIG_LD_LIBRARY_PATH
call qword [sym.imp.ucrtbase.dll_getenv]
mov rdx, rax
test rax, rax
je 0x401a40
lea rcx, str.LD_LIBRARY_PATH
call sym.__wine_set_unix_env
xor edx, edx
lea rcx, str.ORIG_LD_LIBRARY_PATH
call sym.__wine_set_unix_env
mov rbx, qword [sym.imp.ucrtbase.dll_free]
lea rax, [rsp + 0x5c]
cmp word [rsi], 0
lea rdi, section..data
mov qword [rsp + 0x40], rax
lea r14, [0x00405148]
mov qword [rsp + 0x48], rbx
je 0x401cb8
nop
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call sym.CommandLineToArgvW
mov rbp, rax
mov eax, dword [rsp + 0x5c]
lea ecx, [rax + 2]
movsxd rcx, ecx
shl rcx, 3
call qword [sym.imp.ucrtbase.dll_malloc]
mov r12, rax
test rax, rax
je 0x401cc8
movsxd rax, dword [rsp + 0x5c]
test eax, eax
jle 0x401acc
xor r13d, r13d
nop dword [rax]
mov rcx, qword [rbp + r13*8]
call sym.strdup_unixcp
mov qword [r12 + r13*8], rax
movsxd rax, dword [rsp + 0x5c]
add r13, 1
cmp eax, r13d
jg 0x401ab0
mov qword [r12 + rax*8 + 8], 0
mov rdx, qword [rsp + 0x38]
mov qword [r12 + rax*8], rdx
movzx eax, byte [rdi]
test al, 8
jne 0x401c28
mov r8d, dword [rsp + 0x5c]
test r8d, r8d
js 0x401b5e
xor r15d, r15d
lea r13, [0x00405470]
lea rbp, section..data
jmp 0x401b1b
add r15, 1
cmp dword [rsp + 0x5c], r15d
jl 0x401b56
mov edx, eax
and edx, 8
je 0x401b10
mov rcx, qword [r12 + r15*8]
add r15, 1
call sym.wine_dbgstr_an.constprop.0
mov rdx, rbp
mov r9, r14
mov r8, r13
mov qword [rsp + 0x20], rax
mov ecx, 3
call sym.wine_dbg_log.constprop.0
movzx eax, byte [rdi]
mov edx, eax
and edx, 8
cmp dword [rsp + 0x5c], r15d
jge 0x401b1b
test dl, dl
jne 0x401c00
xor edx, edx
mov rcx, r12
call sym.__wine_unix_spawnvp
test eax, eax
je 0x401cc0
mov eax, dword [rsp + 0x5c]
xor r13d, r13d
mov rbp, rbx
test eax, eax
jle 0x401c78
nop word [rax + rax]
mov rcx, qword [r12 + r13*8]
add r13, 1
call rbx
cmp dword [rsp + 0x5c], r13d
jg 0x401b88
mov rcx, r12
call rbp
cmp word [rsi], 0
mov rax, rsi
je 0x401c68
nop dword [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x401bb0
sub rax, rsi
sar rax, 1
add eax, 1
cdqe
add rax, rax
add rsi, rax
cmp word [rsi], 0
jne 0x401a70
test byte [section..data], 2
jne 0x401c82
mov rcx, qword [rsp + 0x38]
call rbp
mov eax, 1
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r9, [0x0040514c]
lea r8, [0x00405470]
mov ecx, 3
lea rdx, section..data
call sym.wine_dbg_log.constprop.0
jmp 0x401b5e
lea rdx, section..data
mov ecx, 3
lea r9, str.Trying
lea r8, [0x00405470]
call sym.wine_dbg_log.constprop.0
movzx eax, byte [rdi]
mov ecx, dword [rsp + 0x5c]
mov edx, eax
and edx, 8
test ecx, ecx
jns 0x401af3
test dl, dl
je 0x401b5e
jmp 0x401c00
mov eax, 2
jmp 0x401bc8
mov rbp, qword [rsp + 0x48]
jmp 0x401b99
mov rcx, qword [rsp + 0xb8]
call sym.wine_dbgstr_wn.constprop.0
lea r9, str.could_not_find_a_suitable_app_to_open__s_n
mov ecx, 1
lea r8, [0x00405470]
mov qword [rsp + 0x20], rax
lea rdx, section..data
call sym.wine_dbg_log.constprop.0
jmp 0x401be2
mov rbp, rbx
jmp 0x401bd5
xor ecx, ecx
call qword [sym.imp.kernel32.dll_ExitProcess]
mov rbp, qword [sym.imp.ucrtbase.dll_free]
jmp 0x401bd5