Function at 0x401c90
Capabilities:
Get common file path
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2bc
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x401cb2
xor edx, edx
call dbg.cx_link_is_64_bit
test eax, eax
jne 0x401f38
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
lea ebx, [ebp - 0x220]
xor esi, esi
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 0
call sym._SHGetSpecialFolderPathW_16
sub esp, 0x10
test byte [global___dbch.0], 8
jne 0x402358
mov edx, dword [section..bss]
test edx, edx
je 0x401de0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.wchars_to_utf8_chars
mov dword [esp], 0x40e140
mov dword [esp + 4], eax
mov edi, eax
call dbg.printf
mov eax, dword [ebp + 0xc]
mov edx, 0x40e0f0
test eax, eax
mov eax, 0x40e0ec
cmovne edx, eax
mov eax, str.IsMenu
call sym._cx_print_value.part.0
mov eax, str.Root
mov edx, ebx
call sym._cx_print_value.part.0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x401d50
mov edx, dword [ebp + 0x14]
mov eax, str.Path
call sym._cx_print_value.part.0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x401d64
mov edx, dword [ebp + 0x18]
mov eax, str.Args
call sym._cx_print_value.part.0
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x401d78
mov edx, dword [ebp + 0x1c]
mov eax, str.Icon
call sym._cx_print_value.part.0
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x401d8c
mov edx, dword [ebp + 0x20]
mov eax, str.Description
call sym._cx_print_value.part.0
test esi, esi
je 0x401d9c
mov edx, esi
mov eax, str.Arch
call sym._cx_print_value.part.0
mov dword [esp], 0x40e172
xor ebx, ebx
call dbg.printf
mov dword [esp + 8], edi
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]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x270], str.wineshelllink
mov dword [ebp - 0x26c], str.__utf8
mov dword [ebp - 0x268], str.__root
mov dword [esp], ebx
mov ebx, 9
call dbg.wchars_to_utf8_chars
mov dword [ebp - 0x260], str.__link
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.wchars_to_utf8_chars
mov dword [ebp - 0x258], str.__path
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call dbg.wchars_to_utf8_chars
mov ecx, dword [ebp + 0xc]
mov edx, str.__desktop
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x254], eax
mov eax, str.__menu
test ecx, ecx
cmovne eax, edx
mov dword [ebp - 0x250], eax
test edi, edi
je 0x401e73
mov eax, dword [ebp + 0x18]
cmp word [eax], 0
jne 0x4021d8
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x401e9d
mov eax, dword [ebp + 0x1c]
lea edi, [ebx + 1]
mov dword [ebp + ebx*4 - 0x270], str.__icon
add ebx, 2
mov dword [esp], eax
call dbg.wchars_to_utf8_chars
mov dword [ebp + edi*4 - 0x270], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x401eb1
mov eax, dword [ebp + 0x20]
cmp word [eax], 0
jne 0x402208
test esi, esi
je 0x401ebf
cmp word [esi], 0
jne 0x402238
lea eax, [ebp - 0x270]
mov dword [ebp + ebx*4 - 0x270], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.___wine_unix_spawnvp_8
sub esp, 8
mov ebx, eax
test eax, eax
je 0x401dce
test byte [global___dbch.0], 2
je 0x401dce
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x270]
mov dword [esp + 0xc], str._s_returned__d_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.cx_wineshelllink
mov dword [esp + 4], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401dce
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
lea ebx, [ebp - 0x220]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 0
call sym._SHGetSpecialFolderPathW_16
sub esp, 0x10
test byte [global___dbch.0], 8
je 0x4023bf
mov eax, str.x86_64
shr eax, 0x10
je 0x402260
mov dword [esp + 4], 0xffffffff
mov dword [esp], str.x86_64
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x402340
mov eax, str.x86_64
mov esi, str.x86_64
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x402390
mov eax, dword [ebp + 0x20]
shr eax, 0x10
je 0x402320
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x288], 0x40e022
sub esp, 8
test eax, eax
jne 0x401ffa
mov eax, dword [ebp + 0x20]
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [ebp - 0x288], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x402380
mov eax, dword [ebp + 0x1c]
shr eax, 0x10
je 0x402300
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x284], 0x40e022
sub esp, 8
test eax, eax
jne 0x402044
mov eax, dword [ebp + 0x1c]
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [ebp - 0x284], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4023b0
mov eax, dword [ebp + 0x18]
shr eax, 0x10
je 0x4022e0
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x280], 0x40e022
sub esp, 8
test eax, eax
jne 0x40208e
mov eax, dword [ebp + 0x18]
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [ebp - 0x280], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4023a0
mov eax, dword [ebp + 0x14]
shr eax, 0x10
je 0x4022c0
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x27c], 0x40e022
sub esp, 8
test eax, eax
jne 0x4020d8
mov eax, dword [ebp + 0x14]
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [ebp - 0x27c], eax
mov eax, ebx
shr eax, 0x10
je 0x402288
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x40e022
sub esp, 8
test eax, eax
jne 0x402109
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov edx, eax
mov ecx, dword [ebp + 0xc]
mov eax, str.desktop
mov edi, str.menu
test ecx, ecx
cmovne edi, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x402370
mov eax, dword [ebp + 8]
mov dword [ebp - 0x290], edx
shr eax, 0x10
je 0x4022a0
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, dword [ebp - 0x290]
mov ecx, eax
sub esp, 8
mov eax, 0x40e022
test ecx, ecx
jne 0x40216e
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.part.0.constprop.0
mov edx, dword [ebp - 0x290]
mov ecx, dword [ebp - 0x28c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x288]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x284]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x280]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x27c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.link_s__s:__s_path_s_args_s_icon_s_desc_s_arch_s_n
mov dword [esp + 8], global___FUNCTION__.11
mov dword [esp + 4], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401ce9
mov dword [ebp - 0x24c], str.__args
mov ebx, 0xb
mov dword [esp], eax
call dbg.wchars_to_utf8_chars
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x248], eax
test edx, edx
jne 0x401e7a
jmp 0x401e9d
mov dword [ebp + ebx*4 - 0x270], str.__descr
lea edi, [ebx + 1]
add ebx, 2
mov dword [esp], eax
call dbg.wchars_to_utf8_chars
mov dword [ebp + edi*4 - 0x270], eax
test esi, esi
jne 0x401eb5
jmp 0x401ebf
mov dword [ebp + ebx*4 - 0x270], str.__arch
lea edi, [ebx + 1]
add ebx, 2
mov dword [esp], esi
call dbg.wchars_to_utf8_chars
mov dword [ebp + edi*4 - 0x270], eax
jmp 0x401ebf
mov dword [esp + 4], str.x86_64
mov esi, str.x86_64
mov dword [esp], 0x40e015
call sym._wine_dbg_sprintf.constprop.0
mov dword [ebp - 0x28c], eax
jmp 0x401fb0
mov dword [esp + 4], ebx
mov dword [esp], 0x40e015
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x402109
mov eax, dword [ebp + 8]
mov dword [esp], 0x40e015
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, dword [ebp - 0x290]
jmp 0x40216e
mov eax, dword [ebp + 0x14]
mov dword [esp], 0x40e015
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov dword [ebp - 0x27c], eax
jmp 0x4020d8
mov eax, dword [ebp + 0x18]
mov dword [esp], 0x40e015
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov dword [ebp - 0x280], eax
jmp 0x40208e
mov eax, dword [ebp + 0x1c]
mov dword [esp], 0x40e015
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov dword [ebp - 0x284], eax
jmp 0x402044
mov eax, dword [ebp + 0x20]
mov dword [esp], 0x40e015
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov dword [ebp - 0x288], eax
jmp 0x401ffa
mov dword [ebp - 0x28c], 0x40e022
mov esi, str.x86_64
jmp 0x401fb0
mov dword [ebp - 0x28c], 0x40e01b
jmp 0x401fb0
mov eax, 0x40e01b
jmp 0x40216e
mov dword [ebp - 0x284], 0x40e01b
jmp 0x402044
mov dword [ebp - 0x288], 0x40e01b
jmp 0x401ffa
mov dword [ebp - 0x27c], 0x40e01b
jmp 0x4020d8
mov dword [ebp - 0x280], 0x40e01b
jmp 0x40208e
mov esi, str.x86_64
jmp 0x401ce9