Function at 0x10224f8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbp
mov qword [rax + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov r13, rdx
lea rcx, [rax + 0x10]
mov rdx, r8
mov r14, r9
call fcn.0100f74c
mov rcx, qword [0x01045880]
mov rbp, qword [rsp + 0x88]
mov qword [r13], rcx
cmp qword [rbp - 0x10], 0
je 0x102288a
mov rax, qword [r14]
cmp qword [rax - 0x10], 0
je 0x102288a
cmp qword [rsp + 0xa0], 0
je 0x102288a
mov r12, qword [0x01045880]
mov ecx, 0x82
mov qword [rsp + 0x30], r12
call fcn.010268c0
mov rdi, rax
test rax, rax
je 0x10225ea
mov edx, 0x40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
test eax, eax
jne 0x1022598
mov rcx, rdi
call fcn.0102890c
jmp 0x10225ea
cmp eax, 0x40
jb 0x10225cb
inc eax
movsxd rcx, eax
add rcx, rcx
call fcn.010268c0
mov rdi, rax
test rax, rax
je 0x10225ea
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x10225cb
mov rcx, rdi
call fcn.0102890c
xor edi, edi
test rdi, rdi
je 0x10225ea
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.0100fb60
mov rcx, rdi
call fcn.0102890c
mov r12, qword [rsp + 0x30]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x28]
call fcn.0100f74c
lea rcx, [rsp + 0x28]
call fcn.0100f8f0
mov rcx, qword [rsp + 0x28]
call fcn.01029ab4
mov rsi, qword [rsp + 0x28]
mov eax, 0xa
lea rdi, [0x01009978]
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x102262e
mov rdx, r14
jmp 0x1022647
mov rsi, qword [rsp + 0x28]
lea rdi, [0x01009990]
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x102264f
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.0100faec
mov rax, qword [r13]
xor edi, edi
cmp qword [rax - 0x10], rdi
jne 0x1022876
mov rax, qword [0x01045880]
lea rdx, [0x01009978]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.0100fb60
mov rsi, qword [rsp + 0x20]
mov rdx, rsi
mov rcx, rbp
call fcn.010297a4
cmp rax, rdi
jne 0x1022696
or eax, 0xffffffff
jmp 0x102269c
sub rax, rbp
sar rax, 1
movsxd r8, eax
cmp r8, 0xffffffffffffffff
jne 0x102274b
lea rdx, [0x01009990]
lea rcx, [rsp + 0x20]
call fcn.0100fb60
mov rsi, qword [rsp + 0x20]
mov rcx, rbp
mov rdx, rsi
call fcn.010297a4
cmp rax, rdi
jne 0x10226d4
or eax, 0xffffffff
jmp 0x10226da
sub rax, rbp
sar rax, 1
movsxd r8, eax
cmp r8, 0xffffffffffffffff
jne 0x102274b
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.0100f74c
mov rcx, qword [rsp + 0xa0]
lea rdx, [rsp + 0x38]
mov r8, rax
call fcn.01025e08
lea rcx, [rsp + 0x88]
mov rdx, rax
call fcn.0100faec
lea rcx, [rsp + 0x38]
call fcn.0100f940
mov rdx, qword [rsp + 0x88]
cmp qword [rdx - 0x10], rdi
je 0x102286c
lea rdx, [rsp + 0x88]
mov rcx, r13
call fcn.0100faec
jmp 0x102286c
add r8, qword [rsi - 0x10]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x88]
call fcn.01010050
lea rcx, [rsp + 0x88]
mov rdx, rax
call fcn.0100faec
lea rcx, [rsp + 0x38]
call fcn.0100f940
mov rdx, qword [rsp + 0x88]
cmp qword [rdx - 0x10], rdi
je 0x102286c
cmp word [rdx], 0x2b
jne 0x102286c
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x88]
mov r8d, 1
call fcn.01010050
lea rcx, [rsp + 0x88]
mov rdx, rax
call fcn.0100faec
lea rcx, [rsp + 0x38]
call fcn.0100f940
mov rdx, qword [rsp + 0x88]
cmp qword [rdx - 0x10], rdi
je 0x102286c
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.0100f74c
mov rcx, qword [rsp + 0xa0]
lea rdx, [rsp + 0x38]
mov r8, rax
call fcn.01025e08
lea rcx, [rsp + 0x88]
mov rdx, rax
call fcn.0100faec
lea rcx, [rsp + 0x38]
call fcn.0100f940
lea rcx, [rsp + 0x88]
call fcn.010101ac
lea rcx, [rsp + 0x88]
call fcn.0101012c
mov r9, qword [rsp + 0x88]
cmp qword [r9 - 0x10], rdi
je 0x102286c
lea rdi, [0x01009978]
mov ecx, 0xa
lea rdx, [0x01005408]
repe cmpsw word [rsi], word [rdi]
mov rcx, r13
jne 0x1022864
mov r8, qword [r14]
jmp 0x1022867
mov r8, r12
call fcn.01010648
lea rcx, [rsp + 0x20]
call fcn.0100f940
lea rcx, [rsp + 0x28]
call fcn.0100f940
lea rcx, [rsp + 0x30]
call fcn.0100f940
lea rcx, [rsp + 0x88]
call fcn.0100f940
mov rcx, qword [rsp + 0x90]
call fcn.0100f940
mov rcx, r14
call fcn.0100f940
mov rbp, qword [rsp + 0x80]
mov rax, r13
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret