Function at 0x10008f70
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, 0x4018
mov ebp, esp
push edi
push esi
push ebx
call fcn.1000c8b0
sub esp, eax
mov eax, dword [0x1001d10c]
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x10008fc0
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], ecx
call eax
mov esi, eax
sub esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x14
mov dword [esp], 0
call sym.mapi32.dll_MAPIInitialize
sub esp, 4
test eax, eax
je 0x10009060
mov eax, dword [0x1001d0c0]
lea ebx, [ebp - 0x200c]
mov edi, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], ebx
lea esi, [ebp - 0x400c]
mov dword [esp + 4], 1
mov dword [esp], eax
call edi
mov eax, dword [0x1001d0c0]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0x1000
mov dword [esp + 4], 2
mov dword [esp], eax
call edi
mov eax, dword [ebp + 0xc]
sub esp, 0x10
mov dword [esp + 8], esi
mov esi, 0x1a
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0x30
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
mov eax, esi
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov ecx, 0xc
lea edi, [ebp - 0x200c]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
call sym._convert_to_unicode
mov dword [ebp - 0x2008], eax
mov eax, dword [ebx + 8]
call sym._convert_to_unicode
mov dword [ebp - 0x2004], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x1fe4], eax
test eax, eax
je 0x1000912b
mov esi, dword [ebx + 0x2c]
test esi, esi
je 0x1000912b
lea eax, [eax + eax*2]
mov dword [esp + 4], 8
shl eax, 3
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0x4010], eax
sub esp, 0xc
test ecx, ecx
je 0x1000911f
xor edi, edi
xor esi, esi
lea esi, [esi]
mov eax, dword [ebx + 0x2c]
add esi, 1
mov eax, dword [eax + edi + 0xc]
call sym._convert_to_unicode
mov ecx, dword [ebp - 0x4010]
mov dword [ecx + edi + 0xc], eax
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + edi + 0x10]
call sym._convert_to_unicode
mov ecx, dword [ebp - 0x4010]
mov dword [ecx + edi + 0x10], eax
add edi, 0x18
cmp dword [ebx + 0x28], esi
ja 0x100090e8
mov eax, dword [ebp - 0x4010]
mov dword [ebp - 0x1fe0], eax
mov edx, dword [ebp + 0x14]
lea eax, [ebp - 0x200c]
call sym._sendmail_extended_mapi.isra.0
mov edx, dword [ebx + 0x28]
mov esi, eax
test edx, edx
je 0x100091f9
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x100091f9
mov dword [ebp + 0x10], ebx
xor edi, edi
mov dword [ebp - 0x4010], esi
mov ecx, dword fs:[0x18]
mov esi, ecx
lea esi, [esi]
lea edx, [edi + edi*2]
mov eax, dword [ebp - 0x1fe0]
add edi, 1
lea ebx, [edx*8]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x1fe0]
sub esp, 0xc
mov eax, dword [eax + ebx + 0x10]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp + 0x10]
sub esp, 0xc
cmp dword [eax + 0x28], edi
ja 0x10009168
mov eax, dword [ebp - 0x1fe0]
mov ecx, esi
mov dword [esp + 4], 0
mov esi, dword [ebp - 0x4010]
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 eax, dword [ebp - 0x2008]
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x2004]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14