Function at 0x14015d660
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x14041d0c0]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov rsi, rcx
mov qword [rbp - 0x60], rcx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
lea rcx, [0x1404b98c7]
call fcn.1402b13b0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
mov dword [rsp + 0x40], 1
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, Ordinal_32
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r15, 0xffffffffffffffff
xorps xmm0, xmm0
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x48], r13
movups xmmword [rbp + 0x30], xmm0
test eax, eax
js 0x14015d724
lea rax, [rbp + 0x90]
mov r8, r15
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14015d710
lea rdx, [rbp + 0x90]
jmp 0x14015d72e
xor r8d, r8d
lea rdx, [0x1403e27a4]
lea rcx, [rbp + 0x30]
call fcn.1400d4f50
mov dword [rsp + 0x40], 0x41
mov cl, 0x7d
mov word [rbp - 0x20], 0x7d
movsx r9d, cl
movzx r8d, r9w
xor r8w, 0x21
mov word [rbp - 0x1e], r8w
movzx eax, r9w
xor ax, 0x2f
mov word [rbp - 0x1c], ax
movzx edx, r9w
xor dx, 0x12
mov word [rbp - 0x1a], dx
movzx eax, r9w
xor ax, 0x1f
mov word [rbp - 0x18], ax
movzx ecx, r9w
xor cx, 0x11
mov word [rbp - 0x16], cx
mov word [rbp - 0x14], dx
movzx eax, r9w
xor ax, 5
mov word [rbp - 0x12], ax
mov word [rbp - 0x10], r8w
mov word [rbp - 0xe], cx
mov word [rbp - 0xc], dx
movzx eax, r9w
xor ax, 0x1a
mov word [rbp - 0xa], ax
xor r9w, 0xe
mov word [rbp - 8], r9w
mov word [rbp - 6], r13w
lea rax, [rbp - 0x1e]
mov rcx, r15
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x14015d7d0
movabs rax, 0x7ffffffffffffffe
mov rdx, qword [rbp + 0x40]
sub rax, rdx
cmp rax, rcx
jb 0x14015dc7c
lea r9, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova r9, qword [rbp + 0x30]
mov qword [rsp + 0x30], rcx
lea rax, [rbp - 0x1e]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rbp + 0x70]
call fcn.1400fa8e0
mov dword [rsp + 0x40], 0x241
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 7
cmova rdx, qword [rbp + 0x70]
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], r13
mov r8, qword [rbp + 0x80]
lea rcx, [rbp]
call fcn.1400d4f50
mov r12d, 0x3c1
mov dword [rsp + 0x40], r12d
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
lea rdx, [rbp]
lea rcx, [rbp - 0x30]
call fcn.1400d4b90
test eax, eax
jne 0x14015dc61
lea rcx, [rbp]
call fcn.1400d4840
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov r14, qword [rbp - 0x28]
test r14, r14
je 0x14015d8a5
lock inc dword [r14 + 8]
mov r14, qword [rbp - 0x28]
mov r12d, dword [rsp + 0x40]
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp + 0x20], xmm0
test r14, r14
je 0x14015d8c1
lock inc dword [r14 + 8]
mov r14, qword [rbp - 0x28]
mov r12d, dword [rsp + 0x40]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
test r14, r14
je 0x14015d90d
mov eax, r15d
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x14015d904
mov rbx, qword [rbp - 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14015d904
mov r14, qword [rbp - 0x28]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14015d908
mov r14, qword [rbp - 0x28]
mov r12d, dword [rsp + 0x40]
nop dword [rax]
mov rdi, qword [rbp + 0x20]
test rdi, rdi
je 0x14015dba8
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.14010a760
cmp dword [rax], 2
jne 0x14015db92
add rdi, 0x20
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.1400d0e70
nop
mov rdx, rax
lea rcx, [rbp]
call fcn.1400d45a0
or r12d, 0x20
mov dword [rsp + 0x40], r12d
lea rcx, [rbp - 0x50]
call fcn.1400d4840
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14015d96f
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
lea rbx, [rcx + rax*2]
mov rdx, rbx
call fcn.1400d0830
sub rbx, rax
sar rbx, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r13
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400d4f50
or r12d, 0xe
mov dword [rsp + 0x40], r12d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x50]
call fcn.1400d45a0
or r12d, 0x10
mov dword [rsp + 0x40], r12d
lea rcx, [rbp - 0x80]
call fcn.1400d4840
mov cl, reloc.WLDAP32.dll_Ordinal_27
mov word [rsp + 0x48], reloc.WLDAP32.dll_Ordinal_27
movsx ecx, cl
movzx eax, cx
xor ax, 0x35
mov word [rsp + 0x4a], ax
movzx eax, cx
xor ax, 0x77
mov word [rsp + 0x4c], ax
movzx eax, cx
xor ax, 0x74
mov word [rsp + 0x4e], ax
xor cx, 0x7c
mov word [rsp + 0x50], cx
mov word [rsp + 0x52], r13w
lea rcx, [rsp + 0x4a]
mov rax, r15
inc rax
cmp word [rcx + rax*2], 0
jne 0x14015da12
lea rcx, [rbp]
mov rdx, qword [rbp]
mov r9, qword [rbp + 0x18]
cmp r9, 7
cmova rcx, rdx
mov r8, qword [rbp + 0x10]
cmp r8, rax
jne 0x14015da53
lea rdx, [rsp + 0x4a]
call fcn.1400d48b0
test eax, eax
je 0x14015dac4
mov r9, qword [rbp + 0x18]
mov r8, qword [rbp + 0x10]
mov rdx, qword [rbp]
mov cl, 6
mov word [rsp + 0x58], 6
movsx ecx, cl
movzx eax, cx
xor ax, 0x28
mov word [rsp + 0x5a], ax
movzx eax, cx
xor ax, 0x72
mov word [rsp + 0x5c], ax
xor cx, 0x7e
mov word [rsp + 0x5e], cx
mov word [rsp + 0x60], ax
mov word [rsp + 0x62], r13w
lea rcx, [rsp + 0x5a]
mov rax, r15
inc rax
cmp word [rcx + rax*2], 0
jne 0x14015da93
lea rcx, [rbp]
cmp r9, 7
cmova rcx, rdx
cmp r8, rax
jne 0x14015db7f
lea rdx, [rsp + 0x5a]
call fcn.1400d48b0
test eax, eax
jne 0x14015db7f
mov cl, 0x5c
mov word [rsp + 0x68], 0x5c
movsx ecx, cl
movzx eax, cx
xor ax, 0xc
mov word [rsp + 0x6a], ax
movzx eax, cx
xor ax, 0x30
mov word [rsp + 0x6c], ax
movzx eax, cx
xor ax, 0x3d
mov word [rsp + 0x6e], ax
movzx eax, cx
xor ax, 0x25
mov word [rsp + 0x70], ax
movzx eax, cx
xor ax, 0x39
mov word [rsp + 0x72], ax
xor cx, 0x2e
mov word [rsp + 0x74], cx
mov word [rsp + 0x76], r13w
lea rcx, [rsp + 0x6a]
mov rax, r15
inc rax
cmp word [rcx + rax*2], 0
jne 0x14015db23
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rcx, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6a]
mov rdx, qword [rbp + 0x60]
call fcn.1400fa630
cmp rax, 0xffffffffffffffff
je 0x14015db7f
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x14015db70
mov rdx, rdi
mov rcx, rax
call fcn.1400d45a0
add qword [rsi + 8], 0x20
jmp 0x14015db7f
mov r8, rdi
mov rdx, rax
mov rcx, rsi
call fcn.14015e210
nop
lea rcx, [rbp + 0x50]
call fcn.1400d4840
nop
lea rcx, [rbp]
call fcn.1400d4840
lea rcx, [rbp + 0x20]
call fcn.1400d1870
test eax, eax
jne 0x14015dc74
jmp 0x14015d910
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14015dbe5
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14015dbe1
mov rbx, qword [rbp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14015dbe1
mov rcx, qword [rbp + 0x28]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r14, qword [rbp - 0x28]
test r14, r14
je 0x14015dc1b
mov eax, r15d
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x14015dc1b
mov rbx, qword [rbp - 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r15d
cmp r15d, 1
jne 0x14015dc1b
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x70]
call fcn.1400d4840
nop
lea rcx, [rbp + 0x30]
call fcn.1400d4840
mov rax, rsi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.1402aff00
lea r11, [rsp + 0x3b0]
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
lea r8, [rbp]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.1400d1670
nop
mov edx, eax
call fcn.1400d1570
nop
call fcn.140044e70
int3