Function at 0x140007e10
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x118
mov rbx, rcx
xor r15d, r15d
mov dword [rax - 0xb8], r15d
mov qword [rax - 0xb0], r15
mov qword [rax - 0xa8], r15
mov qword [rax - 0xa0], r15
mov qword [rax - 0x98], r15
mov qword [rax - 0x90], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
mov ecx, 0x80
call fcn.140011ee4
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x30], rax
lea r12, vtable.MapiAllocator.0
nop dword [rax + rax]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14002d398]
test eax, eax
jne 0x1400083f7
mov dword [rsp + 0x158], 0x80
call fcn.14000e0e0
lea r9, [rax + 0x50]
lea rcx, [rsp + 0x158]
mov qword [rsp + 0x20], rcx
mov edx, 0xffffffff
xor ecx, ecx
lea r8d, [rcx + 1]
call qword [sym.imp.ole32.dll_CoWaitForMultipleHandles]
test eax, eax
jne 0x140008166
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14002d398]
test eax, eax
jne 0x140008166
call fcn.14000e0e0
lea rcx, [rax + 0x70]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.14000e0e0
mov r14, rax
mov r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14000f800
mov rcx, r14
call fcn.14000fbbc
lea rcx, [rbx + 0x90]
lea rdx, [r14 + 0x30]
call fcn.140003b30
mov rdi, qword [r14 + 0x30]
mov r8, qword [rdi + 8]
lea rdx, [r14 + 0x30]
lea rcx, [r14 + 0x30]
call fcn.140004680
mov qword [rdi + 8], rdi
mov qword [rdi], rdi
mov qword [rdi + 0x10], rdi
mov qword [r14 + 0x38], r15
mov rcx, qword [r14 + 0x50]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [r14 + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.14000e0e0
lea rcx, [rax + 0x70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
cmp dword [rbx + 0x68], 0
jne 0x140008065
lea rcx, str.mapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x30], rax
mov ecx, 0x18
call fcn.140011ee4
mov rsi, rax
lea rdx, str.MAPIFreeBuffer
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rdx, str.MAPIAllocateBuffer
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi], r12
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rdi
mov qword [rbx + 0x38], rsi
lea rdx, str.MAPIInitialize
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
lea rdx, str.MAPIUninitialize
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
lea rdx, str.MAPILogonEx
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x58], rax
lea rdx, str.MAPIAdminProfiles
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x60], rax
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x140008065
cmp qword [rbx + 0x50], 0
je 0x140008065
cmp qword [rbx + 0x58], 0
je 0x140008065
xor ecx, ecx
call qword [0x14002d398]
mov dword [rbx + 0x28], eax
test eax, eax
js 0x140008065
mov dword [rbx + 0x68], 1
mov rcx, rbx
call fcn.140008550
lea rax, [rsp + 0x50]
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.14000f800
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.1400087b0
mov rsi, rax
lea rax, [rsp + 0x30]
cmp rax, rsi
je 0x14000811e
mov rdi, qword [rsp + 0x30]
mov r8, qword [rdi + 8]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140004680
mov qword [rdi + 8], rdi
mov qword [rdi], rdi
mov qword [rdi + 0x10], rdi
mov qword [rsp + 0x38], r15
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsi]
mov qword [rsp + 0x30], rax
mov qword [rsi], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsi + 8]
mov qword [rsp + 0x38], rax
mov qword [rsi + 8], rcx
mov r8, qword [rsp + 0x80]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x80]
call fcn.140004680
mov edx, 0x80
mov rcx, qword [rsp + 0x80]
call fcn.140011f20
nop
jmp 0x140008166
call fcn.14000e0e0
lea r9, [rax + 0x58]
lea rcx, [rsp + 0x158]
mov qword [rsp + 0x20], rcx
mov edx, 0xffffffff
xor ecx, ecx
lea r8d, [rcx + 1]
call qword [sym.imp.ole32.dll_CoWaitForMultipleHandles]
test eax, eax
jne 0x140007e90
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14002d398]
test eax, eax
jne 0x140007e90
mov edi, dword [rbx + 0x28]
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, [0x1400366ec]
lea rcx, [rsp + 0xd0]
call fcn.14000f22c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140011024
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.error
lea rcx, [rsp + 0xd0]
call fcn.14000f22c
nop
mov r8, rax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x30]
call fcn.140003eb0
mov rcx, qword [rax]
add rcx, 0x50
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x50]
call fcn.14000f800
nop
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xf0], r15
test rcx, rcx
je 0x140008274
call fcn.140011f20
mov rcx, qword [rsp + 0xf0]
test rcx, rcx
je 0x140008274
mov edx, 2
call fcn.140011f20
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], r15
test rcx, rcx
je 0x1400082a5
call fcn.140011f20
mov rcx, qword [rsp + 0xe0]
test rcx, rcx
je 0x1400082a5
mov edx, 1
call fcn.140011f20
call fcn.14000e0e0
lea rcx, [rax + 0x98]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0xc8], rax
mov ecx, 0x80
call fcn.140011ee4
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x40], rax
movzx r8d, byte [rsp + 0x150]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400045d0
mov qword [rsp + 0xc8], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x168], rax
call fcn.14000e0e0
mov rdi, rax
lea rcx, [rax + 0x40]
lea rdx, [rsp + 0x40]
call fcn.140003b30
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov r8, qword [rsp + 0x40]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140004680
mov edx, 0x80
mov rcx, qword [rsp + 0x40]
call fcn.140011f20
call fcn.14000e0e0
lea rcx, [rax + 0x98]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x70], r15
test rcx, rcx
je 0x1400083c2
call fcn.140011f20
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400083c2
mov edx, 2
call fcn.140011f20
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], r15
test rcx, rcx
je 0x140007e90
call fcn.140011f20
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140007e90
mov edx, 1
call fcn.140011f20
jmp 0x140007e90
mov rcx, rbx
call fcn.1400084a0
nop
mov r8, qword [rsp + 0x30]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140004680
mov edx, 0x80
mov rcx, qword [rsp + 0x30]
call fcn.140011f20
nop
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xb0], r15
test rcx, rcx
je 0x140008459
call fcn.140011f20
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x140008459
mov edx, 2
call fcn.140011f20
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0xa0], r15
test rcx, rcx
je 0x14000848a
call fcn.140011f20
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x14000848a
mov edx, 1
call fcn.140011f20
add rsp, 0x118
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret