Function at 0x140007660
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.140011734
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 0x140007c47
mov dword [rsp + 0x158], 0x80
call fcn.14000d930
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 0x1400079b6
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14002d398]
test eax, eax
jne 0x1400079b6
call fcn.14000d930
lea rcx, [rax + 0x70]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.14000d930
mov r14, rax
mov r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14000f050
mov rcx, r14
call fcn.14000f40c
lea rcx, [rbx + 0x90]
lea rdx, [r14 + 0x30]
call fcn.140003910
mov rdi, qword [r14 + 0x30]
mov r8, qword [rdi + 8]
lea rdx, [r14 + 0x30]
lea rcx, [r14 + 0x30]
call fcn.140004020
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.14000d930
lea rcx, [rax + 0x70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
cmp dword [rbx + 0x68], 0
jne 0x1400078b5
lea rcx, str.mapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x30], rax
mov ecx, 0x18
call fcn.140011734
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 0x1400078b5
cmp qword [rbx + 0x50], 0
je 0x1400078b5
cmp qword [rbx + 0x58], 0
je 0x1400078b5
xor ecx, ecx
call qword [0x14002d398]
mov dword [rbx + 0x28], eax
test eax, eax
js 0x1400078b5
mov dword [rbx + 0x68], 1
mov rcx, rbx
call fcn.140007da0
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.14000f050
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.140008000
mov rsi, rax
lea rax, [rsp + 0x30]
cmp rax, rsi
je 0x14000796e
mov rdi, qword [rsp + 0x30]
mov r8, qword [rdi + 8]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140004020
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.140004020
mov edx, 0x80
mov rcx, qword [rsp + 0x80]
call fcn.140011770
nop
jmp 0x1400079b6
call fcn.14000d930
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 0x1400076e0
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14002d398]
test eax, eax
jne 0x1400076e0
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, [0x1400366dc]
lea rcx, [rsp + 0xd0]
call fcn.14000ea7c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140010874
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.error
lea rcx, [rsp + 0xd0]
call fcn.14000ea7c
nop
mov r8, rax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x30]
call fcn.140003b30
mov rcx, qword [rax]
add rcx, 0x50
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x50]
call fcn.14000f050
nop
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xf0], r15
test rcx, rcx
je 0x140007ac4
call fcn.140011770
mov rcx, qword [rsp + 0xf0]
test rcx, rcx
je 0x140007ac4
mov edx, 2
call fcn.140011770
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], r15
test rcx, rcx
je 0x140007af5
call fcn.140011770
mov rcx, qword [rsp + 0xe0]
test rcx, rcx
je 0x140007af5
mov edx, 1
call fcn.140011770
call fcn.14000d930
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.140011734
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.140003f70
mov qword [rsp + 0xc8], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x168], rax
call fcn.14000d930
mov rdi, rax
lea rcx, [rax + 0x40]
lea rdx, [rsp + 0x40]
call fcn.140003910
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.140004020
mov edx, 0x80
mov rcx, qword [rsp + 0x40]
call fcn.140011770
call fcn.14000d930
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 0x140007c12
call fcn.140011770
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140007c12
mov edx, 2
call fcn.140011770
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], r15
test rcx, rcx
je 0x1400076e0
call fcn.140011770
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400076e0
mov edx, 1
call fcn.140011770
jmp 0x1400076e0
mov rcx, rbx
call fcn.140007cf0
nop
mov r8, qword [rsp + 0x30]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140004020
mov edx, 0x80
mov rcx, qword [rsp + 0x30]
call fcn.140011770
nop
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xb0], r15
test rcx, rcx
je 0x140007ca9
call fcn.140011770
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x140007ca9
mov edx, 2
call fcn.140011770
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0xa0], r15
test rcx, rcx
je 0x140007cda
call fcn.140011770
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140007cda
mov edx, 1
call fcn.140011770
add rsp, 0x118
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret