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

Disassembly:
push ebp
mov eax, 0x401c
mov ebp, esp
push edi
push esi
push ebx
call fcn.1000c8b0
sub esp, eax
mov eax, dword [0x1001d110]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x100092b0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov dword [esp + 8], esi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp], edi
call eax
sub esp, 0x14
mov ebx, eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov dword [esp], 0
call sym.mapi32.dll_MAPIInitialize
sub esp, 4
test eax, eax
je 0x10009770
mov edi, dword [0x1001d10c]
test edi, edi
je 0x10009788
mov eax, dword [ebp + 0x14]
mov ebx, 0x1b
and eax, 0x40000
mov dword [ebp - 0x4010], eax
jne 0x100092a4
mov ecx, 0xc
lea edi, [ebp - 0x200c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
call sym._convert_from_unicode
mov dword [ebp - 0x2008], eax
mov eax, dword [esi + 8]
call sym._convert_from_unicode
mov dword [ebp - 0x2004], eax
mov eax, dword [esi + 0xc]
call sym._convert_from_unicode
mov dword [ebp - 0x2000], eax
mov eax, dword [esi + 0x10]
call sym._convert_from_unicode
mov dword [ebp - 0x1ffc], eax
mov eax, dword [esi + 0x14]
call sym._convert_from_unicode
xor edx, edx
mov dword [ebp - 0x1ff8], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1ff4], eax
mov eax, dword [esi + 0x1c]
call sym._convert_recipient_from_unicode
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x1ff0], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x1fec], edx
mov dword [ebp - 0x1fe4], eax
test edx, edx
je 0x100093dd
mov ebx, dword [esi + 0x24]
test ebx, ebx
je 0x100093dd
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 - 0x4014], eax
sub esp, 0xc
test ecx, ecx
je 0x100093ce
nop
mov eax, dword [ebp - 0x4014]
add edi, 1
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 0x100093b0
mov eax, dword [ebp - 0x4014]
mov dword [ebp - 0x1fe8], eax
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1000949a
mov edx, dword [esi + 0x2c]
test edx, edx
je 0x1000949a
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 - 0x4014], eax
mov eax, dword [esi + 0x28]
sub esp, 0xc
test eax, eax
je 0x1000948e
mov edx, dword [ebp - 0x4014]
xor edi, edi
mov eax, dword [esi + 0x2c]
lea ebx, [edx + 4]
mov edx, esi
mov esi, edi
lea esi, [esi]
lea edi, [esi + esi*2]
mov dword [ebp + 0x10], edx
add esi, 1
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 edx, dword [ebp + 0x10]
mov dword [ebx - 0x10], eax
mov eax, dword [edx + 0x2c]
mov eax, dword [eax + edi + 0x10]
call sym._convert_from_unicode
mov edx, dword [ebp + 0x10]
mov dword [ebx - 0xc], eax
mov eax, dword [edx + 0x2c]
mov ecx, dword [eax + edi + 0x14]
mov dword [ebx - 8], ecx
cmp dword [edx + 0x28], esi
ja 0x10009440
mov esi, edx
mov eax, dword [ebp - 0x4014]
mov dword [ebp - 0x1fe0], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x200c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [0x1001d10c]
mov ebx, eax
mov eax, dword [esi + 0x1c]
sub esp, 0x14
test eax, eax
je 0x1000954a
mov eax, dword [ebp - 0x1ff0]
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 - 0x1ff0]
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 - 0x1ff0]
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 0x1000960b
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x1000960b
mov dword [ebp + 0x10], esi
xor edi, edi
mov dword [ebp - 0x4014], ebx
mov ecx, dword fs:[0x18]
mov ebx, ecx
lea esi, [esi]
lea edx, [edi + edi*2]
mov eax, dword [ebp - 0x1fe8]
add edi, 1
lea esi, [edx*8]
mov eax, dword [eax + esi + 8]
mov dword [esp + 4], 0
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 - 0x1fe8]
sub esp, 0xc
mov eax, dword [eax + esi + 0xc]
mov dword [esp + 4], 0
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 + 0x10]
sub esp, 0xc
cmp dword [eax + 0x20], edi
ja 0x10009578
mov esi, eax
mov eax, dword [ebp - 0x1fe8]
mov ecx, ebx
mov dword [esp + 4], 0
mov ebx, dword [ebp - 0x4014]
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 edx, dword [esi + 0x28]
test edx, edx
je 0x100096d1
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x100096d1
mov dword [ebp + 0x10], esi
mov edi, dword [ebp - 0x4010]
mov edx, dword fs:[0x18]
mov dword [ebp - 0x4010], ebx
mov ebx, edx
lea esi, [esi]
lea ecx, [edi + edi*2]
mov eax, dword [ebp - 0x1fe0]
add edi, 1
lea esi, [ecx*8]
mov eax, dword [eax + esi + 0xc]
mov dword [esp + 4], 0
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 - 0x1fe0]
sub esp, 0xc
mov eax, dword [eax + esi + 0x10]
mov dword [esp + 4], 0
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 + 0x10]
sub esp, 0xc
cmp dword [eax + 0x28], edi
ja 0x10009640
mov eax, dword [ebp - 0x1fe0]
mov edx, ebx
mov dword [esp + 4], 0
mov ebx, dword [ebp - 0x4010]
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_HeapFree]
sub esp, 0xc
mov eax, dword [ebp - 0x2008]
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 - 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]
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]
mov eax, dword [ebp - 0x1ff8]
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 0x100092a4
mov edx, dword [ebp + 0x14]
mov eax, esi
call sym._sendmail_extended_mapi.isra.0
mov ebx, eax
jmp 0x100092a4
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 + 0xc], 0x1000
mov dword [esp + 8], esi
mov dword [esp + 4], 2
mov dword [esp], eax
call edi
mov eax, dword [ebp + 0xc]
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 0x100092a4