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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2150]
mov eax, 0x2250
call fcn.140059cb0
sub rsp, rax
mov rax, qword [0x1400878f0]
xor rax, rsp
mov qword [rbp + 0x2140], rax
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor r13d, r13d
test rdx, rdx
jne 0x14004a802
mov edi, r13d
jmp 0x14004a81e
mov r8d, 0x400
lea rdx, [rbp + 0x540]
mov rcx, rax
call fcn.14004d390
lea rdi, [rbp + 0x540]
lea rcx, str.MAPI32.DLL
call fcn.14004ad44
mov r14, rax
test rax, rax
je 0x14004abf2
lea rdx, str.MAPISendMail
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
mov qword [rsp + 0x60], rax
lea rdx, str.MAPIResolveName
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [rsp + 0x48], rax
lea rdx, str.MAPIFreeBuffer
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r15, r15
je 0x14004abe9
test rsi, rsi
je 0x14004abe9
test rax, rax
je 0x14004abe9
test rdi, rdi
je 0x14004a8b0
cmp byte [rdi], 0x2e
jne 0x14004a8b0
mov byte [rsp + 0x40], 1
inc rdi
cmp byte [rdi], r13b
jne 0x14004a8b5
mov rdi, r13
jmp 0x14004a8b5
mov byte [rsp + 0x40], r13b
xor ecx, ecx
call fcn.14004adc4
lea rdx, [rbp + 0x1140]
mov esi, 0x800
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r8d, esi
lea rdx, [rbp + 0x940]
mov rcx, rbx
call fcn.14004d390
mov dl, 1
lea rcx, [rbp + 0x940]
call fcn.140034cc0
lea r9, [rsp + 0x58]
lea r8, [rbp + 0x20]
mov edx, 0x104
lea rcx, [rbp + 0x940]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov qword [rbp - 0x70], r13
mov dword [rbp - 0x64], r13d
mov qword [rbp - 0x50], r13
or dword [rbp - 0x68], 0xffffffff
lea rax, [rbp + 0x20]
mov qword [rbp - 0x60], rax
mov rbx, qword [rsp + 0x58]
mov qword [rbp - 0x58], rbx
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x40]
call fcn.14005c1a0
mov dword [rbp + 0x10], 1
lea rax, [rbp - 0x70]
mov qword [rbp + 0x18], rax
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x38], rbx
mov rbx, r13
mov qword [rsp + 0x68], rbx
mov rsi, r13
mov qword [rsp + 0x70], r13
mov r15, r13
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
mov byte [rbp - 0x78], r13b
test rdi, rdi
je 0x14004ab13
mov r15, rdi
mov r13, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.14004a6ac
mov eax, dword [rbp]
lea rsi, [rax + rax*4]
mov rbx, qword [rsp + 0x68]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + rsi*8], xmm0
movups xmmword [rbx + rsi*8 + 0x10], xmm0
mov qword [rbx + rsi*8 + 0x20], rax
mov r8d, 0x405
lea rdx, str.SMTP:
lea rcx, [rbp + 0x130]
call fcn.14004a2a8
mov r8d, 0x405
mov rdx, r15
lea rcx, [rbp + 0x130]
call fcn.14004a26c
lea rdx, [0x1400756e0]
mov rcx, r15
call fcn.1400634f0
mov r15, rax
test rax, rax
je 0x14004aa06
inc r15
movsx ecx, byte [r15]
call fcn.140049f50
test al, al
jne 0x14004a9f6
lea rdx, [0x1400756e4]
lea rcx, [rbp + 0x130]
call fcn.1400634f0
test rax, rax
je 0x14004aa21
mov byte [rax], 0
mov dword [rbx + rsi*8 + 4], 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9d, 1
lea r8, [rbp + 0x135]
xor edx, edx
xor ecx, ecx
mov rax, r13
call qword [case.0x140040ed3.0]
test eax, eax
jne 0x14004aae4
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
mov dword [rbx + rsi*8], ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14004aa81
call fcn.140064824
mov qword [rbx + rsi*8 + 8], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14004aa99
call fcn.140064824
mov qword [rbx + rsi*8 + 0x10], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x18]
mov dword [rbx + rsi*8 + 0x18], eax
mov rcx, qword [rsp + 0x48]
cmp qword [rcx + 0x20], 0
je 0x14004aad9
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x14004aad9
mov ecx, eax
call fcn.14005ede0
mov qword [rbx + rsi*8 + 0x20], rax
mov rdx, qword [rsp + 0x48]
mov r8d, dword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rcx, rax
call fcn.14005baf0
mov rcx, qword [rsp + 0x48]
mov rax, r12
call qword [case.0x140040ed3.0]
jmp 0x14004aaf5
lea rcx, [rbp + 0x130]
call fcn.140064824
mov qword [rbx + rsi*8 + 0x10], rax
inc dword [rbp]
test r15, r15
jne 0x14004a983
mov qword [rbp + 8], rbx
mov r13b, byte [rbp - 0x78]
mov r15, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
neg rdi
sbb r9d, r9d
and r9d, 0xfffffff8
add r9d, 9
and dword [rsp + 0x20], 0
lea r8, [rbp - 0x40]
xor edx, edx
xor ecx, ecx
mov rax, qword [rsp + 0x60]
call qword [case.0x140040ed3.0]
cmp eax, 2
setb r12b
test rsi, rsi
je 0x14004ab7c
lea rdi, [rbx + 0x10]
mov rcx, qword [rdi - 8]
test rcx, rcx
je 0x14004ab57
call fcn.14005edd8
mov rcx, qword [rdi]
test rcx, rcx
je 0x14004ab64
call fcn.14005edd8
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14004ab72
call fcn.14005edd8
add rdi, 0x28
sub rsi, 1
jne 0x14004ab49
lea rcx, [rbp + 0x1140]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov cl, 1
call fcn.14004adc4
test r12b, r12b
je 0x14004abb1
cmp byte [rsp + 0x40], 0
je 0x14004abc1
mov rcx, qword [rsp + 0x50]
call fcn.140023184
jmp 0x14004abc1
mov rdx, qword [rsp + 0x50]
mov ecx, 0x4e
call fcn.1400011c0
nop
test rbx, rbx
je 0x14004abe4
test r13b, r13b
je 0x14004abdb
lea rdx, [r15 + r15*4]
shl rdx, 3
mov rcx, rbx
call fcn.140047b7c
mov rcx, rbx
call fcn.14005edd8
nop
mov al, r12b
jmp 0x14004abf4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov rcx, qword [rbp + 0x2140]
xor rcx, rsp
call fcn.140059d10
mov rbx, qword [rsp + 0x22a0]
add rsp, 0x2250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret