Function at 0x140045e10
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.140062a30
sub rsp, rax
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x2290], rbx
mov rax, qword [0x140072fc0]
xor rax, rsp
mov qword [rsp + 0x2230], rax
mov rax, rdx
mov r15, rcx
xor r12d, r12d
cmp rdx, r12
jne 0x140045e62
mov rbx, r12
jmp 0x140045e80
mov r8d, 0x400
lea rdx, [rsp + 0xe30]
mov rcx, rax
call fcn.140047f7c
lea rbx, [rsp + 0xe30]
lea rcx, str.MAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov qword [rsp + 0x48], rax
cmp rax, r12
jne 0x140045ea1
xor al, al
jmp 0x140046282
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 + 0x38], rax
lea rdx, str.MAPIFreeBuffer
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
cmp rsi, r12
je 0x140046277
cmp rdi, r12
je 0x140046277
cmp rax, r12
je 0x140046277
cmp rbx, r12
je 0x140045f1d
cmp byte [rbx], 0x2e
jne 0x140045f1d
mov byte [rsp + 0x30], 1
inc rbx
mov al, byte [rbx]
neg al
sbb rcx, rcx
and rbx, rcx
jmp 0x140045f22
mov byte [rsp + 0x30], r12b
xor ecx, ecx
call fcn.140045c48
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, r15
call fcn.140047f7c
mov dl, 1
lea rcx, [rsp + 0x630]
call fcn.1400315bc
lea r9, [rsp + 0x40]
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.140055c00
or dword [rsp + 0x80], 0xffffffff
lea rax, [rsp + 0x110]
mov qword [rsp + 0x88], rax
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x90], rdi
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0xb0]
call fcn.140055c00
mov dword [rsp + 0x100], 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0xb8], rdi
mov r13, r12
mov qword [rsp + 0x58], r12
mov rsi, r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
cmp rbx, r12
je 0x1400461bf
mov rsi, rbx
mov rbp, qword [rsp + 0x38]
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.140045cdc
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.140055c00
lea rdx, [rsp + 0x220]
mov eax, dword [str.SMTP:]
mov dword [rdx], eax
movzx eax, word [0x140068238]
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 0x14004607a
lea rdx, [0x140068230]
mov rcx, rsi
call fcn.1400581d8
mov rsi, rax
xor edi, edi
cmp rax, rdi
je 0x1400460b1
inc rsi
movsx ecx, byte [rsi]
call fcn.1400452f4
cmp al, dil
jne 0x1400460a1
lea rdx, [0x140068230]
lea rcx, [rsp + 0x220]
call fcn.1400581d8
cmp rax, rdi
je 0x1400460cd
mov byte [rax], dil
mov dword [r12 + 4], 1
lea rax, [rsp + 0x38]
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 0x140046188
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
mov dword [r12], ecx
mov rax, qword [rsp + 0x38]
cmp qword [rax + 8], rdi
je 0x140046129
mov rcx, qword [rax + 8]
call fcn.1400623c8
mov qword [r12 + 8], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x10], rdi
je 0x140046142
mov rcx, qword [rax + 0x10]
call fcn.1400623c8
mov qword [r12 + 0x10], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [r12 + 0x18], eax
mov rcx, qword [rsp + 0x38]
cmp qword [rcx + 0x20], rdi
je 0x140046183
mov eax, dword [rcx + 0x18]
cmp eax, edi
je 0x140046183
mov rcx, rax
call fcn.140056b98
mov qword [r12 + 0x20], rax
mov rdx, qword [rsp + 0x38]
mov r8d, dword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rcx, rax
call fcn.140054fe0
mov rcx, qword [rsp + 0x38]
call r14
jmp 0x14004619a
lea rcx, [rsp + 0x220]
call fcn.1400623c8
mov qword [r12 + 0x10], rax
inc dword [rsp + 0xf0]
xor r12d, r12d
cmp rsi, r12
jne 0x14004601b
mov qword [rsp + 0xf8], r13
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x48]
neg rbx
sbb r9d, r9d
and r9d, 0xfffffff8
add r9d, 9
mov dword [rsp + 0x20], r12d
lea r8, [rsp + 0xb0]
xor edx, edx
xor ecx, ecx
call qword [rsp + 0x50]
cmp eax, r12d
sete bl
cmp rsi, r12
jbe 0x140046224
lea rdi, [r13 + 0x10]
mov rcx, qword [rdi - 8]
cmp rcx, r12
je 0x1400461ff
call fcn.140055470
mov rcx, qword [rdi]
cmp rcx, r12
je 0x14004620c
call fcn.140055470
mov rcx, qword [rdi + 0x10]
cmp rcx, r12
je 0x14004621a
call fcn.140055470
add rdi, 0x28
sub rsi, 1
jne 0x1400461f1
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.140045c48
cmp bl, r12b
je 0x140046258
cmp byte [rsp + 0x30], r12b
je 0x140046266
mov rcx, r15
call fcn.140021378
jmp 0x140046266
mov rdx, r15
mov ecx, 0x4b
call fcn.140001750
nop
cmp r13, r12
je 0x140046273
mov rcx, r13
call fcn.140055470
mov al, bl
jmp 0x140046282
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov rcx, qword [rsp + 0x2230]
xor rcx, rsp
call fcn.140054e00
mov rbx, qword [rsp + 0x2290]
add rsp, 0x2240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret