Function at 0x4048b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x5c
mov dword [ebp - 0x1c], ecx
test byte [section..data], 8
jne 0x404a28
mov eax, dword [0x419208]
mov dword [esp + 8], ebx
mov dword [esp], str._s_applicationswine_s.desktop
mov dword [esp + 4], eax
call fcn.00401ad0
mov dword [esp + 4], 0x5c
mov edi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
xor edx, edx
mov word [eax], dx
mov dword [ebp - 0x20], eax
mov eax, edi
call fcn.00401020
mov ecx, dword [ebp - 0x20]
test eax, eax
mov edx, eax
jne 0x404978
test byte [section..data], 4
jne 0x404cb8
xor edx, edx
mov dword [esp + 8], edi
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x5c
mov edx, edi
mov word [ecx], ax
mov eax, dword [ebp + 0x18]
mov ecx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, esi
call fcn.00403460
mov edx, eax
test eax, eax
jne 0x404c80
test byte [section..data], 4
je 0x40491e
test edi, edi
je 0x404ef0
mov eax, edi
mov dword [ebp - 0x1c], edx
shr eax, 0x10
je 0x404ea0
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, dword [ebp - 0x1c]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x404a0d
mov eax, edi
call fcn.004012a0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.couldnt_make_desktop_entry__s_n
jmp 0x404d09
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x404e80
mov eax, dword [ebp + 0x18]
shr eax, 0x10
je 0x404d40
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x2c], str._invalid_
sub esp, 8
test eax, eax
jne 0x404a6c
mov eax, dword [ebp + 0x18]
call fcn.004012a0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x404e90
mov eax, dword [ebp + 0x14]
shr eax, 0x10
je 0x404da0
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x28], str._invalid_
sub esp, 8
test eax, eax
jne 0x404ab0
mov eax, dword [ebp + 0x14]
call fcn.004012a0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x404e50
mov eax, dword [ebp + 0x10]
shr eax, 0x10
je 0x404e20
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x24], str._invalid_
sub esp, 8
test eax, eax
jne 0x404af4
mov eax, dword [ebp + 0x10]
call fcn.004012a0
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x404e40
mov eax, dword [ebp + 0xc]
shr eax, 0x10
je 0x404e00
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x20], str._invalid_
sub esp, 8
test eax, eax
jne 0x404b38
mov eax, dword [ebp + 0xc]
call fcn.004012a0
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x404e70
mov eax, dword [ebp + 8]
shr eax, 0x10
je 0x404de0
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov edi, str._invalid_
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x404b79
mov eax, dword [ebp + 8]
call fcn.004012a0
mov edi, eax
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
je 0x404dc0
mov eax, dword [ebp - 0x1c]
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 0x404bb2
mov eax, dword [ebp - 0x1c]
call fcn.004012a0
mov dword [ebp - 0x30], eax
test ebx, ebx
je 0x404e60
mov eax, ebx
shr eax, 0x10
je 0x404d80
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x404beb
mov eax, ebx
call fcn.004012a0
mov edx, eax
mov eax, esi
shr eax, 0x10
je 0x404d60
mov dword [ebp - 0x34], edx
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, dword [ebp - 0x34]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x404c25
mov eax, esi
call fcn.004012a0
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x1c], edi
mov edi, dword [ebp - 0x30]
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0xc], str.__s___s___s___s___s___s___s___s__n
mov dword [esp + 0x20], ecx
mov dword [esp + 8], str.write_menu_entry
mov dword [esp + 4], 0x40e000
mov dword [esp], 3
call fcn.00401480
jmp 0x4048cd
mov edx, ebx
mov eax, esi
call fcn.00403bc0
test eax, eax
jne 0x404d30
test byte [section..data], 4
je 0x40491e
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x10], str._null_
mov dword [esp + 0xc], str.couldnt_make_menu_file__s_n
jmp 0x404d09
test edi, edi
je 0x404ee0
mov eax, edi
mov dword [ebp - 0x1c], edx
shr eax, 0x10
je 0x404ec0
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, dword [ebp - 0x1c]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x404cfa
mov eax, edi
call fcn.004012a0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.couldnt_make_parent_directories_for__s_n
mov dword [esp + 8], str.write_menu_entry
mov dword [esp + 4], 0x40e000
mov dword [esp], 2
call fcn.00401480
mov edx, dword [ebp - 0x1c]
jmp 0x404920
mov edx, 1
jmp 0x404920
movzx eax, word [ebp + 0x18]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov dword [ebp - 0x2c], eax
jmp 0x404a6c
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
mov dword [ebp - 0x34], edx
call fcn.004019b0
mov edx, dword [ebp - 0x34]
jmp 0x404c25
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov edx, eax
jmp 0x404beb
movzx eax, word [ebp + 0x14]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov dword [ebp - 0x28], eax
jmp 0x404ab0
movzx eax, word [ebp - 0x1c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov dword [ebp - 0x30], eax
jmp 0x404bb2
movzx eax, word [ebp + 8]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov edi, eax
jmp 0x404b79
movzx eax, word [ebp + 0xc]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov dword [ebp - 0x20], eax
jmp 0x404b38
movzx eax, word [ebp + 0x10]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov dword [ebp - 0x24], eax
jmp 0x404af4
mov dword [ebp - 0x20], str._null_
jmp 0x404b38
mov dword [ebp - 0x24], str._null_
jmp 0x404af4
mov edx, str._null_
jmp 0x404beb
mov edi, str._null_
jmp 0x404b79
mov dword [ebp - 0x2c], str._null_
jmp 0x404a6c
mov dword [ebp - 0x28], str._null_
jmp 0x404ab0
movzx eax, di
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov edx, dword [ebp - 0x1c]
jmp 0x404a0d
movzx eax, di
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.004019b0
mov edx, dword [ebp - 0x1c]
jmp 0x404cfa
mov eax, str._null_
jmp 0x404cfa
mov eax, str._null_
jmp 0x404a0d