Function at 0x1400057a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140133080]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor ebx, ebx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.WLDAP32.dll_Ordinal_26
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x14000585d
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140005811
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.14000d0f0
nop
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rdx, qword [rbp - 0x70]
mov rax, qword [rbp - 0x60]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x70]
cmova rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.14000c420
nop
lea rcx, [rbp - 0x70]
call fcn.140009260
jmp 0x14000587d
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rbx
xor r8d, r8d
lea rdx, [0x140107b79]
lea rcx, [rbp - 0x50]
call fcn.1400045f0
nop
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
mov rcx, qword [rbp - 0x40]
sub rax, rcx
cmp rax, 7
jb 0x140005c44
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r9, qword [rbp - 0x50]
mov qword [rsp + 0x30], 7
lea rsi, [0x140107d40]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
call fcn.140010f50
nop
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rax, qword [rsp + 0x40]
mov qword [rbp - 0x70], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x68], rax
call fcn.1400f29c8
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea r8, [rbp - 0x70]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.1400030f0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140003840
movsd xmm0, qword [rax]
movsd qword [rsp + 0x60], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x70], ecx
lea r14, [0x140133118]
mov qword [rbp - 0x68], r14
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140005bea
cmp eax, 1
sete dil
lea rcx, [rsp + 0x70]
call fcn.140009260
nop
lea rcx, [rsp + 0x40]
call fcn.1400092d0
test dil, dil
je 0x140005a23
mov rax, rbx
mov rcx, qword [rbp - 0x40]
sub rax, rcx
cmp rax, 7
jb 0x140005c4a
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r9, qword [rbp - 0x50]
mov qword [rsp + 0x30], 7
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.140010f50
nop
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rax, qword [rsp + 0x70]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x68], rax
call fcn.1400f29c8
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea r8, [rbp - 0x70]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400030f0
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
call fcn.1400f2c28
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x140005c50
lea rcx, [rsp + 0x40]
call fcn.140009260
nop
lea rcx, [rsp + 0x70]
call fcn.1400092d0
mov rax, rbx
mov rcx, qword [rbp - 0x40]
sub rax, rcx
cmp rax, 0xf
jb 0x140005c66
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r9, qword [rbp - 0x50]
mov qword [rsp + 0x30], reloc.WS2_32.dll_ntohs
lea rsi, str.cortexconfigs
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.140010f50
nop
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rax, qword [rsp + 0x70]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x68], rax
call fcn.1400f29c8
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea r8, [rbp - 0x70]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400030f0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140003840
movsd xmm0, qword [rax]
movsd qword [rsp + 0x60], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x70], ecx
mov qword [rbp - 0x68], r14
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140005bf6
cmp eax, 1
sete dil
lea rcx, [rsp + 0x40]
call fcn.140009260
nop
lea rcx, [rsp + 0x70]
call fcn.1400092d0
test dil, dil
je 0x140005baf
mov rax, qword [rbp - 0x40]
sub rbx, rax
cmp rbx, 0xf
jb 0x140005c6c
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r9, qword [rbp - 0x50]
mov qword [rsp + 0x30], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x70]
call fcn.140010f50
nop
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rax, qword [rsp + 0x70]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x68], rax
call fcn.1400f29c8
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea r8, [rbp - 0x70]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400030f0
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
call fcn.1400f2c28
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x140005c02
lea rcx, [rsp + 0x40]
call fcn.140009260
nop
lea rcx, [rsp + 0x70]
call fcn.1400092d0
call fcn.14001ca40
nop
lea rcx, [rbp - 0x50]
call fcn.1400092d0
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400f1580
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov dil, 1
test ecx, ecx
jne 0x140005c18
jmp 0x140005950
mov dil, 1
test ecx, ecx
jne 0x140005c2e
jmp 0x140005ae3
shr rdx, 0x20
lea r8, [rsp + 0x40]
lea rcx, str.create_directory
call fcn.140003770
nop
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x70]
lea rcx, str.exists
call fcn.1400037e0
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x70]
lea rcx, str.exists
call fcn.1400037e0
nop
call fcn.140002840
int3
call fcn.140002840
nop
shr rdx, 0x20
lea r8, [rsp + 0x40]
lea rcx, str.create_directory
call fcn.140003770
nop
call fcn.140002840
int3
call fcn.140002840
int3