Function at 0x70a49400
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x4038
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
call fcn.70a4cc60
sub esp, eax
mov eax, dword [0x70a5d04c]
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
test eax, eax
je 0x70a49460
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], edx
call eax
sub esp, 0x14
lea esp, [ebp - 0x10]
mov esi, eax
pop ecx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp], 0
call sym.mapi32.dll_MAPIInitialize
sub esp, 4
test eax, eax
je 0x70a49510
mov edx, dword [sym.imp.user32.dll_LoadStringW]
mov eax, dword [section..bss]
lea ebx, [ebp - 0x2018]
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], ebx
lea esi, [ebp - 0x4018]
mov dword [ebp - 0x401c], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call edx
mov eax, dword [section..bss]
mov edx, dword [ebp - 0x401c]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0x1000
mov dword [esp + 4], 2
mov dword [esp], eax
call edx
sub esp, 0x10
mov dword [esp + 8], esi
mov esi, 0x1a
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0xc], 0x30
call dword [sym.imp.user32.dll_MessageBoxW]
mov eax, esi
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov ecx, 0xc
lea edi, [ebp - 0x2018]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
call sym._convert_to_unicode
mov dword [ebp - 0x2014], eax
mov eax, dword [ebx + 8]
call sym._convert_to_unicode
mov dword [ebp - 0x2010], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x1ff0], eax
test eax, eax
je 0x70a495e7
mov edi, dword [ebx + 0x2c]
test edi, edi
je 0x70a495e7
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 - 0x401c], eax
sub esp, 0xc
test ecx, ecx
je 0x70a495db
xor edx, edx
mov dword [ebp - 0x4020], esi
xor edi, edi
mov esi, edx
lea esi, [esi]
mov eax, dword [ebx + 0x2c]
inc esi
mov eax, dword [eax + edi + 0xc]
call sym._convert_to_unicode
mov edx, dword [ebp - 0x401c]
mov dword [edx + edi + 0xc], eax
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + edi + 0x10]
call sym._convert_to_unicode
mov edx, dword [ebp - 0x401c]
mov dword [edx + edi + 0x10], eax
add edi, 0x18
cmp dword [ebx + 0x28], esi
ja 0x70a495a0
mov esi, dword [ebp - 0x4020]
mov eax, dword [ebp - 0x401c]
mov dword [ebp - 0x1fec], eax
mov edx, esi
lea eax, [ebp - 0x2018]
call sym._sendmail_extended_mapi.constprop.0
mov edx, dword [ebx + 0x28]
mov esi, eax
test edx, edx
je 0x70a496b8
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x70a496b8
mov dword [ebp - 0x401c], ebx
xor edx, edx
mov dword [ebp - 0x4020], esi
mov esi, edx
mov edi, dword fs:[0x18]
lea esi, [esi]
nop
lea ecx, [esi + esi*2]
mov eax, dword [ebp - 0x1fec]
inc esi
lea ebx, [ecx*8]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x1fec]
sub esp, 0xc
mov eax, dword [eax + ebx + 0x10]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x401c]
sub esp, 0xc
cmp dword [eax + 0x28], esi
ja 0x70a49628
mov eax, dword [ebp - 0x1fec]
mov dword [esp + 4], 0
mov esi, dword [ebp - 0x4020]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [ebp - 0x2014]
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 - 0x2010]
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 - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14