Function at 0x402950
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
mov ebx, ecx
sub esp, 0x68
mov dword [ebp - 0x20], eax
mov dword [esp], 0x40f5d0
call dword [sym.imp.ucrtbase.dll__wgetenv]
mov dword [ebp - 0x28], eax
test byte [0x40d000], 8
jne 0x402b75
mov dword [esp], ebx
call dword [sym.imp.shlwapi.dll_PathFindFileNameW]
mov dword [ebp - 0x24], 0
sub esp, 4
mov esi, eax
test edi, edi
je 0x402ce0
mov dword [esp + 4], 0x40f626
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402b28
mov dword [esp + 4], str._Desktop_Entry__n
mov dword [esp], ebx
call dbg.fprintf
mov eax, esi
call dbg.wchars_to_utf8_chars
mov dword [esp + 4], str.Name_s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call dbg.fprintf
mov dword [esp + 4], str.Exec
mov dword [esp], ebx
call dbg.fprintf
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x402a3b
mov dword [esp], eax
call sym._wine_get_unix_file_name
mov dword [esp + 4], str.env_WINEPREFIX__s_
mov dword [esp + 8], eax
mov esi, eax
mov dword [esp], ebx
call dbg.fprintf
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 dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [ebp + 8]
call dbg.escape
mov dword [esp + 4], str.wine__s
mov dword [esp + 8], eax
mov dword [esp], ebx
call dbg.fprintf
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x402a7a
mov eax, dword [ebp + 0xc]
call dbg.escape
mov dword [esp + 4], 0x40f669
mov dword [esp + 8], eax
mov dword [esp], ebx
call dbg.fprintf
mov dword [esp + 4], ebx
mov dword [esp], 0xa
call dword [sym.imp.ucrtbase.dll_fputc]
mov dword [esp + 4], str.TypeApplication_n
mov dword [esp], ebx
call dbg.fprintf
mov dword [esp + 4], str.StartupNotifytrue_n
mov dword [esp], ebx
call dbg.fprintf
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x402abf
mov eax, dword [ebp + 0x10]
cmp word [eax], 0
jne 0x402c34
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x402ad3
mov eax, dword [ebp + 0x14]
cmp word [eax], 0
jne 0x402c60
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x402ae7
mov eax, dword [ebp + 0x18]
cmp word [eax], 0
jne 0x402c90
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x402afb
mov eax, dword [ebp + 0x1c]
cmp word [eax], 0
jne 0x402cc0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fclose]
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x402b30
mov ecx, dword [ebp - 0x20]
mov eax, 1
test ecx, ecx
je 0x402b28
mov edx, ecx
mov eax, edi
call sym._register_menus_entry
test eax, eax
sete al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
mov dword [ebp - 0x1c], str.chmod
mov dword [ebp - 0x18], 0x40f6ca
call sym._wine_get_unix_file_name
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ntdll.dll___wine_unix_spawnvp]
mov ecx, dword [ebp - 0x20]
mov eax, 1
sub esp, 8
test ecx, ecx
jne 0x402b17
jmp 0x402b28
mov eax, dword [ebp + 0x1c]
call sym._wine_dbgstr_wn.constprop.15
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
call sym._wine_dbgstr_wn.constprop.15
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
call sym._wine_dbgstr_wn.constprop.15
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
call sym._wine_dbgstr_wn.constprop.15
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.15
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.15
mov dword [ebp - 0x3c], eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.15
mov dword [ebp - 0x24], eax
mov eax, edi
call sym._wine_dbgstr_wn.constprop.15
mov esi, eax
mov eax, dword [ebp - 0x20]
call sym._wine_dbgstr_wn.constprop.15
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], edx
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0xc], str.__s__s__s__s__s__s__s__s__s__n
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 8], global___func__.11
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x3c]
mov dword [esp + 4], global___dbch
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x24]
mov dword [esp], 3
mov dword [esp + 0x18], edx
call sym._wine_dbg_log.constprop.18
jmp 0x40297d
call dbg.wchars_to_utf8_chars
mov dword [esp + 4], str.Comment_s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call dbg.fprintf
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x402ac6
jmp 0x402ad3
mov dword [esp], eax
call sym._wine_get_unix_file_name
test eax, eax
je 0x402ad3
mov dword [esp + 8], eax
mov dword [esp + 4], str.Path_s_n
mov dword [esp], ebx
call dbg.fprintf
jmp 0x402ad3
call dbg.wchars_to_utf8_chars
mov dword [esp + 4], str.Icon_s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call dbg.fprintf
mov edx, dword [ebp + 0x1c]
test edx, edx
jne 0x402aee
jmp 0x402afb
call dbg.wchars_to_utf8_chars
mov dword [esp + 4], str.StartupWMClass_s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call dbg.fprintf
jmp 0x402afb
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41b000
mov dword [esp], str._s_s.desktop
call dbg.heap_wprintf
mov dword [ebp - 0x24], 1
mov edi, eax
jmp 0x40299a