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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0xf98
call fcn.0040def8
sub esp, eax
mov eax, dword [esp + eax]
mov dword [ebp - 0xf7c], edx
mov dword [ebp - 0xf74], 0
mov dword [ebp - 0xf70], 0
mov dword [ebp - 0xf68], 0
mov dword [ebp - 0xf64], 0
call fcn.00401610
mov dword [esp], eax
mov edi, eax
call sub.kernel32.dll_wine_get_dos_file_name
mov ebx, eax
test eax, eax
je 0x409680
lea eax, [ebp - 0xf74]
mov dword [esp + 0xc], 0x415d68
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x415898
call sub.ole32.dll_CoCreateInstance
sub esp, 0x14
test eax, eax
js 0x4097c0
mov eax, dword [ebp - 0xf74]
lea ecx, [ebp - 0xf70]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x4172c8
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
js 0x409748
mov eax, dword [ebp - 0xf70]
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 0x4097e0
lea esi, [ebp - 0xe30]
mov eax, dword [ebp - 0xf74]
lea ecx, [ebp - 0x818]
mov edx, esi
call fcn.00404f00
lea eax, [ebp - 0xc28]
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 - 0xf80], eax
call eax
mov eax, dword [ebp - 0xf74]
xor edx, edx
lea ecx, [ebp - 0xf6c]
mov word [ebp - 0xe30], dx
sub esp, 0xc
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 - 0xa20]
mov eax, dword [ebp - 0xf80]
sub esp, 0x10
mov dword [esp], esi
lea esi, [ebp - 0xf5c]
mov dword [esp + 8], 0x104
mov dword [esp + 4], ecx
call eax
sub esp, 0xc
cmp word [ebp - 0xc28], 0
jne 0x409618
mov eax, dword [ebp - 0xf74]
lea ecx, [ebp - 0xf60]
mov dword [ebp - 0xf60], 0
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0xf60]
sub esp, 8
test eax, eax
je 0x409618
lea ecx, [ebp - 0xc28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.shell32.dll_SHGetPathFromIDListW
sub esp, 8
test eax, eax
je 0x409618
test byte [section..data], 8
je 0x409618
lea eax, [ebp - 0xc28]
shr eax, 0x10
je 0x409899
lea eax, [ebp - 0xc28]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x4098cb
movzx edx, word [ebp - 0xc28]
test dx, dx
je 0x4098db
lea esi, [esi]
mov ecx, eax
lea eax, [eax + 1]
cmp word [ebp + ecx*2 - 0xc26], 0
jne 0x409518
mov eax, 0x224c
mov dword [ebp - 0xf80], edi
lea esi, [ebp - 0xf5a]
mov word [ebp - 0xf5c], ax
lea eax, [ebp - 0xc28]
mov edi, eax
jmp 0x409586
cmp dx, 9
je 0x409888
cmp dx, 0xa
jne 0x409819
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
lea eax, [ecx - 1]
test ecx, ecx
jle 0x4095b7
lea ecx, [ebp - 0xe3a]
cmp esi, ecx
ja 0x4095b7
movzx edx, word [edi]
mov ecx, eax
add edi, 2
cmp dx, 0xd
je 0x4097fb
jbe 0x409550
cmp dx, 0x22
je 0x409870
cmp dx, 0x5c
jne 0x40980c
mov eax, 0x5c5c
add esi, 2
mov word [esi - 2], ax
jmp 0x409570
mov byte [esi], 0x22
mov edi, dword [ebp - 0xf80]
test eax, eax
jle 0x4098f1
mov edx, 0x2e2e
mov byte [esi + 3], 0x2e
lea eax, [esi + 4]
mov word [esi + 1], dx
lea esi, [ebp - 0xf5c]
mov byte [eax], 0
mov dword [esp], esi
call fcn.0040dba0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.pidl_path__:__s_n
mov dword [esp + 8], str.thumbnail_lnk
mov dword [esp + 4], 0x40e000
mov dword [esp], 3
call fcn.00401480
lea esi, [esi]
lea eax, [ebp - 0xf64]
mov dword [esp + 8], esi
mov ecx, 0
cmp word [ebp - 0xa20], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0xf68]
mov edx, dword [ebp - 0xf6c]
mov dword [esp], eax
je 0x409768
lea eax, [ebp - 0xa20]
call fcn.00406780
mov esi, dword [ebp - 0xf64]
test eax, eax
js 0x40968f
mov eax, dword [ebp - 0xf7c]
mov ecx, dword [ebp - 0xf5c]
mov edx, esi
mov dword [esp], eax
mov eax, dword [ebp - 0xf68]
call fcn.00405d50
jmp 0x40968f
test byte [section..data], 2
jne 0x409790
xor esi, esi
mov dword [esp + 8], edi
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword fs:[0x18]
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov dword [ebp - 0xf7c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0xf7c]
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0xf74]
sub esp, 0xc
test eax, eax
je 0x4096f1
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0xf70]
test eax, eax
je 0x409706
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0xf68]
test eax, eax
je 0x40971b
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp + 8], esi
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 edi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [section..data], 2
je 0x40968d
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.could_not_query_IPersistFile__error_0x_08lX_n
jmp 0x40979c
lea eax, [ebp - 0xc28]
call fcn.00406780
mov esi, dword [ebp - 0xf64]
test eax, eax
js 0x40968f
jmp 0x40965d
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.could_not_convert__s_to_DOS_path_n
mov dword [esp + 8], str.thumbnail_lnk
mov dword [esp + 4], 0x40e000
mov dword [esp], 1
call fcn.00401480
jmp 0x40968d
test byte [section..data], 2
je 0x40968d
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.could_not_create_IShellLinkW__error_0x_08lX_n
jmp 0x40979c
test byte [section..data], 2
je 0x40968d
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.could_not_read_.lnk__error_0x_08lX_n
jmp 0x40979c
mov eax, 0x725c
add esi, 2
mov word [esi - 2], ax
jmp 0x409570
lea eax, [edx - 0x20]
cmp ax, 0x5e
jbe 0x4098c1
mov eax, edx
mov byte [esi], 0x5c
add esi, 5
shr ax, 0xc
movzx eax, ax
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [esi - 4], al
mov eax, edx
shr ax, 8
and eax, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [esi - 3], al
mov eax, edx
and edx, 0xf
shr ax, 4
and eax, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [esi - 2], al
movzx eax, byte [edx + str.0123456789abcdef]
mov byte [esi - 1], al
jmp 0x409570
mov eax, 0x225c
add esi, 2
mov word [esi - 2], ax
jmp 0x409570
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x409570
lea eax, [ebp - 0xc28]
mov dword [esp], str._04x
mov dword [ebp - 0xf80], eax
movzx eax, word [ebp - 0xf80]
mov dword [esp + 4], eax
call fcn.004019b0
jmp 0x4095e9
mov byte [esi], dl
add esi, 1
jmp 0x409570
mov eax, str._invalid_
lea esi, [ebp - 0xf5c]
jmp 0x4095e9
mov word [ebp - 0xf5c], 0x224c
lea esi, [ebp - 0xf5a]
mov byte [ebp - 0xf5a], 0x22
lea eax, [esi + 1]
jmp 0x4095d8