Function at 0x4019f0
Capabilities:
Accept command line arguments
Check if process is running under wine
Terminate process

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x4c
mov dword [esp + 0x20], eax
mov eax, edx
call fcn.00401000
mov dword [esp + 0x28], eax
test eax, eax
je 0x401bae
cmp word [esi], 0
je 0x401cce
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp + 0x2c], ebx
lea esi, [esi]
lea esi, [esi]
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.shell32.dll_CommandLineToArgvW]
sub esp, 8
mov esi, eax
mov ecx, dword [esp + 0x3c]
lea eax, [ecx*4 + 8]
mov dword [esp + 0x24], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [esp + 0x24]
test eax, eax
mov ebx, eax
je 0x401cca
test ecx, ecx
jle 0x401a96
xor ebp, ebp
lea esi, [esi]
lea esi, [esi]
mov eax, dword [esi + ebp*4]
call fcn.00401000
mov ecx, dword [esp + 0x3c]
mov dword [ebx + ebp*4], eax
add ebp, 1
cmp ecx, ebp
jg 0x401a80
mov eax, dword [esp + 0x28]
mov dword [ebx + ecx*4 + 4], 0
mov dword [ebx + ecx*4], eax
movzx eax, byte [section..data]
test al, 8
jne 0x401bf0
mov edx, dword [esp + 0x3c]
test edx, edx
js 0x401b1d
xor esi, esi
jmp 0x401ac9
add esi, 1
cmp dword [esp + 0x3c], esi
jl 0x401b15
mov edx, eax
and edx, 8
je 0x401ac0
mov eax, dword [ebx + esi*4]
add esi, 1
call fcn.00401370
mov dword [esp + 0xc], 0x405121
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x405440
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call fcn.004015e0
movzx eax, byte [section..data]
mov edx, eax
and edx, 8
cmp dword [esp + 0x3c], esi
jge 0x401ac9
test dl, dl
jne 0x401bc0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.ntdll.dll___wine_unix_spawnvp
sub esp, 8
test eax, eax
je 0x401cd9
mov ecx, dword [esp + 0x3c]
xor esi, esi
mov ebp, edi
test ecx, ecx
jle 0x401b59
lea esi, [esi]
mov eax, dword [ebx + esi*4]
add esi, 1
mov dword [esp], eax
call edi
cmp dword [esp + 0x3c], esi
jg 0x401b48
mov dword [esp], ebx
call ebp
mov ecx, dword [esp + 0x20]
cmp word [ecx], 0
mov eax, ecx
je 0x401c30
nop
add eax, 2
cmp word [eax], 0
jne 0x401b70
mov ebx, dword [esp + 0x20]
sub eax, ebx
add eax, 2
add dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
cmp word [ecx], 0
jne 0x401a30
mov ebx, dword [esp + 0x2c]
test byte [section..data], 2
jne 0x401c51
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call ebp
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x405125
mov dword [esp + 8], 0x405440
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call fcn.004015e0
jmp 0x401b1d
mov dword [esp + 0xc], str.Trying
mov dword [esp + 8], 0x405440
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call fcn.004015e0
mov esi, dword [esp + 0x3c]
test esi, esi
js 0x401c3a
movzx eax, byte [section..data]
jmp 0x401abc
mov eax, 2
jmp 0x401b82
movzx edx, byte [section..data]
and edx, 8
test dl, dl
je 0x401b1d
jmp 0x401bc0
test ebx, ebx
je 0x401cc3
mov eax, ebx
shr eax, 0x10
test eax, eax
je 0x401cb1
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 0x401c84
mov eax, ebx
call fcn.00401160
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], 0x404000
mov dword [esp], 1
call fcn.004015e0
jmp 0x401ba5
mov dword [esp + 4], ebx
mov dword [esp], str._04x
call fcn.00401310
jmp 0x401c84
mov eax, str._null_
jmp 0x401c84
mov ebx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.ucrtbase.dll_free]
jmp 0x401b98
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_ExitProcess]