Function at 0x641c7b50
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x6c
mov dword [esp + 0x3c], edx
call fcn.641c1100
test eax, eax
mov ebx, eax
js 0x641c7d09
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x641c7d18
mov eax, dword [edi]
lea edx, [esp + 0x4c]
mov dword [esp], edi
mov dword [esp + 0x14], edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x10], 0x400
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x641d2a34
call dword [eax + 0x14]
sub esp, 0x18
test eax, eax
mov ebx, eax
js 0x641c7d09
mov eax, dword [esi + 0x10]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], eax
shl eax, 4
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [esp + 0x50], eax
test eax, eax
je 0x641c7d9d
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_SafeArrayLock]
sub esp, 4
test eax, eax
mov ebx, eax
js 0x641c7ce1
mov ebx, dword [esp + 0x58]
test ebx, ebx
je 0x641c7c58
mov ebp, dword [esi + 4]
lea edx, [ebx - 1]
shl ebx, 4
mov eax, dword [esp + 0x50]
imul edx, ebp
add edx, dword [esi + 0xc]
add ebx, eax
lea esi, [esi]
mov ecx, dword [edx]
add eax, 0x10
mov dword [eax - 0x10], ecx
mov ecx, dword [edx + 4]
mov dword [eax - 0xc], ecx
mov ecx, dword [edx + 8]
mov dword [eax - 8], ecx
mov ecx, dword [edx + 0xc]
sub edx, ebp
mov dword [eax - 4], ecx
cmp eax, ebx
jne 0x641c7c38
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_SafeArrayUnlock]
mov eax, dword [edi]
sub esp, 4
lea edx, [esp + 0x48]
mov dword [esp + 4], 0x641d2eb4
mov dword [esp + 8], edx
mov dword [esp], edi
call dword [eax]
sub esp, 0xc
test eax, eax
js 0x641c7d48
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x50]
mov esi, dword [esp + 0x80]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], 0x641ce01c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 1
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x400
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 0x20
mov ebx, eax
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov edx, dword [esp + 0x50]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
add esp, 0x6c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x28]
sub esp, 0xc
test eax, eax
mov ebx, eax
js 0x641c7d09
mov edi, dword [ebp + 0x10]
jmp 0x641c7b79
lea edx, [esp + 0x50]
mov eax, dword [edi]
mov dword [esp + 0x20], 0
mov esi, dword [esp + 0x80]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x400
mov dword [esp + 0x18], esi
mov dword [esp + 8], 0x641d2a34
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [eax + 0x18]
sub esp, 0x24
mov ebx, eax
jmp 0x641c7ce1
mov ebx, 0x8007000e
jmp 0x641c7d09