Function at 0x64a98340
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x4c
mov eax, dword [eax + 8]
mov ecx, dword [ebx + 4]
sub ecx, eax
cmp ecx, 3
jle 0x64a983c5
lea ecx, [eax + 4]
mov dword [ebx + 8], ecx
add eax, dword [ebx]
je 0x64a983c5
mov eax, dword [eax]
mov dword [esi], eax
cmp eax, 0x10000001
je 0x64a98518
ja 0x64a98500
cmp eax, 5
jbe 0x64a983d0
cmp eax, 0x10000000
jne 0x64a984e0
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
sub edx, eax
cmp edx, 0xf
jle 0x64a984ed
lea edx, [eax + 0x10]
mov dword [ebx + 8], edx
add eax, dword [ebx]
je 0x64a984ed
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
add dword [eax], 1
xor ecx, ecx
jmp 0x64a984d2
mov dword [ebp - 0x34], edx
mov edi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 8], 0x14
mov dword [esp + 4], 8
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x30], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov dword [ebp - 0x2c], eax
sub esp, 0xc
test eax, eax
je 0x64a985c6
mov dword [esp + 8], 0x14
mov dword [esp + 4], 8
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x64a985a5
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
mov dword [ebp - 0x30], edx
call sym._metafile_read_region_node
mov ecx, eax
test eax, eax
jne 0x64a98488
mov eax, dword [ebp + 8]
mov ecx, edi
mov dword [esp], eax
mov edx, dword [ebp - 0x30]
mov eax, ebx
call sym._metafile_read_region_node
mov edx, dword [ebp - 0x30]
test eax, eax
mov ecx, eax
jne 0x64a98488
mov eax, dword [ebp - 0x2c]
mov dword [esi + 8], edi
xor ecx, ecx
mov dword [esi + 4], eax
add dword [edx], 2
jmp 0x64a984d2
mov eax, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x30], ecx
mov esi, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
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 ecx, dword [ebp - 0x30]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x64ab5100], 1
jne 0x64a98578
lea esp, [ebp - 0xc]
mov ecx, 2
pop ebx
mov eax, ecx
pop esi
pop edi
pop ebp
ret
lea edx, [eax - 0x10000002]
cmp edx, 1
ja 0x64a984e0
mov eax, dword [ebp + 8]
xor ecx, ecx
add dword [eax], 1
jmp 0x64a984d2
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, ecx
sub eax, edx
cmp eax, 3
jle 0x64a984ed
mov eax, dword [ebx]
lea edi, [edx + 4]
mov dword [ebx + 8], edi
mov dword [ebp - 0x2c], eax
add edx, eax
je 0x64a984ed
mov eax, dword [edx]
sub ecx, edi
cmp eax, ecx
jg 0x64a984ed
mov ecx, eax
mov eax, dword [ebp - 0x2c]
add ecx, edi
mov dword [ebx + 8], ecx
add eax, edi
je 0x64a984ed
mov edx, dword [edx]
lea ecx, [ebp - 0x1c]
call sym._metafile_deserialize_path
test eax, eax
jne 0x64a983c5
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
add dword [eax], 1
jmp 0x64a984d2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x64abf0ac
mov dword [esp + 8], str.metafile_read_region_node
mov dword [esp + 4], 0x64ab5100
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_9
jmp 0x64a984ed
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov ecx, 3
jmp 0x64a984d2