Function at 0x70a49720
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x4048
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
call fcn.70a4cc60
sub esp, eax
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov ebx, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
mov eax, dword [0x70a5d050]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x4024], edx
mov dword [ebp - 0x4020], edi
mov dword [ebp - 0x401c], ebx
mov dword [ebp - 0x4028], ecx
test eax, eax
je 0x70a497a0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], edx
call eax
sub esp, 0x14
mov ebx, eax
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
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 0x70a49c70
mov edi, dword [0x70a5d04c]
test edi, edi
je 0x70a49c88
mov eax, dword [ebp - 0x401c]
mov ebx, 0x1b
and eax, 0x40000
mov dword [ebp - 0x402c], eax
jne 0x70a49786
mov ecx, 0xc
lea edi, [ebp - 0x2018]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
call sym._convert_from_unicode
mov dword [ebp - 0x2014], eax
mov eax, dword [esi + 8]
call sym._convert_from_unicode
mov dword [ebp - 0x2010], eax
mov eax, dword [esi + 0xc]
call sym._convert_from_unicode
mov dword [ebp - 0x200c], eax
mov eax, dword [esi + 0x10]
call sym._convert_from_unicode
mov dword [ebp - 0x2008], eax
mov eax, dword [esi + 0x14]
call sym._convert_from_unicode
xor edx, edx
mov dword [ebp - 0x2004], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x2000], eax
mov eax, dword [esi + 0x1c]
call sym._convert_recipient_from_unicode
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x1ffc], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x1ff8], edx
mov dword [ebp - 0x1ff0], eax
test edx, edx
je 0x70a498d3
mov ebx, dword [esi + 0x24]
test ebx, ebx
je 0x70a498d3
lea eax, [edx + edx*2]
mov dword [esp + 4], 8
xor ebx, ebx
xor edi, edi
shl eax, 3
mov dword [esp + 8], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x4030], eax
sub esp, 0xc
test ecx, ecx
je 0x70a498c4
lea esi, [esi]
mov eax, dword [ebp - 0x4030]
inc edi
lea edx, [eax + ebx]
mov eax, dword [esi + 0x24]
add eax, ebx
add ebx, 0x18
call sym._convert_recipient_from_unicode
cmp dword [esi + 0x20], edi
ja 0x70a498a8
mov eax, dword [ebp - 0x4030]
mov dword [ebp - 0x1ff4], eax
mov eax, dword [esi + 0x28]
test eax, eax
je 0x70a49989
mov edx, dword [esi + 0x2c]
test edx, edx
je 0x70a49989
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 dword [ebp - 0x4034], eax
mov eax, dword [esi + 0x28]
sub esp, 0xc
test eax, eax
je 0x70a4997d
mov edx, dword [ebp - 0x4034]
mov eax, dword [esi + 0x2c]
lea ebx, [edx + 4]
xor edx, edx
lea esi, [esi]
lea edi, [edx + edx*2]
mov dword [ebp - 0x4030], edx
add ebx, 0x18
shl edi, 3
add eax, edi
mov ecx, dword [eax + 4]
mov dword [ebx - 0x18], ecx
mov ecx, dword [eax + 8]
mov dword [ebx - 0x14], ecx
mov eax, dword [eax + 0xc]
call sym._convert_from_unicode
mov dword [ebx - 0x10], eax
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + edi + 0x10]
call sym._convert_from_unicode
mov edx, dword [ebp - 0x4030]
mov dword [ebx - 0xc], eax
mov eax, dword [esi + 0x2c]
inc edx
mov ecx, dword [eax + edi + 0x14]
mov dword [ebx - 8], ecx
cmp dword [esi + 0x28], edx
ja 0x70a49930
mov eax, dword [ebp - 0x4034]
mov dword [ebp - 0x1fec], eax
mov eax, dword [ebp - 0x4028]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x401c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2018]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4020]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4024]
mov dword [esp], eax
call dword [0x70a5d04c]
mov ebx, eax
mov eax, dword [esi + 0x1c]
sub esp, 0x14
test eax, eax
je 0x70a49a45
mov eax, dword [ebp - 0x1ffc]
mov edi, dword fs:[0x18]
mov eax, dword [eax + 8]
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 - 0x1ffc]
sub esp, 0xc
mov eax, dword [eax + 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 - 0x1ffc]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
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 edi, dword [esi + 0x20]
test edi, edi
je 0x70a49b0a
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x70a49b0a
mov dword [ebp - 0x401c], esi
xor edx, edx
mov dword [ebp - 0x4020], ebx
mov ebx, edx
mov edi, dword fs:[0x18]
lea esi, [esi]
lea ecx, [ebx + ebx*2]
mov eax, dword [ebp - 0x1ff4]
inc ebx
lea esi, [ecx*8]
mov eax, dword [eax + esi + 8]
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 - 0x1ff4]
sub esp, 0xc
mov eax, dword [eax + esi + 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 - 0x401c]
sub esp, 0xc
cmp dword [eax + 0x20], ebx
ja 0x70a49a78
mov esi, eax
mov eax, dword [ebp - 0x1ff4]
mov dword [esp + 4], 0
mov ebx, 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 edx, dword [esi + 0x28]
test edx, edx
je 0x70a49bd0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x70a49bd0
mov dword [ebp - 0x401c], esi
mov dword [ebp - 0x4020], ebx
mov ebx, dword [ebp - 0x402c]
mov edi, dword fs:[0x18]
lea esi, [esi]
lea ecx, [ebx + ebx*2]
mov eax, dword [ebp - 0x1fec]
inc ebx
lea esi, [ecx*8]
mov eax, dword [eax + esi + 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 + esi + 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], ebx
ja 0x70a49b40
mov eax, dword [ebp - 0x1fec]
mov dword [esp + 4], 0
mov ebx, 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 edi, dword fs:[0x18]
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 - 0x2010]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
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 - 0x2008]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
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 - 0x2004]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x70a49786
mov edx, dword [ebp - 0x401c]
mov eax, esi
call sym._sendmail_extended_mapi.constprop.0
mov ebx, eax
jmp 0x70a49786
mov eax, dword [section..bss]
lea ebx, [ebp - 0x2018]
mov edi, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], ebx
lea esi, [ebp - 0x4018]
mov dword [esp + 4], 1
mov dword [esp], eax
call edi
mov eax, dword [section..bss]
sub esp, 0x10
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], esi
mov dword [esp + 4], 2
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x4020]
sub esp, 0x10
mov dword [esp + 4], ebx
mov ebx, 0x1a
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
jmp 0x70a49786