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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2150]
mov eax, 0x2250
call fcn.14005a5a0
sub rsp, rax
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x22a0], rbx
mov rax, qword [0x14008a6c0]
xor rax, rsp
mov qword [rbp + 0x2140], rax
mov rax, rdx
mov r15, rcx
mov qword [rsp + 0x50], rcx
test rdx, rdx
jne 0x14004aea6
xor edi, edi
jmp 0x14004aec2
mov r8d, 0x400
lea rdx, [rbp + 0x540]
mov rcx, rax
call fcn.14004d840
lea rdi, [rbp + 0x540]
lea rcx, str.MAPI32.DLL
call fcn.14004b3f0
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14004b28d
lea rdx, str.MAPISendMail
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov qword [rsp + 0x58], rax
lea rdx, str.MAPIResolveName
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rsp + 0x38], rax
lea rdx, str.MAPIFreeBuffer
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r14, r14
je 0x14004b284
test rbx, rbx
je 0x14004b284
test rax, rax
je 0x14004b284
test rdi, rdi
je 0x14004af5b
cmp byte [rdi], 0x2e
jne 0x14004af5b
mov byte [rsp + 0x30], 1
inc rdi
mov al, byte [rdi]
neg al
sbb rcx, rcx
and rdi, rcx
jmp 0x14004af60
mov byte [rsp + 0x30], 0
xor ecx, ecx
call fcn.14004b470
lea rdx, [rbp + 0x1140]
mov ebx, 0x800
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r8d, ebx
lea rdx, [rbp + 0x940]
mov rcx, r15
call fcn.14004d840
mov dl, 1
lea rcx, [rbp + 0x940]
call fcn.1400349e4
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x20]
mov edx, 0x104
lea rcx, [rbp + 0x940]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rbp - 0x70]
call fcn.14005c700
or dword [rbp - 0x68], 0xffffffff
lea rax, [rbp + 0x20]
mov qword [rbp - 0x60], rax
mov rbx, qword [rsp + 0x40]
mov qword [rbp - 0x58], rbx
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x40]
call fcn.14005c700
mov dword [rbp + 0x10], 1
lea rax, [rbp - 0x70]
mov qword [rbp + 0x18], rax
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x38], rbx
xor r13d, r13d
mov qword [rsp + 0x60], r13
xor r14d, r14d
mov qword [rsp + 0x68], r14
and qword [rsp + 0x70], r13
and qword [rsp + 0x78], r13
mov byte [rbp - 0x80], r13b
test rdi, rdi
je 0x14004b1c8
mov r14, rdi
mov rsi, qword [rsp + 0x38]
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.14004ad48
mov eax, dword [rbp]
lea rcx, [rax + rax*4]
mov r13, qword [rsp + 0x60]
lea rbx, [rcx*8]
add rbx, r13
xor edx, edx
lea r8d, [rdx + 0x28]
mov rcx, rbx
call fcn.14005c700
mov r8d, 0x405
lea rdx, str.SMTP:
lea rcx, [rbp + 0x130]
call fcn.14004a900
mov r8d, 0x405
mov rdx, r14
lea rcx, [rbp + 0x130]
call fcn.14004a8c4
lea rdx, [0x140076e20]
mov rcx, r14
call fcn.140063618
mov r14, rax
test rax, rax
je 0x14004b0b8
inc r14
movsx ecx, byte [r14]
call fcn.14004a5a8
test al, al
jne 0x14004b0a8
lea rdx, [0x140076e24]
lea rcx, [rbp + 0x130]
call fcn.140063618
test rax, rax
je 0x14004b0d3
mov byte [rax], 0
mov dword [rbx + 4], 1
mov rcx, rsi
call qword [fcn.140023ba0]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9d, 1
lea r8, [rbp + 0x135]
xor edx, edx
xor ecx, ecx
call rsi
test eax, eax
jne 0x14004b199
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
mov dword [rbx], ecx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14004b132
call fcn.140064944
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14004b149
call fcn.140064944
mov qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rbx + 0x18], eax
mov r15, qword [rsp + 0x38]
cmp qword [r15 + 0x20], 0
je 0x14004b188
mov eax, dword [r15 + 0x18]
test eax, eax
je 0x14004b188
mov ecx, eax
call fcn.14005eb90
mov qword [rbx + 0x20], rax
mov rdx, qword [rsp + 0x38]
mov r8d, dword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rcx, rax
call fcn.14005c2b0
mov r15, qword [rsp + 0x38]
mov rcx, r12
call qword [fcn.140023ba0]
mov rcx, r15
call r12
jmp 0x14004b1a9
lea rcx, [rbp + 0x130]
call fcn.140064944
mov qword [rbx + 0x10], rax
inc dword [rbp]
test r14, r14
jne 0x14004b02f
mov qword [rbp + 8], r13
mov r14, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
neg rdi
sbb ebx, ebx
and ebx, 0xfffffff8
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call qword [fcn.140023ba0]
and dword [rsp + 0x20], 0
lea r9d, [rbx + 9]
lea r8, [rbp - 0x40]
xor edx, edx
xor ecx, ecx
call rdi
cmp eax, 2
setb dil
test r14, r14
je 0x14004b234
lea rbx, [r13 + 0x10]
mov rcx, qword [rbx - 8]
test rcx, rcx
je 0x14004b20f
call fcn.14005eb88
mov rcx, qword [rbx]
test rcx, rcx
je 0x14004b21c
call fcn.14005eb88
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004b22a
call fcn.14005eb88
add rbx, 0x28
sub r14, 1
jne 0x14004b201
lea rcx, [rbp + 0x1140]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov cl, 1
call fcn.14004b470
test dil, dil
je 0x14004b267
cmp byte [rsp + 0x30], 0
je 0x14004b275
mov rcx, r15
call fcn.140022d6c
jmp 0x14004b275
mov rdx, r15
mov ecx, 0x4e
call fcn.140001168
nop
lea rcx, [rsp + 0x60]
call fcn.14004ad04
mov al, dil
jmp 0x14004b28f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov rcx, qword [rbp + 0x2140]
xor rcx, rsp
call fcn.14005a610
mov rbx, qword [rsp + 0x22a0]
add rsp, 0x2250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret