Function at 0x403460
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, 0x8c
mov dword [ebp - 0x2c], eax
mov dword [esp], str.WINECONFIGDIR
call dword [sym.imp.ucrtbase.dll__wgetenv]
mov dword [ebp - 0x34], eax
test byte [section..data], 8
jne 0x403698
mov dword [esp], ebx
call sub.shlwapi.dll_PathFindFileNameW
mov dword [ebp - 0x30], 0
sub esp, 4
mov esi, eax
test edi, edi
je 0x403a10
mov dword [esp + 4], 0x40f368
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x403642
mov dword [esp + 4], str._Desktop_Entry__n
mov dword [esp], ebx
call fcn.00401190
mov eax, esi
call fcn.00401610
mov dword [esp + 4], str.Name_s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00401190
mov dword [esp + 4], str.Exec
mov dword [esp], ebx
call fcn.00401190
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40354d
mov dword [esp], eax
call sub.kernel32.dll_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 fcn.00401190
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 fcn.00401f40
mov dword [esp + 8], str.wine
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x40f3a3
mov dword [esp], ebx
call fcn.00401190
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403594
mov eax, dword [ebp + 0xc]
call fcn.00401f40
mov dword [esp + 4], 0x40f3a9
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00401190
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.00401190
mov dword [esp + 4], str.StartupNotifytrue_n
mov dword [esp], ebx
call fcn.00401190
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4035d9
mov eax, dword [ebp + 0x10]
cmp word [eax], 0
jne 0x403940
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4035ed
mov eax, dword [ebp + 0x14]
cmp word [eax], 0
jne 0x403970
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x403601
mov eax, dword [ebp + 0x18]
cmp word [eax], 0
jne 0x4039a0
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x403615
mov eax, dword [ebp + 0x1c]
cmp word [eax], 0
jne 0x4039d0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fclose]
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x403650
mov ecx, dword [ebp - 0x2c]
mov eax, 1
test ecx, ecx
je 0x403642
mov edx, ecx
mov eax, edi
call fcn.00401a10
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 - 0x28], str.chmod
mov dword [ebp - 0x24], 0x40f40a
call sub.kernel32.dll_wine_get_unix_file_name
mov dword [esp + 4], 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
mov dword [ebp - 0x1c], 0
call sub.ntdll.dll___wine_unix_spawnvp
mov ecx, dword [ebp - 0x2c]
mov eax, 1
sub esp, 8
test ecx, ecx
jne 0x403631
jmp 0x403642
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x403b90
mov eax, dword [ebp + 0x1c]
shr eax, 0x10
je 0x4039f0
mov eax, dword [ebp + 0x1c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x44], str._invalid_
sub esp, 8
test eax, eax
jne 0x4036dc
mov eax, dword [ebp + 0x1c]
call fcn.004012a0
mov dword [ebp - 0x44], eax
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x403b80
mov eax, dword [ebp + 0x18]
shr eax, 0x10
je 0x403b20
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x40], str._invalid_
sub esp, 8
test eax, eax
jne 0x403720
mov eax, dword [ebp + 0x18]
call fcn.004012a0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x403b50
mov eax, dword [ebp + 0x14]
shr eax, 0x10
je 0x403b00
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x3c], str._invalid_
sub esp, 8
test eax, eax
jne 0x403764
mov eax, dword [ebp + 0x14]
call fcn.004012a0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x403b40
mov eax, dword [ebp + 0x10]
shr eax, 0x10
je 0x403ae0
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x38], str._invalid_
sub esp, 8
test eax, eax
jne 0x4037a8
mov eax, dword [ebp + 0x10]
call fcn.004012a0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403b70
mov eax, dword [ebp + 0xc]
shr eax, 0x10
je 0x403ac0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x30], str._invalid_
sub esp, 8
test eax, eax
jne 0x4037ec
mov eax, dword [ebp + 0xc]
call fcn.004012a0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
shr eax, 0x10
je 0x403aa0
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x48], str._invalid_
sub esp, 8
test eax, eax
jne 0x403825
mov eax, dword [ebp + 8]
call fcn.004012a0
mov dword [ebp - 0x48], eax
test ebx, ebx
je 0x403b60
mov eax, ebx
shr eax, 0x10
je 0x403a80
mov dword [esp + 4], 0xffffffff
mov esi, str._invalid_
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x40385e
mov eax, ebx
call fcn.004012a0
mov esi, eax
test edi, edi
je 0x403bb0
mov eax, edi
shr eax, 0x10
je 0x403a60
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x403897
mov eax, edi
call fcn.004012a0
mov edx, eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x403ba0
shr eax, 0x10
mov dword [ebp - 0x4c], edx
je 0x403a40
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, dword [ebp - 0x4c]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x4038de
mov eax, dword [ebp - 0x2c]
call fcn.004012a0
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0xc], str.__s__s__s__s__s__s__s__s__s__n
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esp + 8], str.write_desktop_entry
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], 0x40e000
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x48]
mov dword [esp], 3
mov dword [esp + 0x1c], ecx
call fcn.00401480
jmp 0x403490
call fcn.00401610
mov dword [esp + 4], str.Comment_s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00401190
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x4035e0
jmp 0x4035ed
mov dword [esp], eax
call sub.kernel32.dll_wine_get_unix_file_name
test eax, eax
je 0x4035ed
mov dword [esp + 8], eax
mov dword [esp + 4], str.Path_s_n
mov dword [esp], ebx
call fcn.00401190
jmp 0x4035ed
call fcn.00401610
mov dword [esp + 4], str.Icon_s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00401190
mov edx, dword [ebp + 0x1c]
test edx, edx
jne 0x403608
jmp 0x403615
call fcn.00401610
mov dword [esp + 4], str.StartupWMClass_s_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00401190
jmp 0x403615
movzx eax, word [ebp + 0x1c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov dword [ebp - 0x44], eax
jmp 0x4036dc
mov dword [esp + 8], eax
mov dword [esp + 4], 0x419000
mov dword [esp], str._s_s.desktop
call fcn.00401ad0
mov dword [ebp - 0x30], 1
mov edi, eax
jmp 0x4034ac
movzx eax, word [ebp - 0x2c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov edx, dword [ebp - 0x4c]
jmp 0x4038de
movzx eax, di
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov edx, eax
jmp 0x403897
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov esi, eax
jmp 0x40385e
movzx eax, word [ebp + 8]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov dword [ebp - 0x48], eax
jmp 0x403825
movzx eax, word [ebp + 0xc]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov dword [ebp - 0x30], eax
jmp 0x4037ec
movzx eax, word [ebp + 0x10]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov dword [ebp - 0x38], eax
jmp 0x4037a8
movzx eax, word [ebp + 0x14]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov dword [ebp - 0x3c], eax
jmp 0x403764
movzx eax, word [ebp + 0x18]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov dword [ebp - 0x40], eax
jmp 0x403720
mov dword [ebp - 0x38], str._null_
jmp 0x4037a8
mov dword [ebp - 0x3c], str._null_
jmp 0x403764
mov esi, str._null_
jmp 0x40385e
mov dword [ebp - 0x30], str._null_
jmp 0x4037ec
mov dword [ebp - 0x40], str._null_
jmp 0x403720
mov dword [ebp - 0x44], str._null_
jmp 0x4036dc
mov eax, str._null_
jmp 0x4038de
mov edx, str._null_
jmp 0x403897