Function at 0x408a50
Capabilities:
Get process heap flags
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xf7c
mov dword [ebp - 0xf6c], edx
mov dword [ebp - 0xf68], 0
mov dword [ebp - 0xf64], 0
mov dword [ebp - 0xf5c], 0
mov dword [ebp - 0xf58], 0
call dbg.wchars_to_utf8_chars
mov dword [esp], eax
mov edi, eax
call sym._wine_get_dos_file_name
mov ebx, eax
test eax, eax
je 0x408db1
lea eax, [ebp - 0xf68]
mov dword [esp + 0xc], 0x4167c8
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x4162f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x408ea0
mov eax, dword [ebp - 0xf68]
lea ecx, [ebp - 0xf64]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x417d98
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
js 0x408e40
mov eax, dword [ebp - 0xf64]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
test eax, eax
js 0x408ee0
lea esi, [ebp - 0xe24]
mov eax, dword [ebp - 0xf68]
lea ecx, [ebp - 0x80c]
mov edx, esi
call sym._get_cmdline.constprop.12
lea eax, [ebp - 0xc1c]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], 0x104
mov dword [ebp - 0xf70], eax
call eax
mov eax, dword [ebp - 0xf68]
xor ecx, ecx
mov word [ebp - 0xe24], cx
sub esp, 0xc
lea ecx, [ebp - 0xf60]
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], 0x104
mov dword [esp], eax
call dword [edx + 0x40]
lea ecx, [ebp - 0xa14]
mov eax, dword [ebp - 0xf70]
sub esp, 0x10
mov dword [esp], esi
lea esi, [ebp - 0xf50]
mov dword [esp + 8], 0x104
mov dword [esp + 4], ecx
call eax
sub esp, 0xc
cmp word [ebp - 0xc1c], 0
jne 0x408d50
mov eax, dword [ebp - 0xf68]
lea ecx, [ebp - 0xf54]
mov dword [ebp - 0xf54], 0
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0xf54]
sub esp, 8
test eax, eax
je 0x408d50
lea ecx, [ebp - 0xc1c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.shell32.dll_SHGetPathFromIDListW]
sub esp, 8
test eax, eax
je 0x408d50
test byte [0x40d000], 8
je 0x408d50
lea eax, [ebp - 0xc1c]
shr eax, 0x10
je 0x409016
lea eax, [ebp - 0xc1c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x40904a
cmp word [ebp - 0xc1c], 0
je 0x408c7e
lea esi, [esi]
nop
add eax, 1
cmp word [ebp + eax*2 - 0xc1c], 0
jne 0x408c70
mov dword [ebp - 0xf70], edi
mov edx, 0x224c
lea esi, [ebp - 0xc1c]
mov dword [ebp - 0xf74], ebx
mov word [ebp - 0xf50], dx
lea edx, [ebp - 0xf4e]
lea ecx, [eax - 1]
test eax, eax
jle 0x408cee
lea eax, [ebp - 0xe2e]
cmp edx, eax
ja 0x408cee
add esi, 2
movzx eax, word [esi - 2]
cmp ax, 0xd
je 0x409003
ja 0x408f50
cmp ax, 9
je 0x408fd3
cmp ax, 0xa
jne 0x408f73
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
mov eax, ecx
jmp 0x408ca2
mov edi, dword [ebp - 0xf70]
mov ebx, dword [ebp - 0xf74]
mov byte [edx], 0x22
lea eax, [edx + 1]
test ecx, ecx
jle 0x408d14
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
lea esi, [ebp - 0xf50]
mov byte [eax], 0
mov dword [esp], esi
call dbg.__wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.pidl_path__:__s_n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.18
lea esi, [esi]
lea eax, [ebp - 0xf58]
cmp word [ebp - 0xa14], 0
mov edx, dword [ebp - 0xf60]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
lea eax, [ebp - 0xf5c]
mov ecx, 0
mov dword [esp], eax
je 0x408e80
lea eax, [ebp - 0xa14]
call dbg.open_icon
test eax, eax
js 0x408dbe
mov eax, dword [ebp - 0xf6c]
mov ecx, dword [ebp - 0xf50]
mov edx, dword [ebp - 0xf58]
mov dword [esp], eax
mov eax, dword [ebp - 0xf5c]
call dbg.write_native_icon
jmp 0x408dbe
test byte [0x40d000], 2
jne 0x408f20
mov dword [esp], edi
mov esi, dword [sym.imp.ucrtbase.dll_free]
call esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0xf68]
sub esp, 0xc
test eax, eax
je 0x408e02
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0xf64]
test eax, eax
je 0x408e17
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0xf5c]
test eax, eax
je 0x408e2c
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0xf58]
mov dword [esp], eax
call esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x40d000], 2
je 0x408dbe
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.could_not_query_IPersistFile__error_0x_08lX_n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.18
jmp 0x408dbe
lea eax, [ebp - 0xc1c]
call dbg.open_icon
test eax, eax
js 0x408dbe
jmp 0x408d8f
test byte [0x40d000], 2
je 0x408dbe
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.could_not_create_IShellLinkW__error_0x_08lX_n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.18
jmp 0x408dbe
test byte [0x40d000], 2
je 0x408dbe
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.could_not_read_.lnk__error_0x_08lX_n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.18
jmp 0x408dbe
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.could_not_convert__s_to_DOS_path_n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.18
jmp 0x408dbe
cmp ax, 0x22
je 0x408ff0
cmp ax, 0x5c
jne 0x408f73
mov ebx, 0x5c5c
add edx, 2
mov eax, ecx
mov word [edx - 2], bx
jmp 0x408ca2
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x40903e
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [edx - 1], al
mov eax, ecx
mov byte [edx - 2], bl
jmp 0x408ca2
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
mov eax, ecx
jmp 0x408ca2
mov edi, 0x225c
add edx, 2
mov eax, ecx
mov word [edx - 2], di
jmp 0x408ca2
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
mov eax, ecx
jmp 0x408ca2
lea eax, [ebp - 0xc1c]
mov dword [esp], str._04x
mov dword [ebp - 0xf70], eax
movzx eax, word [ebp - 0xf70]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.16
jmp 0x408d25
mov byte [edx], al
add edx, 1
mov eax, ecx
jmp 0x408ca2
mov eax, str._invalid_
lea esi, [ebp - 0xf50]
jmp 0x408d25