Function at 0x14000ab50
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0xfc0
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000fc00
sub rsp, rax
mov qword [rsp + 0x38], 0
mov rdi, rdx
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
call dbg.wchars_to_utf8_chars
mov rcx, rax
mov rsi, rax
call sym.wine_get_dos_file_name
mov rbx, rax
test rax, rax
je 0x14000b08c
lea rax, [rsp + 0x38]
xor edx, edx
mov r9, qword [0x14001a220]
mov rcx, qword [0x14001a1d0]
mov qword [rsp + 0x20], rax
mov r8d, 1
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14000af30
mov rcx, qword [rsp + 0x38]
mov rdx, qword [0x14001a1f0]
lea r8, [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x14000af90
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
js 0x14000ade0
lea r12, [rsp + 0x190]
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x7c0]
mov rdx, r12
lea r13, [rsp + 0x3a0]
lea r14, [rsp + 0x5b0]
call sym.get_cmdline.constprop.0.isra.0
mov rbp, qword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov rdx, r13
mov rcx, r12
mov r8d, 0x104
call rbp
mov rcx, qword [rsp + 0x38]
xor eax, eax
lea r9, [rsp + 0x34]
mov word [rsp + 0x190], ax
mov r8d, 0x104
mov rdx, r12
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
mov r8d, 0x104
mov rdx, r14
mov rcx, r12
call rbp
lea rbp, [rsp + 0x60]
cmp word [rsp + 0x3a0], 0
jne 0x14000aed0
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], 0
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000aed0
mov rdx, r13
call qword [sym.imp.shell32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x14000aed0
test byte [0x140010000], 8
je 0x14000aed0
mov rax, r13
shr rax, 0x10
je 0x14000b052
mov rdx, 0xffffffffffffffff
mov rcx, r13
call qword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov r8d, eax
lea rax, str._invalid_
test r8d, r8d
jne 0x14000aea5
movzx eax, word [rsp + 0x3a0]
test ax, ax
je 0x14000b072
xor edx, edx
nop dword [rax]
mov ecx, edx
add rdx, 1
cmp word [r13 + rdx*2], 0
jne 0x14000ad28
mov edx, 0x224c
mov r8, r13
lea r11, str.0123456789abcdefwrite_freedesktop_mime_type_entry
mov word [rsp + 0x60], dx
lea r10, [rsp + 0x182]
lea rdx, [rsp + 0x62]
jmp 0x14000ada4
cmp ax, 9
je 0x14000afc0
cmp ax, 0xa
jne 0x14000afe3
mov eax, 0x6e5c
add rdx, 2
mov word [rdx - 2], ax
nop dword [rax]
lea r9d, [rcx - 1]
test ecx, ecx
jle 0x14000ae78
cmp rdx, r10
ja 0x14000ae78
movzx eax, word [r8]
mov ecx, r9d
add r8, 2
cmp ax, 0xd
je 0x14000afaa
jbe 0x14000ad60
cmp ax, 0x22
je 0x14000b040
cmp ax, 0x5c
jne 0x14000afd4
mov r9d, 0x5c5c
add rdx, 2
mov word [rdx - 2], r9w
jmp 0x14000ad88
test byte [0x140010000], 2
jne 0x14000af80
xor ebp, ebp
mov rdi, qword gs:[0x30]
mov rax, qword [rdi + 0x60]
mov r8, rsi
xor edx, edx
mov rsi, qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [rax + 0x30]
call rsi
mov rax, qword [rdi + 0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x30]
call rsi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000ae2d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000ae3d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000ae4d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov r8, rbp
xor edx, edx
mov rcx, qword [rax + 0x30]
call rsi
nop
add rsp, 0xfc0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov byte [rdx], 0x22
test r9d, r9d
jle 0x14000b083
mov ecx, 0x2e2e
mov byte [rdx + 3], 0x2e
lea rax, [rdx + 4]
mov word [rdx + 1], cx
mov byte [rax], 0
lea rbp, [rsp + 0x60]
mov rcx, rbp
call dbg.__wine_dbg_strdup
mov qword [rsp + 0x20], rax
lea r9, str.pidl_path__:__s_n
lea r8, global___func__.0
mov ecx, 3
lea rdx, [0x140010000]
call sym.wine_dbg_log.constprop.0
nop dword [rax]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rbp
mov edx, dword [rsp + 0x34]
lea r9, [rsp + 0x48]
cmp word [rsp + 0x5b0], 0
mov qword [rsp + 0x20], rax
mov r8d, 0
jne 0x14000af68
mov rcx, r13
call dbg.open_icon
mov rbp, qword [rsp + 0x50]
test eax, eax
js 0x14000adef
mov r8d, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
mov r9, rdi
mov rdx, rbp
call sym.write_native_icon.isra.0
jmp 0x14000adef
test byte [0x140010000], 2
je 0x14000aded
mov dword [rsp + 0x20], eax
lea r9, str.could_not_create_IShellLinkW__error_0x_08lX_n
lea r8, global___func__.0
lea rdx, [0x140010000]
mov ecx, 1
call sym.wine_dbg_log.constprop.0
jmp 0x14000aded
mov rcx, r14
call dbg.open_icon
mov rbp, qword [rsp + 0x50]
test eax, eax
js 0x14000adef
jmp 0x14000af0e
mov dword [rsp + 0x20], eax
lea r9, str.could_not_read_.lnk__error_0x_08lX_n
jmp 0x14000af48
test byte [0x140010000], 2
je 0x14000aded
mov dword [rsp + 0x20], eax
lea r9, str.could_not_query_IPersistFile__error_0x_08lX_n
jmp 0x14000af48
mov eax, 0x725c
add rdx, 2
mov word [rdx - 2], ax
jmp 0x14000ad88
mov r12d, 0x745c
add rdx, 2
mov word [rdx - 2], r12w
jmp 0x14000ad88
lea r9d, [rax - 0x20]
cmp r9w, 0x5e
jbe 0x14000b067
mov r9d, eax
mov byte [rdx], 0x5c
add rdx, 5
shr r9w, 0xc
and r9d, 0xf
movzx r9d, byte [r11 + r9]
mov byte [rdx - 4], r9b
mov r9d, eax
shr r9w, 8
and r9d, 0xf
movzx r9d, byte [r11 + r9]
mov byte [rdx - 3], r9b
mov r9d, eax
and eax, 0xf
shr r9w, 4
movzx eax, byte [r11 + rax]
and r9d, 0xf
movzx r9d, byte [r11 + r9]
mov byte [rdx - 1], al
mov byte [rdx - 2], r9b
jmp 0x14000ad88
mov ebp, 0x225c
add rdx, 2
mov word [rdx - 2], bp
jmp 0x14000ad88
movzx edx, r13w
lea rcx, str._04x
call sym.wine_dbg_sprintf.constprop.0
jmp 0x14000aea5
mov byte [rdx], al
add rdx, 1
jmp 0x14000ad88
mov word [rsp + 0x60], 0x224c
lea rdx, [rsp + 0x62]
mov byte [rsp + 0x62], 0x22
lea rax, [rdx + 1]
jmp 0x14000ae95
test byte [0x140010000], 2
je 0x14000aded
mov qword [rsp + 0x20], rsi
lea r9, str.could_not_convert__s_to_DOS_path_n
lea r8, global___func__.0
mov ecx, 1
lea rdx, [0x140010000]
call sym.wine_dbg_log.constprop.0
jmp 0x14000aded