Function at 0x408560
Capabilities:
Get process heap flags

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [sym.imp.ucrtbase.dll_wcscmp]
mov esi, dword [esp + 0x64]
mov dword [esp + 4], str.dependentAssembly
mov dword [esp], esi
call edi
test eax, eax
je 0x4085a0
test byte [0x40a010], 1
jne 0x408700
add esp, 0x4c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, eax
call sym._alloc_dependency
mov esi, eax
test eax, eax
je 0x40858f
lea eax, [eax + 8]
mov edx, str.dependencyType
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x60]
call dbg.get_xml_attribute
mov ebp, eax
test eax, eax
je 0x408738
mov dword [esp + 4], str.install
mov dword [esp], eax
call edi
test eax, eax
jne 0x4087d8
mov dword [esp], str..__assemblyIdentity
mov dword [esp + 0x38], 0
call sym._SysAllocString_4
sub esp, 4
mov edi, eax
test eax, eax
je 0x408668
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], ecx
call dword [eax + 0x94]
sub esp, 0xc
test eax, eax
js 0x40865d
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x38]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x40c408
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
jns 0x40864e
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp], edi
call sym._SysFreeString_4
sub esp, 4
mov edi, dword [esp + 0x38]
test edi, edi
je 0x408770
lea edx, [esi + 8]
mov eax, edi
call dbg.read_identity
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 8]
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
mov dword [esp + 8], ebp
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 edi
sub esp, 0xc
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x4087a3
test byte [0x40a010], 8
jne 0x408860
mov eax, dword [esp + 0x68]
mov ebx, 1
add eax, 0x28
mov dword [esi], eax
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 0x2c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 0x2c]
mov dword [eax], esi
mov eax, dword [esp + 0x68]
mov dword [eax + 0x2c], esi
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Dont_know_how_to_handle_dependency_tag__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__.12
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x40858f
test byte [0x40a010], 4
je 0x4085e1
mov dword [esp + 0xc], str.Failed_to_get_dependency_type__assuming_install_n
mov dword [esp + 8], str.read_dependent_assembly
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x4085e1
test byte [0x40a010], 1
jne 0x408830
mov dword [esp + 8], ebp
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
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 edi
sub esp, 0xc
lea eax, [esi + 8]
call sym._clear_identity
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 edi
mov eax, ebx
sub esp, 0xc
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.prerequisite
mov dword [esp], ebp
call edi
test eax, eax
je 0x4085e1
test byte [0x40a010], 1
je 0x40877d
mov eax, ebp
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Unimplemented_dependency_type__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.read_dependent_assembly
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x40877d
mov dword [esp + 0xc], str.Failed_to_find_assemblyIdentity_child_node_n
mov dword [esp + 8], str.read_dependent_assembly
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x40877d
mov eax, dword [esi + 8]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Found_dependency__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__.12
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4086cc