Function at 0x14013bbe0
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 [0x1403f20c0]
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, [0x14048d6c2]
call fcn.140289ea0
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 0x14013bca4
lea rax, [rbp + 0x90]
mov r8, r15
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14013bc90
lea rdx, [rbp + 0x90]
jmp 0x14013bcae
xor r8d, r8d
lea rdx, [0x1403b94c4]
lea rcx, [rbp + 0x30]
call fcn.1400d1870
mov dword [rsp + 0x40], 0x41
mov cl, reloc.WS2_32.dll_WSAGetLastError
mov word [rbp - 0x20], reloc.WS2_32.dll_WSAGetLastError
movsx r8d, cl
movzx edx, r8w
xor dx, 0x33
mov word [rbp - 0x1e], dx
movzx eax, r8w
xor ax, 0x3d
mov word [rbp - 0x1c], ax
mov word [rbp - 0x1a], r8w
movzx eax, r8w
xor ax, 0xd
mov word [rbp - 0x18], ax
movzx ecx, r8w
xor cx, 3
mov word [rbp - 0x16], cx
mov word [rbp - 0x14], r8w
movzx eax, r8w
xor ax, 0x17
mov word [rbp - 0x12], ax
mov word [rbp - 0x10], dx
mov word [rbp - 0xe], cx
mov word [rbp - 0xc], r8w
movzx eax, r8w
xor ax, 8
mov word [rbp - 0xa], ax
xor r8w, 0x1c
mov word [rbp - 8], r8w
mov word [rbp - 6], r13w
lea rax, [rbp - 0x1e]
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], 0
jne 0x14013bd40
movabs rax, 0x7ffffffffffffffe
mov rdx, qword [rbp + 0x40]
sub rax, rdx
cmp rax, rcx
jb 0x14013c1ec
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.1400e1890
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.1400d1870
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.1400d14b0
test eax, eax
jne 0x14013c1d1
lea rcx, [rbp]
call fcn.1400d1160
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov r14, qword [rbp - 0x28]
test r14, r14
je 0x14013be15
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 0x14013be31
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 0x14013be7d
mov eax, r15d
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x14013be74
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 0x14013be74
mov r14, qword [rbp - 0x28]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14013be78
mov r14, qword [rbp - 0x28]
mov r12d, dword [rsp + 0x40]
nop dword [rax]
mov rdi, qword [rbp + 0x20]
test rdi, rdi
je 0x14013c118
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400eb610
cmp dword [rax], 2
jne 0x14013c102
add rdi, 0x20
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.1400cd7d0
nop
mov rdx, rax
lea rcx, [rbp]
call fcn.1400d0ec0
or r12d, 0x20
mov dword [rsp + 0x40], r12d
lea rcx, [rbp - 0x50]
call fcn.1400d1160
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14013bedf
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
lea rbx, [rcx + rax*2]
mov rdx, rbx
call fcn.1400cd1b0
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.1400d1870
or r12d, 0xe
mov dword [rsp + 0x40], r12d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x50]
call fcn.1400d0ec0
or r12d, 0x10
mov dword [rsp + 0x40], r12d
lea rcx, [rbp - 0x80]
call fcn.1400d1160
mov cl, reloc.WS2_32.dll_WSAStartup
mov word [rsp + 0x48], reloc.WS2_32.dll_WSAStartup
movsx ecx, cl
movzx eax, cx
xor ax, 0x5d
mov word [rsp + 0x4a], ax
movzx eax, cx
xor ax, 0x1f
mov word [rsp + 0x4c], ax
movzx eax, cx
xor ax, 0x1c
mov word [rsp + 0x4e], ax
xor cx, 0x14
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 0x14013bf82
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 0x14013bfc3
lea rdx, [rsp + 0x4a]
call fcn.1400d11d0
test eax, eax
je 0x14013c034
mov r9, qword [rbp + 0x18]
mov r8, qword [rbp + 0x10]
mov rdx, qword [rbp]
mov cl, reloc.WS2_32.dll_setsockopt
mov word [rsp + 0x58], reloc.WS2_32.dll_setsockopt
movsx ecx, cl
movzx eax, cx
xor ax, 0x3b
mov word [rsp + 0x5a], ax
movzx eax, cx
xor ax, 0x61
mov word [rsp + 0x5c], ax
xor cx, 0x6d
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 0x14013c003
lea rcx, [rbp]
cmp r9, 7
cmova rcx, rdx
cmp r8, rax
jne 0x14013c0ef
lea rdx, [rsp + 0x5a]
call fcn.1400d11d0
test eax, eax
jne 0x14013c0ef
mov cl, 0x7b
mov word [rsp + 0x68], 0x7b
movsx ecx, cl
movzx eax, cx
xor ax, 0x2b
mov word [rsp + 0x6a], ax
movzx eax, cx
xor ax, 0x17
mov word [rsp + 0x6c], ax
movzx eax, cx
xor ax, 0x1a
mov word [rsp + 0x6e], ax
movzx eax, cx
xor ax, 2
mov word [rsp + 0x70], ax
movzx eax, cx
xor ax, 0x1e
mov word [rsp + 0x72], ax
xor cx, 9
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 0x14013c093
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.1400e15e0
cmp rax, 0xffffffffffffffff
je 0x14013c0ef
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x14013c0e0
mov rdx, rdi
mov rcx, rax
call fcn.1400d0ec0
add qword [rsi + 8], 0x20
jmp 0x14013c0ef
mov r8, rdi
mov rdx, rax
mov rcx, rsi
call fcn.14013c750
nop
lea rcx, [rbp + 0x50]
call fcn.1400d1160
nop
lea rcx, [rbp]
call fcn.1400d1160
lea rcx, [rbp + 0x20]
call fcn.1400ce1d0
test eax, eax
jne 0x14013c1e4
jmp 0x14013be80
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14013c155
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14013c151
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 0x14013c151
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 0x14013c18b
mov eax, r15d
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x14013c18b
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 0x14013c18b
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x70]
call fcn.1400d1160
nop
lea rcx, [rbp + 0x30]
call fcn.1400d1160
mov rax, rsi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.1402889f0
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.1400cdfd0
nop
mov edx, eax
call fcn.1400cded0
nop
call fcn.140041a10
int3