Function at 0x4028b0
Capabilities:
Get process heap flags

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, edi
mov edi, ecx
sub esp, 0x88
mov dword [ebp - 0x34], eax
mov eax, dword [ebx]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x30], eax
mov dword [esp], 0x40e20c
call dword [sym.imp.ucrtbase.dll__wgetenv]
mov dword [ebp - 0x44], eax
test byte [section..data], 8
jne 0x402b18
mov dword [esp], edi
xor edi, edi
call dword [sym.imp.shlwapi.dll_PathFindFileNameW]
sub esp, 4
mov dword [ebp - 0x40], eax
test esi, esi
je 0x402eb0
mov dword [esp + 4], 0x40e262
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402aaa
mov dword [esp + 4], str._Desktop_Entry__n
mov dword [esp], ebx
call fcn.004011e0
mov eax, dword [ebp - 0x40]
call fcn.00401d40
mov dword [esp + 4], str.Name_s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.004011e0
mov dword [esp + 4], str.Exec
mov dword [esp], ebx
call fcn.004011e0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4029cf
mov dword [esp], eax
call sub.kernel32.dll_wine_get_unix_file_name
mov dword [esp + 8], eax
mov dword [ebp - 0x40], eax
mov dword [esp + 4], str.env_WINEPREFIX__s_
mov dword [esp], ebx
call fcn.004011e0
mov edx, dword [ebp - 0x40]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
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 - 0x38]
call fcn.00402500
mov dword [esp + 4], str.wine__s
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.004011e0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x402a0b
call fcn.00402500
mov dword [esp + 4], 0x40e2a5
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.004011e0
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 fcn.004011e0
mov dword [esp + 4], str.StartupNotifytrue_n
mov dword [esp], ebx
call fcn.004011e0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x402a4d
cmp word [eax], 0
jne 0x402dc0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x402a5e
cmp word [eax], 0
jne 0x402df0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x402a6f
cmp word [eax], 0
jne 0x402e28
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x402a80
cmp word [eax], 0
jne 0x402e58
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fclose]
test edi, edi
jne 0x402ac0
mov ecx, dword [ebp - 0x34]
mov eax, 1
test ecx, ecx
je 0x402aaa
mov edx, ecx
mov eax, esi
call fcn.00401890
test eax, eax
sete al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
movd xmm0, dword [str.chmod]
mov eax, 0x40e306
movd xmm1, eax
punpckldq xmm0, xmm1
movq qword [ebp - 0x20], xmm0
mov dword [esp], esi
call sub.kernel32.dll_wine_get_unix_file_name
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ntdll.dll___wine_unix_spawnvp]
mov ecx, dword [ebp - 0x34]
mov eax, 1
sub esp, 8
test ecx, ecx
jne 0x402a99
jmp 0x402aaa
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x403040
shr eax, 0x10
test eax, eax
je 0x402e90
mov dword [esp + 4], 0xffffffff
mov ebx, dword [ebp - 0x30]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
mov dword [ebp - 0x5c], str._invalid_
test eax, eax
jne 0x402b5a
mov eax, ebx
call fcn.00401280
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x403020
shr eax, 0x10
test eax, eax
je 0x402fb0
mov dword [esp + 4], 0xffffffff
mov ebx, dword [ebp - 0x2c]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
mov dword [ebp - 0x58], str._invalid_
test eax, eax
jne 0x402b9c
mov eax, ebx
call fcn.00401280
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x402fd0
shr eax, 0x10
test eax, eax
je 0x402f90
mov dword [esp + 4], 0xffffffff
mov ebx, dword [ebp - 0x28]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
mov dword [ebp - 0x54], str._invalid_
test eax, eax
jne 0x402bde
mov eax, ebx
call fcn.00401280
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x403010
shr eax, 0x10
test eax, eax
je 0x402f70
mov dword [esp + 4], 0xffffffff
mov ebx, dword [ebp - 0x24]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
mov dword [ebp - 0x50], str._invalid_
test eax, eax
jne 0x402c20
mov eax, ebx
call fcn.00401280
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x403000
shr eax, 0x10
test eax, eax
je 0x402f50
mov dword [esp + 4], 0xffffffff
mov ebx, dword [ebp - 0x3c]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
mov dword [ebp - 0x4c], str._invalid_
test eax, eax
jne 0x402c62
mov eax, ebx
call fcn.00401280
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x402ff0
shr eax, 0x10
test eax, eax
je 0x402f30
mov dword [esp + 4], 0xffffffff
mov ebx, dword [ebp - 0x38]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
mov dword [ebp - 0x48], str._invalid_
test eax, eax
jne 0x402ca4
mov eax, ebx
call fcn.00401280
mov dword [ebp - 0x48], eax
test edi, edi
je 0x402fe0
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x402f10
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
mov dword [ebp - 0x40], str._invalid_
test eax, eax
jne 0x402ce2
mov eax, edi
call fcn.00401280
mov dword [ebp - 0x40], eax
test esi, esi
je 0x403050
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x402ed8
mov dword [esp + 4], 0xffffffff
mov ebx, str._invalid_
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x402d1d
mov eax, esi
call fcn.00401280
mov ebx, eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x403030
shr eax, 0x10
test eax, eax
je 0x402ef0
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x402d5d
mov eax, dword [ebp - 0x34]
call fcn.00401280
mov edx, dword [ebp - 0x5c]
mov dword [esp + 0x30], edx
mov ecx, dword [ebp - 0x58]
mov dword [esp + 0x2c], ecx
mov edx, dword [ebp - 0x54]
mov dword [esp + 0x28], edx
mov ecx, dword [ebp - 0x50]
mov dword [esp + 0x24], ecx
mov edx, dword [ebp - 0x4c]
mov dword [esp + 0x20], edx
mov ecx, dword [ebp - 0x48]
mov dword [esp + 0x1c], ecx
mov edx, dword [ebp - 0x40]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s__s__s__s__s__s__s__s__s__n
mov dword [esp + 0x18], edx
mov dword [esp + 8], str.write_desktop_entry
mov dword [esp + 4], 0x40c000
mov dword [esp], 3
call fcn.00401550
jmp 0x402910
call fcn.00401d40
mov dword [esp + 4], str.Comment_s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.004011e0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x402a54
jmp 0x402a5e
mov dword [esp], eax
call sub.kernel32.dll_wine_get_unix_file_name
test eax, eax
je 0x402a5e
mov dword [esp + 8], eax
mov dword [esp + 4], str.Path_s_n
mov dword [esp], ebx
call fcn.004011e0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x402a65
jmp 0x402a6f
call fcn.00401d40
mov dword [esp + 4], str.Icon_s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.004011e0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x402a76
jmp 0x402a80
call fcn.00401d40
mov dword [esp + 4], str.StartupWMClass_s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.004011e0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fclose]
test edi, edi
je 0x402a8d
jmp 0x402ac0
mov eax, dword [ebp - 0x30]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00401440
mov dword [ebp - 0x5c], eax
jmp 0x402b5a
mov dword [esp + 8], eax
mov edi, 1
mov dword [esp + 4], 0x41a000
mov dword [esp], str._s_s.desktop
call fcn.00401950
mov esi, eax
jmp 0x402929
mov dword [esp + 4], esi
mov dword [esp], str._04x
call fcn.00401440
mov ebx, eax
jmp 0x402d1d
mov eax, dword [ebp - 0x34]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00401440
jmp 0x402d5d
mov dword [esp + 4], edi
mov dword [esp], str._04x
call fcn.00401440
mov dword [ebp - 0x40], eax
jmp 0x402ce2
mov eax, dword [ebp - 0x38]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00401440
mov dword [ebp - 0x48], eax
jmp 0x402ca4
mov eax, dword [ebp - 0x3c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00401440
mov dword [ebp - 0x4c], eax
jmp 0x402c62
mov eax, dword [ebp - 0x24]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00401440
mov dword [ebp - 0x50], eax
jmp 0x402c20
mov eax, dword [ebp - 0x28]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00401440
mov dword [ebp - 0x54], eax
jmp 0x402bde
mov eax, dword [ebp - 0x2c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00401440
mov dword [ebp - 0x58], eax
jmp 0x402b9c
mov dword [ebp - 0x54], str._null_
jmp 0x402bde
mov dword [ebp - 0x40], str._null_
jmp 0x402ce2
mov dword [ebp - 0x48], str._null_
jmp 0x402ca4
mov dword [ebp - 0x4c], str._null_
jmp 0x402c62
mov dword [ebp - 0x50], str._null_
jmp 0x402c20
mov dword [ebp - 0x58], str._null_
jmp 0x402b9c
mov eax, str._null_
jmp 0x402d5d
mov dword [ebp - 0x5c], str._null_
jmp 0x402b5a
mov ebx, str._null_
jmp 0x402d1d