Function at 0x140007810
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r14, rdx
mov rdi, rcx
xor esi, esi
mov qword [rcx], rsi
mov dword [rcx + 8], esi
mov dword [rcx + 0xc], esi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
mov dword [rcx + 0x20], 1
mov dword [rcx + 0x24], esi
mov dword [rcx + 0x4c], esi
add rcx, 0x58
call fcn.1400033a0
nop
lea rcx, str.mapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rdi + 0x10], rax
lea ecx, [rsi + 0x18]
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbp, rax
test rax, rax
je 0x1400078bf
lea rdx, str.MAPIFreeBuffer
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.MAPIAllocateBuffer
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, vtable.MapiAllocator.0
mov qword [rbp], rcx
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rbx
jmp 0x1400078c2
mov rbp, rsi
mov qword [rdi + 0x18], rbp
lea rdx, str.MAPIInitialize
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x28], rax
lea rdx, str.MAPIUninitialize
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x30], rax
lea rdx, str.MAPILogonEx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x38], rax
lea rdx, str.MAPIAdminProfiles
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x140007a57
cmp qword [rdi + 0x30], 0
je 0x140007a57
cmp qword [rdi + 0x38], 0
je 0x140007a57
xor ecx, ecx
call rax
mov dword [rdi + 8], eax
test eax, eax
js 0x140007a5e
mov dword [rsp + 0xd0], esi
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, str.parent
lea rcx, [rsp + 0x48]
call fcn.14000e3c0
nop
mov r8, rax
lea rdx, [rsp + 0x38]
lea rcx, [rdi + 0x58]
call fcn.14000cb10
nop
mov rax, qword [rsp + 0x68]
mov rcx, rsi
mov qword [rsp + 0x68], rcx
test rax, rax
je 0x14000799d
mov rcx, rax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov r11, qword [rsp + 0x58]
mov rcx, rsi
mov qword [rsp + 0x58], rcx
test r11, r11
je 0x1400079c1
mov rcx, r11
call sub.MSVCR90.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x58]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov r13, qword [rdi + 0x88]
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1400079dd
cmp rbx, qword [rdi + 0x58]
je 0x1400079e3
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rbp, qword [rsp + 0x40]
cmp rbp, r13
je 0x140007a38
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, [0x14001a274]
lea rcx, [rsp + 0x48]
call fcn.14000e3c0
mov r12, rax
test rbx, rbx
jne 0x140007a15
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
jmp 0x140007a18
mov rsi, qword [rbx]
cmp rbp, qword [rsi + 0x30]
jne 0x140007a24
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea rcx, [rbp + 0x48]
lea r8, [rsp + 0xd0]
mov rdx, r12
call fcn.140011e20
mov ecx, dword [rsp + 0xd0]
mov qword [rsp + 0x20], rdi
mov r9d, 0x63
xor r8d, r8d
xor edx, edx
call qword [rdi + 0x38]
mov dword [rdi + 8], eax
jmp 0x140007a5e
mov dword [rdi + 8], 0x80040102
mov rcx, r14
call fcn.140003420
mov rax, rdi
add rsp, 0x80
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret