Function at 0x405a70
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x20], eax
mov eax, esi
call dbg.open_module_icon
test eax, eax
jns 0x405ac7
cmp eax, 0x8007007e
jne 0x405aac
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x405c35
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._SHCreateStreamOnFileW_12
sub esp, 0xc
test eax, eax
js 0x405ae8
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, ebx
call sym._validate_ico
mov edx, eax
test eax, eax
js 0x405ae8
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x2e
mov edi, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp], esi
call edi
mov edx, eax
test eax, eax
je 0x405c50
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov eax, 0xf
call dbg.assoc_query
mov edx, dword [ebp - 0x28]
test eax, eax
mov esi, eax
je 0x405c10
mov dword [esp + 4], 0x2c
mov dword [esp], eax
call edi
xor edx, edx
test eax, eax
je 0x405b58
xor edi, edi
add eax, 2
mov word [eax - 2], di
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov edx, eax
mov ecx, ebx
mov eax, esi
xor edi, edi
call dbg.open_module_icon
mov edx, eax
mov dword [ebp - 0x2c], edx
mov ecx, dword fs:[0x18]
mov dword [esp + 8], esi
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x2c]
mov eax, 1
sub esp, 0xc
test edx, edx
js 0x405bcd
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, ebx
call sym._validate_ico
mov edx, eax
shr eax, 0x1f
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x405ada
test al, al
je 0x405ada
mov edx, 0xffff80fb
mov ecx, ebx
mov eax, str.user32
call dbg.open_module_icon
mov edx, eax
test eax, eax
js 0x405ada
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp sym._validate_ico
mov ecx, str.open
mov eax, 2
call dbg.assoc_query
mov edi, eax
test eax, eax
je 0x405c50
xor edx, edx
mov ecx, ebx
call dbg.open_module_icon
mov edx, eax
jmp 0x405b65
test byte [0x40c000], 4
jne 0x405ca8
mov edx, 0x8007007e
jmp 0x405ada
mov dword [esp + 8], 0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, 1
mov edx, 0x80070490
sub esp, 0xc
jmp 0x405bcd
mov eax, esi
shr eax, 0x10
je 0x405cfa
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x405d0f
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Cant_find_file:__s__give_a_chance_to_parent_process_to_create_it_n
mov dword [esp + 8], str.open_icon
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x405c3e
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
jmp 0x405ccd
mov eax, str._invalid_
jmp 0x405ccd