Function at 0x180010d70
Capabilities:
Get common file path

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfc0]
mov eax, 0x10c0
call fcn.18002caa0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x10f8], rbx
mov qword [rsp + 0x1100], rsi
mov qword [rsp + 0x1108], rdi
mov rax, qword [0x180125780]
xor rax, rsp
mov qword [rbp + 0xfb0], rax
mov r13, rcx
mov qword [rsp + 0x40], rcx
mov byte [rcx + 8], 0
mov rdi, qword [rcx]
xor r14d, r14d
test rdi, rdi
je 0x180010dec
mov rcx, rdi
call fcn.1800018f0
mov rcx, rdi
call fcn.18002bf50
mov qword [r13], r14
mov ecx, 0x38
call fcn.18002c05c
mov qword [rsp + 0x48], rax
test rax, rax
je 0x180010e0c
mov dl, 1
mov rcx, rax
call fcn.180001860
jmp 0x180010e0f
mov rax, r14
mov qword [r13], rax
test rax, rax
je 0x180010e9c
mov rcx, rax
call fcn.180001080
test al, al
je 0x180010e9c
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x50]
call fcn.18002bf70
call fcn.180005c70
mov r8, rax
lea rdx, str._swebmail.ini
lea rcx, [rbp - 0x50]
call fcn.180002240
lea rcx, [rbp - 0x50]
call fcn.180019018
mov rdi, rax
lea rcx, [rax + 1]
call fcn.18002b5c4
mov r15, rax
test rax, rax
je 0x180010e9c
mov qword [rsp + 0x48], rax
mov byte [rdi + rax], 0
mov r9d, 0x26
lea r8, str.45D237E8_AEEA_4FCE_BC18_E4C854077DBC
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.18001a314
test eax, eax
je 0x180010ea3
mov rcx, r15
call fcn.18002bf50
xor al, al
jmp 0x180011279
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x50]
call fcn.18002bf70
mov word [rbp + 0x7b0], r14w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x7b2]
call fcn.18002bf70
lea rcx, [rbp + 0x7b0]
call fcn.18001968c
lea r9, [rbp - 0x50]
xor r8d, r8d
lea rdx, [0x180047410]
lea rcx, [rbp + 0x7b0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rsp + 0x58]
call fcn.18001920c
nop
lea r8, [0x180045a68]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x58]
call fcn.1800195bc
test eax, eax
jne 0x180010f35
lea rcx, [rsp + 0x58]
call fcn.1800195ac
nop
mov rcx, r15
call fcn.18002bf50
xor al, al
jmp 0x180011279
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r15
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.180019290
nop
lea rcx, [rsp + 0x58]
call fcn.1800195ac
mov rsi, r14
mov qword [rsp + 0x20], r14
mov rbx, r14
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], r14
lea rdx, [0x180046aa8]
mov rcx, r15
call fcn.18002d24c
mov r12, rax
test rax, rax
je 0x180011063
nop
mov rdi, r12
lea rdx, [0x180046aa8]
xor ecx, ecx
call fcn.18002d24c
mov r12, rax
cmp byte [rdi], 0x5b
jne 0x180011050
inc rdi
mov edx, 0x5d
mov rcx, rdi
call fcn.18002d338
test rax, rax
je 0x180011050
mov qword [rsp + 0x70], 0xf
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x58], 0
sub rax, rdi
mov r8, rax
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.180002fa0
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.180005e00
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x20]
call fcn.180004710
nop
cmp qword [rbp - 0x68], 8
jb 0x18001101a
mov rcx, qword [rbp - 0x80]
call fcn.18002bf50
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r14
mov word [rbp - 0x80], r14w
cmp qword [rsp + 0x70], 0x10
jb 0x18001103d
mov rcx, qword [rsp + 0x58]
call fcn.18002bf50
mov qword [rsp + 0x70], 0xf
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x58], 0
test r12, r12
jne 0x180010f90
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x20]
mov r12, r14
mov rcx, rbx
sub rcx, rsi
movabs rax, 0x6666666666666667
imul rcx
mov r14, rdx
sar r14, 4
mov rax, r14
shr rax, 0x3f
add r14, rax
je 0x18001119e
mov r13, rsi
xor eax, eax
nop word [rax + rax]
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rax
mov word [rsp + 0x58], ax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x58]
call fcn.1800030e0
nop
mov r8, r13
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call fcn.180010ae0
movzx edi, al
cmp qword [rsp + 0x70], 8
jb 0x1800110fd
mov rcx, qword [rsp + 0x58]
call fcn.18002bf50
mov qword [rsp + 0x70], 7
xor eax, eax
mov qword [rsp + 0x68], rax
mov word [rsp + 0x58], ax
test dil, dil
je 0x18001112e
inc r12
add r13, 0x28
cmp r12, r14
jb 0x1800110a0
mov r13, qword [rsp + 0x40]
jmp 0x18001119e
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.180019324
nop
xor r12d, r12d
test rsi, rsi
je 0x180011180
mov rdi, rsi
cmp rsi, rbx
je 0x180011178
nop dword [rax]
cmp qword [rdi + 0x18], 8
jb 0x18001115f
mov rcx, qword [rdi]
call fcn.18002bf50
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x180011150
mov rcx, rsi
call fcn.18002bf50
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], r12
mov rcx, r15
call fcn.18002bf50
xor al, al
jmp 0x180011279
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.180019324
mov rcx, qword [r13]
call fcn.180001ee0
test al, al
jne 0x18001121b
xor r12d, r12d
test rsi, rsi
je 0x180011200
mov rdi, rsi
cmp rsi, rbx
je 0x1800111f8
nop dword [rax]
cmp qword [rdi + 0x18], 8
jb 0x1800111df
mov rcx, qword [rdi]
call fcn.18002bf50
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x1800111d0
mov rcx, rsi
call fcn.18002bf50
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], r12
mov rcx, r15
call fcn.18002bf50
xor al, al
jmp 0x180011279
mov byte [r13 + 8], 1
xor r12d, r12d
test rsi, rsi
je 0x180011260
mov rdi, rsi
cmp rsi, rbx
je 0x180011258
cmp qword [rdi + 0x18], 8
jb 0x18001123f
mov rcx, qword [rdi]
call fcn.18002bf50
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x180011230
mov rcx, rsi
call fcn.18002bf50
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], r12
mov rcx, r15
call fcn.18002bf50
mov al, 1
mov rcx, qword [rbp + 0xfb0]
xor rcx, rsp
call fcn.18002c920
lea r11, [rsp + 0x10c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret