Function at 0x4079b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, edx
lea edx, [ebp - 0x5c]
mov eax, ebx
sub esp, 0x9c
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call sym._get_link_location.constprop.0
test eax, eax
je 0x407cc0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x74], eax
cmp eax, 0x19
ja 0x407c28
movzx ecx, byte [ebp - 0x74]
mov edx, 0xfdbef7ff
movzx eax, byte [global___dbch]
mov esi, dword [ebp - 0x60]
sar edx, cl
and edx, 1
mov dword [ebp - 0x6c], edx
jne 0x407c32
test al, 8
jne 0x407d40
mov eax, dword [edi]
lea edx, [ebp - 0x58]
mov dword [esp], edi
mov dword [esp + 4], edx
call dword [eax + 0x10]
sub esp, 8
test eax, eax
js 0x407c3a
test byte [0x40c000], 8
jne 0x407db0
mov eax, dword [edi]
lea edx, [ebp - 0x50]
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 9
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 8
mov dword [esp + 8], edx
mov dword [esp + 4], 0x414f68
mov dword [esp], edi
call dword [eax]
sub esp, 0xc
test eax, eax
js 0x407b4b
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x4137a8
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x10
test eax, eax
js 0x408020
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
lea edi, [ebp - 0x38]
mov edx, dword [eax]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
test eax, eax
js 0x40800a
xor edi, edi
cmp word [ebp - 0x38], 0x1f
mov byte [ebp - 0x78], 0
je 0x407fc0
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sym._PropVariantClear_4
lea eax, [ebp - 0x28]
sub esp, 4
mov dword [esp], eax
call sym._PropVariantClear_4
mov eax, dword [ebp - 0x4c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x50]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
cmp byte [ebp - 0x78], 0
je 0x407b50
mov edx, dword [ebp - 0x70]
movzx eax, byte [global___dbch]
test edx, edx
jne 0x407e80
test al, 2
jne 0x407eb8
xor edi, edi
lea esi, [esi]
mov dword [esp + 0xc], str.winemenubuilder_semaphore
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
mov dword [ebp - 0x54], eax
sub esp, 0x10
lea eax, [ebp - 0x54]
mov dword [esp + 0x10], 0x1cff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._MsgWaitForMultipleObjects_20
sub esp, 0x14
test eax, eax
jne 0x407e20
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x58]
cmp ecx, 0x10
je 0x407e40
cmp ecx, 0x19
je 0x407e40
mov dword [esp], eax
mov ecx, str.start.exe
mov edx, esi
mov eax, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dbg.write_menu_entry
test eax, eax
sete al
movzx eax, al
xor eax, 1
mov dword [ebp - 0x6c], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
sub esp, 0xc
jmp 0x407c43
movzx eax, byte [global___dbch]
mov esi, dword [ebp - 0x60]
test al, 4
jne 0x407f40
mov dword [ebp - 0x6c], 1
xor edi, edi
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x407c56
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 8], edi
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x70], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x58]
sub esp, 0xc
mov dword [esp], eax
call sym._CoTaskMemFree_4
mov eax, dword [ebp - 0x6c]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x40c000], 4
jne 0x407ce0
mov dword [ebp - 0x6c], 1
mov eax, dword [ebp - 0x6c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
shr eax, 0x10
je 0x407fa0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x407d11
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unknown_link_location__s._Ignoring._n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x407cc9
test esi, esi
je 0x408000
mov eax, esi
shr eax, 0x10
je 0x407fe0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x407d79
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Link_______:__s_n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x407a25
mov edx, dword [ebp - 0x58]
test edx, edx
je 0x408038
mov eax, edx
shr eax, 0x10
je 0x407f28
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
mov dword [ebp - 0x78], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x407df0
mov eax, dword [ebp - 0x78]
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.path_______:__s_n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x407a4c
test byte [0x40c000], 2
jne 0x407f70
mov dword [ebp - 0x6c], 1
jmp 0x407c43
mov dword [esp + 4], eax
xor edx, edx
xor eax, eax
mov ecx, esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], str.start.exe
call dbg.write_desktop_entry
test eax, eax
sete al
movzx eax, al
jmp 0x407bfe
test al, 4
je 0x407c41
mov dword [esp + 0xc], str.Unable_to_extract_icon__deferring._n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x407c41
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x408060
mov eax, edi
shr eax, 0x10
je 0x408048
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x407ef4
mov eax, edi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [esp + 0xc], str.failed_to_extract_icon_from__s_n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x407b50
movzx edx, dx
mov dword [esp], str._04x
mov dword [esp + 4], edx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x407df0
mov dword [esp + 0xc], str.Not_under_desktop_or_start_menu._Ignoring._n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x407c3a
mov dword [esp + 0xc], str.failed_wait_for_semaphore_n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x407e2d
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x407d11
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x407af3
cmp word [edi], 0
jne 0x40806a
xor edi, edi
jmp 0x407af3
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x407d79
mov eax, str._null_
jmp 0x407d79
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push eax
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp - 0x50]
xor edi, edi
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x407b50
mov eax, str._null_
jmp 0x407df0
movzx edi, di
mov dword [esp], str._04x
mov dword [esp + 4], edi
call sym._wine_dbg_sprintf.constprop.0
jmp 0x407ef4
mov eax, str._null_
jmp 0x407ef4
mov eax, dword [ebp - 0x70]
movsx edx, word [ebp - 0x20]
xor ecx, ecx
mov dword [esp], eax
mov eax, edi
call dbg.extract_icon
mov edi, eax
test byte [0x40c000], 8
jne 0x408093
test edi, edi
sete byte [ebp - 0x78]
jmp 0x407af3
test eax, eax
je 0x408176
shr eax, 0x10
je 0x40813f
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x40818c
mov eax, edi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [ebp - 0x78], eax
movsx eax, word [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x7c], eax
test edx, edx
je 0x408182
mov eax, edx
shr eax, 0x10
je 0x40815a
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
mov dword [ebp - 0x80], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push ecx
push ecx
test eax, eax
jne 0x40816f
mov eax, dword [ebp - 0x80]
call sym._wine_dbgstr_wn.part.0.constprop.0
mov ecx, dword [ebp - 0x78]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], str.URL_icon_path:__s_icon_index:__d_icon_name:__s_n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x408088
movzx eax, di
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov dword [ebp - 0x78], eax
jmp 0x4080c9
movzx edx, dx
mov dword [esp], str._04x
mov dword [esp + 4], edx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x408104
mov eax, str._invalid_
jmp 0x408104
mov dword [ebp - 0x78], str._null_
jmp 0x4080c9
mov eax, str._null_
jmp 0x408104
mov dword [ebp - 0x78], str._invalid_
jmp 0x4080c9