Function at 0x64514570
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov eax, dword [ecx + 8]
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
test byte [0x64524068], 8
jne 0x64514680
mov ecx, dword [ebp - 0x1c]
test esi, esi
sete dl
test ecx, ecx
sete al
or dl, al
jne 0x64514800
test edi, edi
je 0x64514800
mov dword [ecx], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], 0x18
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x64514650
mov dword [eax], fcn.645140a0
mov dword [eax + 4], 1
mov eax, dword [esi]
mov dword [ebx + 8], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.645140a0
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
sub esp, 0xc
mov dword [esp], ebx
call dword [eax + 8]
mov edx, dword [ebp - 0x20]
sub esp, 4
test edx, edx
js 0x64514650
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.64522730
sub esp, 0xc
lea esp, [ebp - 0x10]
mov edx, eax
pop ecx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
test edi, edi
je 0x645147f0
mov eax, edi
shr eax, 0x10
je 0x645147a8
movzx eax, byte [edi + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [edi + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 8]
mov dword [esp + 0x10], eax
movzx eax, word [edi + 6]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], 0x64527df8
mov dword [esp + 4], eax
call fcn.64513e00
mov ebx, eax
test esi, esi
je 0x645147e0
mov eax, esi
shr eax, 0x10
je 0x645147c8
movzx eax, byte [esi + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [esi + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [esi + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [esi + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [esi + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [esi + 8]
mov dword [esp + 0x10], eax
movzx eax, word [esi + 6]
mov dword [esp + 0xc], eax
movzx eax, word [esi + 4]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp], 0x64527df8
mov dword [esp + 4], eax
call fcn.64513e00
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], str.__s__s__p__n
mov dword [esp + 8], str.DllGetClassObject
mov dword [esp + 4], 0x64524068
mov dword [esp], 3
call fcn.64513ec0
jmp 0x6451459c
movzx eax, di
mov dword [esp], 0x64527de8
mov dword [esp + 4], eax
call fcn.64513e00
mov ebx, eax
jmp 0x645146f7
movzx eax, si
mov dword [esp], 0x64527de8
mov dword [esp + 4], eax
call fcn.64513e00
jmp 0x6451476c
mov eax, 0x64527de1
jmp 0x6451476c
mov ebx, 0x64527de1
jmp 0x645146f7
mov edx, 0x80004005
jmp 0x6451463c