Function at 0x408b50
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
lea edx, [ebp - 0x5c]
push ebx
mov ebx, eax
mov eax, esi
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 0x408e70
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x74], eax
cmp eax, 0x19
ja 0x408de0
movzx ecx, byte [ebp - 0x74]
mov edx, 0xfdbef7ff
movzx eax, byte [global___dbch]
mov edi, dword [ebp - 0x60]
sar edx, cl
and edx, 1
mov dword [ebp - 0x6c], edx
jne 0x408dea
test al, 8
jne 0x408ef0
mov eax, dword [ebx]
lea edx, [ebp - 0x58]
mov dword [esp], ebx
mov dword [esp + 4], edx
call dword [eax + 0x10]
sub esp, 8
test eax, eax
js 0x408df2
test byte [0x40d014], 8
jne 0x408f60
mov eax, dword [ebx]
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], 0x416228
mov dword [esp], ebx
call dword [eax]
sub esp, 0xc
test eax, eax
js 0x408ceb
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], 0x414a88
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x10
test eax, eax
js 0x409220
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
lea ebx, [ebp - 0x38]
mov edx, dword [eax]
mov dword [esp + 0xc], ebx
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 0x40920a
xor ebx, ebx
cmp word [ebp - 0x38], 0x1f
mov byte [ebp - 0x78], 0
je 0x409158
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 0x408cf0
mov ecx, dword [ebp - 0x70]
movzx eax, byte [global___dbch]
test ecx, ecx
jne 0x409010
test al, 2
jne 0x409088
xor ebx, ebx
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], 0x4ff
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 0x408fd0
mov ecx, dword [ebp - 0x74]
cmp ecx, 0x10
sete al
cmp ecx, 0x19
sete dl
or eax, edx
mov edx, dword [section..data]
test edx, edx
jne 0x409190
mov edx, dword [ebp - 0x58]
test al, al
je 0x409048
mov dword [esp + 4], edx
xor eax, eax
xor edx, edx
mov ecx, edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
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
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 0x408dfb
movzx eax, byte [global___dbch]
mov edi, dword [ebp - 0x60]
test al, 4
jne 0x4090f8
mov dword [ebp - 0x6c], 1
xor ebx, ebx
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x408e0e
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 8], ebx
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov dword [esp + 8], edi
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 - 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 [0x40d014], 4
jne 0x408e90
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, esi
shr eax, 0x10
je 0x409140
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 0x408ec1
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0_1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unknown_link_location__s._Ignoring._n
mov dword [esp + 8], global___FUNCTION__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x408e79
test edi, edi
je 0x409200
mov eax, edi
shr eax, 0x10
je 0x409178
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 0x408f29
mov eax, edi
call sym._wine_dbgstr_wn.part.0.constprop.0_1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Link_______:__s_n
mov dword [esp + 8], global___FUNCTION__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x408bc5
mov edx, dword [ebp - 0x58]
test edx, edx
je 0x409238
mov eax, edx
shr eax, 0x10
je 0x409128
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 0x408fa0
mov eax, dword [ebp - 0x78]
call sym._wine_dbgstr_wn.part.0.constprop.0_1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.path_______:__s_n
mov dword [esp + 8], global___FUNCTION__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x408bec
mov dword [ebp - 0x6c], 1
test byte [0x40d014], 2
je 0x408dfb
mov dword [esp + 0xc], str.failed_wait_for_semaphore_n
mov dword [esp + 8], global___FUNCTION__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x408dfb
test al, 4
je 0x408df9
mov dword [esp + 0xc], str.Unable_to_extract_icon__deferring._n
mov dword [esp + 8], global___FUNCTION__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x408df9
mov dword [esp], edx
mov ecx, str.start.exe
mov edx, edi
mov eax, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dbg.write_menu_entry
test eax, eax
sete al
movzx eax, al
jmp 0x408db5
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40925d
mov eax, ebx
shr eax, 0x10
je 0x409248
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 0x4090c4
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0_1
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0xc], str.failed_to_extract_icon_from__s_n
mov dword [esp + 8], global___FUNCTION__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x408cf0
mov dword [esp + 0xc], str.Not_under_desktop_or_start_menu._Ignoring._n
mov dword [esp + 8], global___FUNCTION__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x408df2
mov dword [esp + 4], edx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x408fa0
mov dword [esp + 4], esi
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x408ec1
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x408c93
cmp word [ebx], 0
jne 0x409267
xor ebx, ebx
jmp 0x408c93
mov dword [esp + 4], edi
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x408f29
movzx eax, al
mov dword [esp], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call dbg.cx_process_menu
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov esi, eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
xor eax, eax
sub esp, 0xc
test esi, esi
setne al
mov dword [ebp - 0x6c], eax
jmp 0x408dfb
mov eax, str._null_
jmp 0x408f29
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 ebx, ebx
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x408cf0
mov eax, str._null_
jmp 0x408fa0
mov dword [esp + 4], ebx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x4090c4
mov eax, str._null_
jmp 0x4090c4
mov eax, dword [ebp - 0x70]
movsx edx, word [ebp - 0x20]
xor ecx, ecx
mov dword [esp], eax
mov eax, ebx
call dbg.extract_icon
mov ebx, eax
test byte [0x40d014], 8
jne 0x409290
test ebx, ebx
sete byte [ebp - 0x78]
jmp 0x408c93
test eax, eax
je 0x40936d
shr eax, 0x10
je 0x40933c
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push ecx
push ecx
test eax, eax
jne 0x409380
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0_1
mov dword [ebp - 0x78], eax
movsx eax, word [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x7c], eax
test edx, edx
je 0x409379
mov eax, edx
shr eax, 0x10
je 0x409354
mov dword [esp], edx
mov dword [esp + 4], 0xffffffff
mov dword [ebp - 0x80], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x409366
mov eax, dword [ebp - 0x80]
call sym._wine_dbgstr_wn.part.0.constprop.0_1
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___FUNCTION__.5
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x409285
mov dword [esp + 4], ebx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [ebp - 0x78], eax
jmp 0x4092c6
mov dword [esp + 4], edx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x409301
mov eax, str._invalid_
jmp 0x409301
mov dword [ebp - 0x78], str._null_
jmp 0x4092c6
mov eax, str._null_
jmp 0x409301
mov dword [ebp - 0x78], str._invalid_
jmp 0x4092c6