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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2240
call fcn.1400d8110
sub rsp, rax
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x2290], rbx
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x2230], rax
mov rax, rdx
mov r12, rcx
mov qword [rsp + 0x40], rcx
test rdx, rdx
jne 0x1400814e3
xor ebx, ebx
jmp 0x140081501
mov r8d, 0x400
lea rdx, [rsp + 0xe30]
mov rcx, rax
call fcn.140087f80
lea rbx, [rsp + 0xe30]
lea rcx, str.MAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140081908
lea rdx, str.MAPISendMail
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [rsp + 0x50], rax
lea rdx, str.MAPIResolveName
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov qword [rsp + 0x30], rax
lea rdx, str.MAPIFreeBuffer
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rsi, rsi
je 0x1400818fd
test rdi, rdi
je 0x1400818fd
test rax, rax
je 0x1400818fd
test rbx, rbx
je 0x140081599
cmp byte [rbx], 0x2e
jne 0x140081599
mov r15b, 1
inc rbx
mov al, byte [rbx]
neg al
sbb rcx, rcx
and rbx, rcx
jmp 0x14008159c
xor r15b, r15b
xor ecx, ecx
call fcn.1400812c8
lea rdx, [rsp + 0x1230]
mov edi, 0x800
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r8, rdi
lea rdx, [rsp + 0x630]
mov rcx, r12
call fcn.140087f80
mov dl, 1
lea rcx, [rsp + 0x630]
call fcn.140061e00
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x110]
mov edx, 0x104
lea rcx, [rsp + 0x630]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rsp + 0x78]
call fcn.1400c7170
or dword [rsp + 0x80], 0xffffffff
lea rax, [rsp + 0x110]
mov qword [rsp + 0x88], rax
mov rdi, qword [rsp + 0x48]
mov qword [rsp + 0x90], rdi
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0xb0]
call fcn.1400c7170
mov dword [rsp + 0x100], 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0xb8], rdi
xor edi, edi
mov r13, rdi
mov qword [rsp + 0x58], rdi
mov rsi, rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
cmp rbx, rdi
je 0x14008183d
mov rsi, rbx
mov rbp, qword [rsp + 0x30]
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.14008135c
mov edx, dword [rsp + 0xf0]
lea rax, [rdx + rdx*4]
mov r13, qword [rsp + 0x58]
lea r12, [r13 + rax*8]
xor edx, edx
lea r8d, [rdx + 0x28]
mov rcx, r12
call fcn.1400c7170
lea rdx, [rsp + 0x220]
mov eax, dword [str.SMTP:]
mov dword [rdx], eax
movzx eax, word [0x1400e76d0]
mov word [rdx + 4], ax
lea rdi, [rsp + 0x220]
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 0x1400816f6
lea rdx, [0x1400e76c8]
mov rcx, rsi
call fcn.1400ca9f8
mov rsi, rax
xor edi, edi
cmp rax, rdi
je 0x14008172d
inc rsi
movsx ecx, byte [rsi]
call fcn.1400802ac
cmp al, dil
jne 0x14008171d
lea rdx, [0x1400e76c8]
lea rcx, [rsp + 0x220]
call fcn.1400ca9f8
cmp rax, rdi
je 0x140081749
mov byte [rax], dil
mov dword [r12 + 4], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, 1
lea r8, [rsp + 0x225]
xor edx, edx
xor ecx, ecx
call rbp
cmp eax, edi
jne 0x140081804
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
mov dword [r12], ecx
mov rax, qword [rsp + 0x30]
cmp qword [rax + 8], rdi
je 0x1400817a5
mov rcx, qword [rax + 8]
call fcn.1400d7af0
mov qword [r12 + 8], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], rdi
je 0x1400817be
mov rcx, qword [rax + 0x10]
call fcn.1400d7af0
mov qword [r12 + 0x10], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
mov dword [r12 + 0x18], eax
mov rcx, qword [rsp + 0x30]
cmp qword [rcx + 0x20], rdi
je 0x1400817ff
mov eax, dword [rcx + 0x18]
cmp eax, edi
je 0x1400817ff
mov rcx, rax
call fcn.1400c799c
mov qword [r12 + 0x20], rax
mov rdx, qword [rsp + 0x30]
mov r8d, dword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rcx, rax
call fcn.1400c6bb0
mov rcx, qword [rsp + 0x30]
call r14
jmp 0x140081816
lea rcx, [rsp + 0x220]
call fcn.1400d7af0
mov qword [r12 + 0x10], rax
inc dword [rsp + 0xf0]
cmp rsi, rdi
jne 0x140081697
mov qword [rsp + 0xf8], r13
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
neg rbx
sbb r9d, r9d
and r9d, 0xfffffff8
add r9d, 9
mov dword [rsp + 0x20], edi
lea r8, [rsp + 0xb0]
xor edx, edx
xor ecx, ecx
call qword [rsp + 0x50]
cmp eax, edi
sete bl
cmp rsi, rdi
jbe 0x1400818a2
lea rdi, [r13 + 0x10]
mov rcx, qword [rdi - 8]
test rcx, rcx
je 0x14008187b
call fcn.1400c7040
mov rcx, qword [rdi]
test rcx, rcx
je 0x140081888
call fcn.1400c7040
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140081896
call fcn.1400c7040
add rdi, 0x28
sub rsi, 1
jne 0x14008186d
xor edi, edi
lea rcx, [rsp + 0x1230]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov cl, 1
call fcn.1400812c8
cmp bl, dil
je 0x1400818d4
cmp r15b, dil
je 0x1400818ec
mov rcx, r12
call fcn.14003be94
jmp 0x1400818ec
mov ecx, 0x4de
call fcn.140076080
mov rdx, rax
mov r8, r12
xor ecx, ecx
call fcn.1400b1ef4
nop
cmp r13, rdi
je 0x1400818f9
mov rcx, r13
call fcn.1400c7040
mov al, bl
jmp 0x140081908
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov rcx, qword [rsp + 0x2230]
xor rcx, rsp
call fcn.1400c6350
mov rbx, qword [rsp + 0x2290]
add rsp, 0x2240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret