Function at 0x10210e4
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.0100d7ec
mov rcx, qword [0x01043880]
mov rbp, qword [rsp + 0x88]
mov qword [r13], rcx
cmp qword [rbp - 0x10], 0
je 0x1021476
mov rax, qword [r14]
cmp qword [rax - 0x10], 0
je 0x1021476
cmp qword [rsp + 0xa0], 0
je 0x1021476
mov r12, qword [0x01043880]
mov ecx, 0x82
mov qword [rsp + 0x30], r12
call fcn.010233b0
mov rdi, rax
test rax, rax
je 0x10211d6
mov edx, 0x40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
test eax, eax
jne 0x1021184
mov rcx, rdi
call fcn.01023428
jmp 0x10211d6
cmp eax, 0x40
jb 0x10211b7
inc eax
movsxd rcx, eax
add rcx, rcx
call fcn.010233b0
mov rdi, rax
test rax, rax
je 0x10211d6
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x10211b7
mov rcx, rdi
call fcn.01023428
xor edi, edi
test rdi, rdi
je 0x10211d6
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.0100dc00
mov rcx, rdi
call fcn.01023428
mov r12, qword [rsp + 0x30]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x28]
call fcn.0100d7ec
lea rcx, [rsp + 0x28]
call fcn.0100d990
mov rcx, qword [rsp + 0x28]
call fcn.01027d54
mov rsi, qword [rsp + 0x28]
mov eax, 0xa
lea rdi, [0x010079b8]
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x102121a
mov rdx, r14
jmp 0x1021233
mov rsi, qword [rsp + 0x28]
lea rdi, [0x010079d0]
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x102123b
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.0100db8c
mov rax, qword [r13]
xor edi, edi
cmp qword [rax - 0x10], rdi
jne 0x1021462
mov rax, qword [0x01043880]
lea rdx, [0x010079b8]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.0100dc00
mov rsi, qword [rsp + 0x20]
mov rdx, rsi
mov rcx, rbp
call fcn.01027a44
cmp rax, rdi
jne 0x1021282
or eax, 0xffffffff
jmp 0x1021288
sub rax, rbp
sar rax, 1
movsxd r8, eax
cmp r8, 0xffffffffffffffff
jne 0x1021337
lea rdx, [0x010079d0]
lea rcx, [rsp + 0x20]
call fcn.0100dc00
mov rsi, qword [rsp + 0x20]
mov rcx, rbp
mov rdx, rsi
call fcn.01027a44
cmp rax, rdi
jne 0x10212c0
or eax, 0xffffffff
jmp 0x10212c6
sub rax, rbp
sar rax, 1
movsxd r8, eax
cmp r8, 0xffffffffffffffff
jne 0x1021337
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.0100d7ec
mov rcx, qword [rsp + 0xa0]
lea rdx, [rsp + 0x38]
mov r8, rax
call fcn.010249f4
lea rcx, [rsp + 0x88]
mov rdx, rax
call fcn.0100db8c
lea rcx, [rsp + 0x38]
call fcn.0100d9e0
mov rdx, qword [rsp + 0x88]
cmp qword [rdx - 0x10], rdi
je 0x1021458
lea rdx, [rsp + 0x88]
mov rcx, r13
call fcn.0100db8c
jmp 0x1021458
add r8, qword [rsi - 0x10]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x88]
call fcn.0100e0f0
lea rcx, [rsp + 0x88]
mov rdx, rax
call fcn.0100db8c
lea rcx, [rsp + 0x38]
call fcn.0100d9e0
mov rdx, qword [rsp + 0x88]
cmp qword [rdx - 0x10], rdi
je 0x1021458
cmp word [rdx], 0x2b
jne 0x1021458
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x88]
mov r8d, 1
call fcn.0100e0f0
lea rcx, [rsp + 0x88]
mov rdx, rax
call fcn.0100db8c
lea rcx, [rsp + 0x38]
call fcn.0100d9e0
mov rdx, qword [rsp + 0x88]
cmp qword [rdx - 0x10], rdi
je 0x1021458
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.0100d7ec
mov rcx, qword [rsp + 0xa0]
lea rdx, [rsp + 0x38]
mov r8, rax
call fcn.010249f4
lea rcx, [rsp + 0x88]
mov rdx, rax
call fcn.0100db8c
lea rcx, [rsp + 0x38]
call fcn.0100d9e0
lea rcx, [rsp + 0x88]
call fcn.0100e24c
lea rcx, [rsp + 0x88]
call fcn.0100e1cc
mov r9, qword [rsp + 0x88]
cmp qword [r9 - 0x10], rdi
je 0x1021458
lea rdi, [0x010079b8]
mov ecx, 0xa
lea rdx, [0x01003438]
repe cmpsw word [rsi], word [rdi]
mov rcx, r13
jne 0x1021450
mov r8, qword [r14]
jmp 0x1021453
mov r8, r12
call fcn.0100e6e8
lea rcx, [rsp + 0x20]
call fcn.0100d9e0
lea rcx, [rsp + 0x28]
call fcn.0100d9e0
lea rcx, [rsp + 0x30]
call fcn.0100d9e0
lea rcx, [rsp + 0x88]
call fcn.0100d9e0
mov rcx, qword [rsp + 0x90]
call fcn.0100d9e0
mov rcx, r14
call fcn.0100d9e0
mov rbp, qword [rsp + 0x80]
mov rax, r13
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret