Function at 0x18007f050
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 - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x18032d340]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r14, rcx
mov qword [rsp + 0x50], rcx
xor r15d, r15d
mov dword [rsp + 0x34], r15d
mov edx, 0x104
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x40], eax
cmp eax, 0x104
ja 0x18007f2a9
test eax, eax
je 0x18007f2f1
lea rdx, [rbp - 0x70]
lea rax, [rbp - 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], r15w
jne 0x18007f0d0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r15
lea rcx, [rsp + 0x70]
call fcn.18004a7f0
nop
mov dword [rsp + 0x40], r15d
lea r13, [0x18032d010]
mov qword [rsp + 0x48], r13
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 7
mov word [r14], r15w
mov dword [rsp + 0x34], socket
cmp qword [rbp - 0x80], 0
je 0x18007f222
mov word [rsp + 0x20], r15w
mov r9d, 0x104
movzx r8d, byte [rsp + 0x30]
mov edx, r9d
mov rcx, r14
call fcn.18001e6a0
movzx esi, byte [rsp + 0x30]
mov r12d, dword [r14 + 0x10]
mov r8, r14
cmp qword [r14 + 0x18], 7
jbe 0x18007f163
mov r8, qword [r14]
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
cmova rcx, qword [rsp + 0x70]
mov edx, r12d
call fcn.1801513f0
mov rbx, rax
mov qword [rsp + 0x40], rax
mov ecx, eax
mov r9, qword [r14 + 0x10]
cmp rcx, r9
ja 0x18007f1a6
mov qword [r14 + 0x10], rcx
mov rax, r14
cmp qword [r14 + 0x18], 7
jbe 0x18007f19f
mov rax, qword [r14]
mov word [rax + rcx*2], r15w
jmp 0x18007f1fe
mov rdx, rcx
sub rdx, r9
mov rdi, qword [r14 + 0x18]
mov rax, rdi
sub rax, r9
cmp rdx, rax
ja 0x18007f1e9
mov qword [r14 + 0x10], rcx
mov r8, r14
cmp rdi, 7
jbe 0x18007f1cb
mov r8, qword [r14]
lea rdi, [r8 + r9*2]
test rdx, rdx
je 0x18007f1de
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r9 + rdx]
mov word [r8 + rax*2], r15w
jmp 0x18007f1fe
mov word [rsp + 0x20], r15w
mov r9, rdx
movzx r8d, sil
mov rcx, r14
call fcn.18001e6a0
cmp ebx, r12d
jae 0x18007f152
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x68], r13
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x40], xmm0
mov r15d, eax
mov dword [rsp + 0x34], select
test r15d, r15d
jne 0x18007f314
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x18007f270
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18007f26b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18007f2a3
call fcn.18014e690
mov rax, r14
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.18014e7b0
lea r11, [rsp + 0x2b0]
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
call fcn.180197330
int3
mov dword [rsp + 0x50], 0x104
lea rax, str.GetSystemDirectory_path_length____is_greater_than_MAX_PATH___
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0x41
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.18007cd20
lea rdx, [0x1803035b8]
lea rcx, [rsp + 0x70]
call fcn.180186e4c
int3
lea rdx, str.Failed_to_get_the_path_of_the_system_directory
lea rcx, [rsp + 0x70]
call fcn.18007d430
lea rdx, [0x1803035b8]
lea rcx, [rsp + 0x70]
call fcn.180186e4c
nop
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, str.absolute
call fcn.180042950
int3