Function at 0x1401304b0
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 [0x14039f0c0]
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, reloc.WS2_32.dll_accept
call fcn.14027ddb0
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 0x140130574
lea rax, [rbp + 0x90]
mov r8, r15
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140130560
lea rdx, [rbp + 0x90]
jmp 0x14013057e
xor r8d, r8d
lea rdx, [0x1403665a8]
lea rcx, [rbp + 0x30]
call fcn.1400ce230
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 0x140130620
movabs rax, 0x7ffffffffffffffe
mov rdx, qword [rbp + 0x40]
sub rax, rdx
cmp rax, rcx
jb 0x140130acc
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.1400ddf90
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.1400ce230
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.1400cde70
test eax, eax
jne 0x140130ab1
lea rcx, [rbp]
call fcn.1400cdb20
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov r14, qword [rbp - 0x28]
test r14, r14
je 0x1401306f5
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 0x140130711
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 0x14013075d
mov eax, r15d
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x140130754
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 0x140130754
mov r14, qword [rbp - 0x28]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140130758
mov r14, qword [rbp - 0x28]
mov r12d, dword [rsp + 0x40]
nop dword [rax]
mov rdi, qword [rbp + 0x20]
test rdi, rdi
je 0x1401309f8
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400e8f40
cmp dword [rax], 2
jne 0x1401309e2
add rdi, 0x20
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.1400ca160
nop
mov rdx, rax
lea rcx, [rbp]
call fcn.1400cd880
or r12d, 0x20
mov dword [rsp + 0x40], r12d
lea rcx, [rbp - 0x50]
call fcn.1400cdb20
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1401307bf
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
lea rbx, [rcx + rax*2]
mov rdx, rbx
call fcn.1400c9b40
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.1400ce230
or r12d, 0xe
mov dword [rsp + 0x40], r12d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x50]
call fcn.1400cd880
or r12d, 0x10
mov dword [rsp + 0x40], r12d
lea rcx, [rbp - 0x80]
call fcn.1400cdb20
mov cl, 0x3a
mov word [rsp + 0x48], Ordinal_60
movsx ecx, cl
movzx eax, cx
xor ax, 0x14
mov word [rsp + 0x4a], ax
movzx eax, cx
xor ax, 0x56
mov word [rsp + 0x4c], ax
movzx eax, cx
xor ax, 0x55
mov word [rsp + 0x4e], ax
xor cx, 0x5d
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 0x140130862
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 0x1401308a3
lea rdx, [rsp + 0x4a]
call fcn.1400cdb90
test eax, eax
je 0x140130914
mov r9, qword [rbp + 0x18]
mov r8, qword [rbp + 0x10]
mov rdx, qword [rbp]
mov cl, 0x60
mov word [rsp + 0x58], 0x60
movsx ecx, cl
movzx eax, cx
xor ax, 0x4e
mov word [rsp + 0x5a], ax
movzx eax, cx
xor ax, 0x14
mov word [rsp + 0x5c], ax
xor cx, 0x18
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 0x1401308e3
lea rcx, [rbp]
cmp r9, 7
cmova rcx, rdx
cmp r8, rax
jne 0x1401309cf
lea rdx, [rsp + 0x5a]
call fcn.1400cdb90
test eax, eax
jne 0x1401309cf
mov cl, 0x45
mov word [rsp + 0x68], 0x45
movsx ecx, cl
movzx eax, cx
xor ax, 0x15
mov word [rsp + 0x6a], ax
movzx eax, cx
xor ax, 0x29
mov word [rsp + 0x6c], ax
movzx eax, cx
xor ax, 0x24
mov word [rsp + 0x6e], ax
movzx eax, cx
xor ax, 0x3c
mov word [rsp + 0x70], ax
movzx eax, cx
xor ax, 0x20
mov word [rsp + 0x72], ax
xor cx, 0x37
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 0x140130973
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.1400ddce0
cmp rax, 0xffffffffffffffff
je 0x1401309cf
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x1401309c0
mov rdx, rdi
mov rcx, rax
call fcn.1400cd880
add qword [rsi + 8], 0x20
jmp 0x1401309cf
mov r8, rdi
mov rdx, rax
mov rcx, rsi
call fcn.140131030
nop
lea rcx, [rbp + 0x50]
call fcn.1400cdb20
nop
lea rcx, [rbp]
call fcn.1400cdb20
lea rcx, [rbp + 0x20]
call fcn.1400cab60
test eax, eax
jne 0x140130ac4
jmp 0x140130760
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140130a35
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140130a31
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 0x140130a31
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 0x140130a6b
mov eax, r15d
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x140130a6b
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 0x140130a6b
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x70]
call fcn.1400cdb20
nop
lea rcx, [rbp + 0x30]
call fcn.1400cdb20
mov rax, rsi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.14027c900
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.1400ca960
nop
mov edx, eax
call fcn.1400ca860
nop
call fcn.14003e400
int3