Function at 0x140045608
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.1400614d0
sub rsp, rax
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x2290], rbx
mov rax, qword [0x140071fd0]
xor rax, rsp
mov qword [rsp + 0x2230], rax
mov rax, rdx
mov r12, rcx
mov qword [rsp + 0x40], rcx
test rdx, rdx
jne 0x14004565b
xor ebx, ebx
jmp 0x140045679
mov r8d, 0x400
lea rdx, [rsp + 0xe30]
mov rcx, rax
call fcn.140046620
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 0x140045a80
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 0x140045a75
test rdi, rdi
je 0x140045a75
test rax, rax
je 0x140045a75
test rbx, rbx
je 0x140045711
cmp byte [rbx], 0x2e
jne 0x140045711
mov r15b, 1
inc rbx
mov al, byte [rbx]
neg al
sbb rcx, rcx
and rbx, rcx
jmp 0x140045714
xor r15b, r15b
xor ecx, ecx
call fcn.140045428
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.140046620
mov dl, 1
lea rcx, [rsp + 0x630]
call fcn.140031234
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.1400540d0
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.1400540d0
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 0x1400459b5
mov rsi, rbx
mov rbp, qword [rsp + 0x30]
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.1400454d4
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.1400540d0
lea rdx, [rsp + 0x220]
mov eax, dword [str.SMTP:]
mov dword [rdx], eax
movzx eax, word [0x140067278]
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 0x14004586e
lea rdx, [0x140067270]
mov rcx, rsi
call fcn.140056da8
mov rsi, rax
xor edi, edi
cmp rax, rdi
je 0x1400458a5
inc rsi
movsx ecx, byte [rsi]
call fcn.140044adc
cmp al, dil
jne 0x140045895
lea rdx, [0x140067270]
lea rcx, [rsp + 0x220]
call fcn.140056da8
cmp rax, rdi
je 0x1400458c1
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 0x14004597c
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
mov dword [r12], ecx
mov rax, qword [rsp + 0x30]
cmp qword [rax + 8], rdi
je 0x14004591d
mov rcx, qword [rax + 8]
call fcn.140060f78
mov qword [r12 + 8], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], rdi
je 0x140045936
mov rcx, qword [rax + 0x10]
call fcn.140060f78
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 0x140045977
mov eax, dword [rcx + 0x18]
cmp eax, edi
je 0x140045977
mov rcx, rax
call fcn.140054f5c
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.140053b10
mov rcx, qword [rsp + 0x30]
call r14
jmp 0x14004598e
lea rcx, [rsp + 0x220]
call fcn.140060f78
mov qword [r12 + 0x10], rax
inc dword [rsp + 0xf0]
cmp rsi, rdi
jne 0x14004580f
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 0x140045a1a
lea rdi, [r13 + 0x10]
mov rcx, qword [rdi - 8]
test rcx, rcx
je 0x1400459f3
call fcn.140053fa0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140045a00
call fcn.140053fa0
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140045a0e
call fcn.140053fa0
add rdi, 0x28
sub rsi, 1
jne 0x1400459e5
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.140045428
cmp bl, dil
je 0x140045a4c
cmp r15b, dil
je 0x140045a64
mov rcx, r12
call fcn.140021480
jmp 0x140045a64
mov ecx, 0xe7c
call fcn.14003f40c
mov rdx, rax
mov r8, r12
xor ecx, ecx
call fcn.1400177a4
nop
cmp r13, rdi
je 0x140045a71
mov rcx, r13
call fcn.140053fa0
mov al, bl
jmp 0x140045a80
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov rcx, qword [rsp + 0x2230]
xor rcx, rsp
call fcn.140053930
mov rbx, qword [rsp + 0x2290]
add rsp, 0x2240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret