Function at 0x2a836704
Capabilities:
Access peb ldr_data
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2a85066c
mov eax, dword fs:[0]
push eax
mov eax, 0x19900
call fcn.2a84b110
mov eax, dword [0x2a8654b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x198f8], ebx
mov eax, dword [ebp + 0xc]
lea edi, [ebx + 0x30]
mov dword [ebp - 0x1990c], ebx
xor ecx, ecx
mov dword [ebx], eax
xor eax, eax
mov word [ebx + 0xc], ax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
xor eax, eax
inc eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0x14], ecx
mov word [ebx + 0x18], ax
mov dword [ebx + 0x1c], ecx
mov dword [edi], ecx
xor eax, eax
mov dword [ebp - 4], ecx
mov word [ebx + 0x34], ax
cmp dword [ebx], eax
je 0x2a8367a0
mov eax, dword [0x2a86631c]
push ecx
push str.silent
push dword [ebx]
mov esi, dword [eax + 0xc4]
mov ecx, esi
call dword [0x2a8523cc]
call esi
add esp, 0xc
mov word [ebx + 0xc], ax
call fcn.2a83f0f3
test eax, eax
je 0x2a836ea5
push edi
push 0x2a85558c
push 4
push 0
push 0x2a85559c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebx + 8], eax
test eax, eax
jne 0x2a8368a5
and dword [ebp - 0x198d8], eax
mov eax, dword [0x2a86625c]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x2a8523cc]
call esi
mov eax, dword [edi]
lea ecx, [ebp - 0x198e0]
push ecx
lea ecx, [ebp - 0x198d8]
push ecx
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0xa4]
mov ecx, esi
call dword [0x2a8523cc]
call esi
mov dword [ebx + 8], eax
mov eax, dword [0x2a86625c]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x2a8523cc]
call esi
cmp dword [ebx + 8], 0
jne 0x2a837038
mov ecx, dword [ebp - 0x198d8]
test ecx, ecx
je 0x2a8368a5
xor eax, eax
inc eax
cmp word [ecx], ax
jne 0x2a8368a5
cmp dword [ecx + 4], eax
jne 0x2a8368a5
cmp dword [ecx + 0x14], 0
jne 0x2a8368a5
mov eax, dword [ebp - 0x198e0]
cmp eax, dword [ecx + 0x10]
ja 0x2a8368a5
lea eax, [ebp - 0x198d4]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x2a836889
mov eax, dword [0x2a86625c]
push dword [ebp - 0x198e0]
push dword [ebp - 0x198d4]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
pop ecx
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
jmp 0x2a836890
mov dword [ebx + 8], 0x80004005
cmp dword [ebp - 0x198d8], 0
je 0x2a8368a5
push dword [ebp - 0x198d8]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
cmp dword [ebx + 8], 0
jne 0x2a837038
movzx eax, word [ebx + 0xc]
mov dword [ebp - 0x198f8], eax
mov eax, dword [0x2a86631c]
push 0
push str.parent
push dword [ebx]
mov esi, dword [eax + 0xcc]
mov ecx, esi
call dword [0x2a8523cc]
call esi
xor ecx, ecx
mov dword [ebp - 0x19900], eax
add esp, 0xc
mov dword [ebp - 0x198d8], ecx
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x198ec], ecx
mov dword [ebp - 0x198e4], ecx
mov dword [ebp - 0x198f0], ecx
mov dword [ebp - 0x198f4], ecx
mov dword [ebp - 0x198e0], edi
movlpd qword [ebp - 0x19908], xmm0
cmp dword [ebx], ecx
je 0x2a836d26
mov eax, dword [0x2a86631c]
push str.message
push dword [ebx]
mov esi, dword [eax + 0xb4]
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
pop ecx
test ax, ax
je 0x2a836979
mov edi, dword [0x2a86631c]
push str.message
push dword [ebx]
mov esi, dword [edi + 0x114]
mov ecx, esi
call dword [0x2a8523cc]
call esi
mov esi, dword [edi + 0x54]
pop ecx
pop ecx
push eax
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x198d8], eax
mov eax, dword [0x2a86631c]
push str.subject
push dword [ebx]
mov esi, dword [eax + 0xb4]
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
pop ecx
test ax, ax
je 0x2a8369d7
mov edi, dword [0x2a86631c]
push str.subject
push dword [ebx]
mov esi, dword [edi + 0x114]
mov ecx, esi
call dword [0x2a8523cc]
call esi
mov esi, dword [edi + 0x54]
pop ecx
pop ecx
push eax
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x198ec], eax
mov eax, dword [0x2a86631c]
mov edi, str.attachment
push edi
push dword [ebx]
mov esi, dword [eax + 0xb4]
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
pop ecx
test ax, ax
je 0x2a836bb4
push 0x197d0
xor esi, esi
lea eax, [ebp - 0x198d0]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push esi
push edi
lea eax, [ebp - 0x38]
push 0x28
push eax
call fcn.2a83f0f3
push esi
lea eax, [ebp - 0x38]
push 0x28
push eax
call fcn.2a83f0f3
lea edi, [ebp - 0x38]
mov dword [ebp - 0x198dc], esi
add esp, 0x28
add eax, edi
mov dword [ebp - 0x198fc], eax
mov edi, esi
lea eax, [ebp - 0x38]
push eax
mov eax, dword [0x2a86631c]
push dword [ebx]
mov esi, dword [eax + 0xb4]
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
pop ecx
test ax, ax
je 0x2a836ba1
lea eax, [ebp - 0x38]
push eax
mov eax, dword [0x2a86631c]
push dword [ebx]
mov esi, dword [eax + 0xb4]
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
pop ecx
test ax, ax
je 0x2a836b7d
lea eax, [ebp - 0x198d4]
push eax
lea eax, [ebp - 0x198e8]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [0x2a86631c]
push dword [ebx]
mov esi, dword [eax + 0x154]
mov ecx, esi
call dword [0x2a8523cc]
call esi
mov edi, dword [0x2a8662e0]
lea eax, [ebp - 0x198e4]
add esp, 0x10
push eax
mov eax, dword [0x2a8662f4]
push str.WinUnicodePath
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x2a8523cc]
call esi
mov esi, dword [edi + 0x168]
pop ecx
movzx eax, ax
mov ecx, esi
push eax
push dword [ebp - 0x198d4]
push dword [ebp - 0x198e8]
call dword [0x2a8523cc]
call esi
mov eax, dword [0x2a8662e0]
add esp, 0x10
mov esi, dword [eax + 0x170]
mov ecx, esi
push dword [ebp - 0x198e4]
call dword [0x2a8523cc]
call esi
mov edi, dword [ebp - 0x198dc]
mov esi, eax
pop ecx
test edi, edi
je 0x2a836b44
push 0x2a8555cc
lea eax, [ebp - 0x198d0]
push 0xcbe8
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
push esi
lea eax, [ebp - 0x198d0]
push 0xcbe8
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov eax, dword [0x2a8662e0]
add esp, 0xc
push dword [ebp - 0x198e4]
mov esi, dword [eax + 0x16c]
mov ecx, esi
push dword [ebp - 0x198e8]
call dword [0x2a8523cc]
call esi
pop ecx
pop ecx
push 0xa
push dword [ebp - 0x198fc]
inc edi
push edi
mov dword [ebp - 0x198dc], edi
call fcn.2a83f0f3
add esp, 0xc
cmp edi, 0xc8
jl 0x2a836a42
lea eax, [ebp - 0x198d0]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x198e4], eax
mov eax, dword [0x2a86631c]
push 0x2a853ed4
push dword [ebx]
mov esi, dword [eax + 0xb4]
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
pop ecx
test ax, ax
je 0x2a836c12
mov edi, dword [0x2a86631c]
push 0x2a853ed4
push dword [ebx]
mov esi, dword [edi + 0x114]
mov ecx, esi
call dword [0x2a8523cc]
call esi
mov esi, dword [edi + 0x54]
pop ecx
pop ecx
push eax
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x198f0], eax
mov eax, dword [0x2a86631c]
push 0x2a853ed8
push dword [ebx]
mov esi, dword [eax + 0xb4]
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
pop ecx
test ax, ax
je 0x2a836c70
mov edi, dword [0x2a86631c]
push 0x2a853ed8
push dword [ebx]
mov esi, dword [edi + 0x114]
mov ecx, esi
call dword [0x2a8523cc]
call esi
mov esi, dword [edi + 0x54]
pop ecx
pop ecx
push eax
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x198f4], eax
mov eax, dword [0x2a86631c]
push 0x2a853edc
push dword [ebx]
mov esi, dword [eax + 0xb4]
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
pop ecx
test ax, ax
je 0x2a836cd2
mov edi, dword [0x2a86631c]
push 0x2a853edc
push dword [ebx]
mov esi, dword [edi + 0x114]
mov ecx, esi
call dword [0x2a8523cc]
call esi
mov esi, dword [edi + 0x54]
pop ecx
pop ecx
push eax
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x198e0], edi
jmp 0x2a836cd8
mov edi, dword [ebp - 0x198e0]
mov eax, dword [0x2a86631c]
push str.totalAttachmentSize
push dword [ebx]
mov esi, dword [eax + 0xb4]
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
pop ecx
test ax, ax
je 0x2a836d26
xor eax, eax
push eax
push eax
mov eax, dword [0x2a86631c]
push str.totalAttachmentSize
push dword [ebx]
mov esi, dword [eax + 0x23c]
mov ecx, esi
call dword [0x2a8523cc]
call esi
add esp, 0x10
mov dword [ebp - 0x198dc], edx
jmp 0x2a836d38
mov eax, dword [ebp - 0x19904]
mov dword [ebp - 0x198dc], eax
mov eax, dword [ebp - 0x19908]
mov dword [ebp - 0x198e8], eax
lea eax, [ebp - 0x100]
push 0xc8
push eax
mov eax, dword [0x2a86625c]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x100]
push eax
mov eax, dword [0x2a86631c]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
push eax
mov eax, dword [0x2a86631c]
mov esi, dword [eax + 0x54]
mov ecx, esi
call dword [0x2a8523cc]
call esi
pop ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x198d4], eax
mov eax, dword [0x2a86625c]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x2a8523cc]
call esi
push dword [ebp - 0x198dc]
mov ecx, dword [ebx + 0x30]
lea eax, [ebx + 0x2c]
push dword [ebp - 0x198e8]
push edi
push dword [ebp - 0x198f4]
mov edi, dword [ebp - 0x198e4]
push dword [ebp - 0x198f0]
mov esi, dword [ecx]
push edi
push dword [ebp - 0x198ec]
push dword [ebp - 0x198d8]
mov esi, dword [esi + 0x90]
push dword [ebp - 0x198d4]
push dword [ebp - 0x19900]
push dword [ebp - 0x198f8]
push eax
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push ecx
mov ecx, esi
call dword [0x2a8523cc]
call esi
mov dword [ebx + 8], eax
mov eax, dword [0x2a86625c]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x2a8523cc]
call esi
cmp dword [ebx + 8], 0
jne 0x2a836e2b
xor eax, eax
inc eax
mov word [ebx + 0x34], ax
mov eax, dword [ebp - 0x198d4]
test eax, eax
je 0x2a836e3c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x198d8]
test eax, eax
je 0x2a836e4d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x198ec]
test eax, eax
je 0x2a836e5e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x2a836e69
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x198f0]
test eax, eax
je 0x2a836e7a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x198f4]
test eax, eax
je 0x2a836e8b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x198e0]
test eax, eax
je 0x2a837038
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x2a837038
push 0xc
call fcn.2a83f0f3
mov edi, eax
pop ecx
mov dword [ebp - 0x198f8], edi
xor eax, eax
inc eax
mov byte [ebp - 4], al
test edi, edi
je 0x2a836eeb
push str.MAPIFreeBuffer
push dword [ebx + 0x10]
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MAPIAllocateBuffer
push dword [ebx + 0x10]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [edi], vtable.MapiAllocator.0
mov dword [edi + 4], eax
mov dword [edi + 8], esi
jmp 0x2a836eed
xor edi, edi
push str.MAPIInitialize
push dword [ebx + 0x10]
mov byte [ebp - 4], 0
mov dword [ebx + 0x14], edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MAPIUninitialize
push dword [ebx + 0x10]
mov dword [ebx + 0x20], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MAPILogonEx
push dword [ebx + 0x10]
mov dword [ebx + 0x24], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebx + 0x28], eax
mov ecx, ebx
and dword [0x2a866380], 0
call fcn.2a83a1c4
test ax, ax
je 0x2a837031
mov esi, dword [ebx + 0x20]
mov ecx, esi
push 0
call dword [0x2a8523cc]
call esi
mov dword [ebx + 8], eax
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 0xf
push 0x2a852cd4
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.2a805ce8
cmp dword [ebx + 8], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
jl 0x2a836fd3
push str.Trying_to_Logon_MAPI
call fcn.2a805ce8
xor ecx, ecx
lea eax, [ebx + 4]
push eax
xor eax, eax
cmp word [ebx + 0xc], cx
sete al
add eax, 0x62
push eax
mov eax, dword [0x2a86631c]
push ecx
push ecx
push ecx
mov esi, dword [eax + 0xcc]
mov ecx, esi
push str.parent
push dword [ebx]
call dword [0x2a8523cc]
call esi
mov esi, dword [ebx + 0x28]
add esp, 0xc
mov ecx, esi
push eax
call dword [0x2a8523cc]
call esi
mov dword [ebx + 8], eax
lea ecx, [ebp - 0x28]
push str.MAPI_Logon_successful
jmp 0x2a836fd8
push str.MAPI_Initialize_failed
call fcn.2a805ce8
xor eax, eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2a837038
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x198d4], eax
mov dword [ebp - 0x198dc], ecx
mov byte [ebp - 4], 3
cmp eax, 0x1000
jb 0x2a837026
lea eax, [ebp - 0x198d4]
push eax
lea eax, [ebp - 0x198dc]
push eax
call fcn.2a83f0f3
mov eax, dword [ebp - 0x198d4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x198dc]
push eax
push ecx
call fcn.2a83f0f3
pop ecx
pop ecx
jmp 0x2a837038
mov dword [ebx + 8], 0x80040102
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.2a801dd0
leave
ret 8