Function at 0x14006c230
Capabilities:
Get common file path
Set current directory

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa10
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0xa00], rax
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x40], rcx
lea rcx, str.MAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r12, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14006c647
lea rdx, str.MAPISendMail
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [rsp + 0x48], rax
lea rdx, str.MAPIResolveName
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov qword [rsp + 0x30], rax
lea rdx, str.MAPIFreeBuffer
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rsi, rsi
je 0x14006c63c
test rdi, rdi
je 0x14006c63c
test rax, rax
je 0x14006c63c
test rbx, rbx
je 0x14006c307
cmp byte [rbx], 0x2e
jne 0x14006c307
mov r15b, 1
inc rbx
mov al, byte [rbx]
neg al
sbb rcx, rcx
and rbx, rcx
jmp 0x14006c30a
xor r15b, r15b
xor ecx, ecx
call fcn.14006c184
lea rdx, [rsp + 0x600]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x100]
mov edx, 0x104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rsp + 0x78]
call fcn.1400a9314
or dword [rsp + 0x80], 0xffffffff
lea rax, [rsp + 0x100]
mov qword [rsp + 0x88], rax
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x90], rdi
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0xa0]
call fcn.1400a9314
mov dword [rsp + 0xf0], 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xa8], rdi
xor r13d, r13d
mov qword [rsp + 0x50], r13
xor esi, esi
mov qword [rsp + 0x58], rsi
and qword [rsp + 0x60], rsi
test rbx, rbx
je 0x14006c573
mov rsi, rbx
mov r12, qword [rsp + 0x30]
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.14006c1cc
mov edx, dword [rsp + 0xe0]
lea rax, [rdx + rdx*4]
mov r13, qword [rsp + 0x50]
lea rbp, [r13 + rax*8]
xor edx, edx
lea r8d, [rdx + 0x28]
mov rcx, rbp
call fcn.1400a9314
lea rdx, [rsp + 0x210]
mov eax, dword [str.SMTP:]
mov dword [rdx], eax
movzx eax, word [0x1400c93f8]
mov word [rdx + 4], ax
lea rdi, [rsp + 0x210]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor ecx, ecx
mov al, byte [rsi + rcx]
mov byte [rdi + rcx - 1], al
inc rcx
test al, al
jne 0x14006c433
lea rdx, [0x1400c93f0]
mov rcx, rsi
call fcn.1400a95f0
mov rsi, rax
test rax, rax
je 0x14006c467
inc rsi
movsx ecx, byte [rsi]
call fcn.14006b49c
test al, al
jne 0x14006c458
lea rdx, [0x1400c93f0]
lea rcx, [rsp + 0x210]
call fcn.1400a95f0
test rax, rax
je 0x14006c483
mov byte [rax], 0
mov dword [rbp + 4], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9d, 1
lea r8, [rsp + 0x215]
xor edx, edx
xor ecx, ecx
call r12
test eax, eax
jne 0x14006c53b
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
mov dword [rbp], ecx
mov rax, qword [rsp + 0x30]
cmp qword [rax + 8], 0
je 0x14006c4de
mov rcx, qword [rax + 8]
call fcn.1400ba440
mov qword [rbp + 8], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], 0
je 0x14006c4f7
mov rcx, qword [rax + 0x10]
call fcn.1400ba440
mov qword [rbp + 0x10], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
mov dword [rbp + 0x18], eax
mov rcx, qword [rsp + 0x30]
cmp qword [rcx + 0x20], 0
je 0x14006c536
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x14006c536
mov rcx, rax
call fcn.1400a879c
mov qword [rbp + 0x20], rax
mov rdx, qword [rsp + 0x30]
mov r8d, dword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rcx, rax
call fcn.1400a8fe0
mov rcx, qword [rsp + 0x30]
call r14
jmp 0x14006c54c
lea rcx, [rsp + 0x210]
call fcn.1400ba440
mov qword [rbp + 0x10], rax
inc dword [rsp + 0xe0]
test rsi, rsi
jne 0x14006c3d4
mov qword [rsp + 0xe8], r13
mov rsi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
neg rbx
sbb r9d, r9d
and r9d, 0xfffffff8
add r9d, 9
and dword [rsp + 0x20], 0
lea r8, [rsp + 0xa0]
xor edx, edx
xor ecx, ecx
call qword [rsp + 0x48]
test eax, eax
sete bl
test rsi, rsi
je 0x14006c5d7
lea rdi, [r13 + 0x10]
mov rcx, qword [rdi - 8]
test rcx, rcx
je 0x14006c5b2
call fcn.1400a8854
mov rcx, qword [rdi]
test rcx, rcx
je 0x14006c5bf
call fcn.1400a8854
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14006c5cd
call fcn.1400a8854
add rdi, 0x28
sub rsi, 1
jne 0x14006c5a4
lea rcx, [rsp + 0x600]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov cl, 1
call fcn.14006c184
test bl, bl
je 0x14006c608
test r15b, r15b
je 0x14006c62b
mov rcx, rbp
call fcn.1400ac600
jmp 0x14006c62b
mov rcx, rbp
call fcn.14006b780
mov rdi, rax
mov ecx, 0x4de
call fcn.140061d94
mov rdx, rax
mov r8, rdi
xor ecx, ecx
call fcn.14009666c
nop
test r13, r13
je 0x14006c638
mov rcx, r13
call fcn.1400a8854
mov al, bl
jmp 0x14006c647
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov rcx, qword [rsp + 0xa00]
xor rcx, rsp
call fcn.1400a86e0
mov rbx, qword [rsp + 0xa60]
add rsp, 0xa10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret