Function at 0x1400044f0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x150
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x140016060]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r14, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xor edx, edx
mov r8d, 0x105
lea rcx, [rsp + 0x30]
call fcn.140005e00
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0x30]
lea r12d, [rsi + 1]
or r13, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x1400045b1
movzx edi, cx
mov ecx, edi
call fcn.140004fe0
test rax, rax
je 0x140004695
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140004cc0
mov rbx, qword [rsp + 0x20]
jmp 0x140004695
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140004624
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140004695
cmp dword [rdx + 0x10], eax
jge 0x1400045f9
cmp dword [rbx - 0xc], eax
jge 0x1400045ef
mov ecx, 0x80070057
call fcn.140005120
int3
mov dword [rbx - 0x10], esi
mov byte [rbx], al
jmp 0x140004695
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140004610
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x140004695
mov ebp, dword [rbx - 0x10]
lea rsi, [rsp + 0x30]
sub rsi, rbx
test ecx, ecx
jns 0x14000463e
mov ecx, 0x80070057
call fcn.140005120
int3
mov ecx, r12d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000465e
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140004c60
mov rbx, qword [rsp + 0x20]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
cmp rsi, rbp
movsxd rbp, edi
mov r9, rbp
ja 0x14000467b
lea r8, [rsi + rbx]
call fcn.140005860
jmp 0x140004685
lea r8, [rsp + 0x30]
call fcn.1400057bc
cmp edi, dword [rbx - 0xc]
jg 0x140004727
mov dword [rbx - 0x10], edi
mov byte [rbx + rbp], 0
mov edx, dword [rbx - 0x10]
inc edx
jns 0x1400046a7
mov ecx, 0x80070057
call fcn.140005120
int3
sub r12d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or r12d, eax
jge 0x1400046c4
lea rcx, [rsp + 0x20]
call fcn.140004c60
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140005844
test eax, eax
js 0x14000471c
cmp eax, dword [rbx - 0xc]
jg 0x14000471c
mov dword [rbx - 0x10], eax
cdqe
mov byte [rax + rbx], 0
lea rcx, [rbx - 0x18]
call fcn.140004bc0
add rax, 0x18
mov qword [r14], rax
lock xadd dword [rbx - 8], r13d
dec r13d
test r13d, r13d
jg 0x140004717
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + 8]
mov rax, r14
jmp 0x140004732
mov ecx, 0x80070057
call fcn.140005120
nop
mov ecx, 0x80070057
call fcn.140005120
nop
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140005480
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret