Function at 0x14011f3b0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x300], rbx
movzx esi, dl
mov r15, rcx
mov dword [rbp - 0x70], 0
lea rax, [0x14016e190]
mov qword [rsp + 0x38], rax
mov rdi, 0xffffffffffffffff
test dl, dl
jne 0x14011f4a3
lea rcx, [rsp + 0x60]
call fcn.1400bb3f0
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14004eea0
nop
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140050370
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140008140
nop
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011f452
cmp ecx, edi
je 0x14011f466
mov ecx, edi
mov rax, qword [rsp + 0x58]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011f466
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x58]
call fcn.140049bf0
nop
lea rcx, [rbp - 0x68]
call fcn.14004f180
nop
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011f490
cmp ecx, 0xffffffff
je 0x14011f4a3
mov ecx, edi
mov rax, qword [rsp + 0x60]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011f4a3
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x60]
call fcn.140049bf0
mov qword [rbp - 0x50], 0x104
lea rax, [rbp - 0x40]
mov qword [rbp - 0x48], rax
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
cmp eax, 0x104
jbe 0x14011f4ef
mov r8d, eax
cmp eax, dword [rbp - 0x50]
cmovl r8d, dword [rbp - 0x50]
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.1400acd80
mov edx, ebx
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
mov r8d, ebx
mov rdx, qword [rbp - 0x48]
lea rcx, [rsp + 0x68]
call fcn.140040590
nop
mov rcx, qword [rax]
mov qword [rsp + 0x48], rcx
lea rcx, [0x1401a1e20]
mov qword [rax], rcx
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011f533
cmp ecx, 0xffffffff
je 0x14011f547
mov ecx, edi
mov rax, qword [rsp + 0x68]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011f547
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x68]
call fcn.140049bf0
nop
lea rax, [rbp - 0x40]
mov rcx, qword [rbp - 0x48]
cmp rcx, rax
je 0x14011f55a
call fcn.1401297e8
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.140008140
nop
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011f58a
cmp ecx, 0xffffffff
je 0x14011f59d
mov ecx, edi
mov rax, qword [rsp + 0x48]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011f59d
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x48]
call fcn.140049bf0
test sil, sil
jne 0x14011f6ff
lea rdx, [0x140289c20]
lea rcx, [rsp + 0x70]
call fcn.140057f10
nop
mov rcx, qword [rax]
add rcx, qword [rcx + 0x10]
je 0x14011f5cf
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x14011f5c4
jmp 0x14011f5d1
xor eax, eax
mov edx, eax
call fcn.140040310
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011f5fd
cmp ecx, 0xffffffff
je 0x14011f610
mov ecx, edi
mov rax, qword [rsp + 0x70]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011f610
mov edx, 1
lea r8d, [rdx + 7]
mov rcx, qword [rsp + 0x70]
call fcn.140049bf0
mov eax, 0x3b
mov word [rbp + 0x210], ax
mov dword [rsp + 0x20], 1
lea r9d, [rax - 0x3a]
movzx r8d, ax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.140044e80
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14011f240
nop
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011f66a
cmp ecx, 0xffffffff
je 0x14011f6cc
mov ecx, edi
mov rax, qword [rsp + 0x78]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011f6cc
mov r14, qword [rsp + 0x78]
movsxd rbx, dword [r14 + 0xc]
add rbx, 2
lea rbx, [r14 + rbx*8]
movsxd rsi, dword [r14 + 8]
add rsi, 2
lea rsi, [r14 + rsi*8]
cmp rsi, rbx
je 0x14011f6c3
nop dword [rax]
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x14011f6ad
cmp eax, 0xffffffff
je 0x14011f6be
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011f6be
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.140049bf0
cmp rbx, rsi
jne 0x14011f690
mov rcx, r14
call fcn.14003a040
nop
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011f6ec
cmp ecx, 0xffffffff
je 0x14011f6ff
mov ecx, edi
mov rax, qword [rsp + 0x50]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011f6ff
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x50]
call fcn.140049bf0
mov r8d, edi
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.1400043b0
nop
mov dword [rbp - 0x80], 4
lea rax, [0x140205d60]
mov qword [rbp - 0x78], rax
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.14003d350
xor r14d, r14d
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 0xc]
sub ecx, edx
test ecx, ecx
jle 0x14011f840
xor esi, esi
mov r15d, 0x5c
mov word [rbp + 0x208], r15w
nop dword [rax]
nop word [rax + rax]
movsxd rcx, edx
add rcx, rsi
mov rdx, qword [rax + rcx*8 + 0x10]
mov qword [rsp + 0x30], rdx
mov eax, dword [rdx]
inc eax
cmp eax, 1
jbe 0x14011f792
mov eax, 1
lock xadd dword [rdx], eax
mov r8d, 1
movzx edx, word [rbp + 0x208]
lea rcx, [rsp + 0x30]
call fcn.14003fd00
test al, al
jne 0x14011f7c3
mov word [rbp + 0x218], r15w
movzx edx, r15w
lea rcx, [rsp + 0x30]
call fcn.14003cf60
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14003d080
lea rcx, [rsp + 0x30]
call fcn.140046630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
jne 0x14011f8be
test ecx, ecx
je 0x14011f811
cmp ecx, 0xffffffff
je 0x14011f824
mov ecx, edi
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011f824
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x30]
call fcn.140049bf0
inc r14d
inc rsi
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 0xc]
sub ecx, edx
cmp r14d, ecx
jl 0x14011f770
xor ebx, ebx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011f862
cmp ecx, 0xffffffff
je 0x14011f876
mov ecx, edi
mov rax, qword [rsp + 0x40]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011f876
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x40]
call fcn.140049bf0
nop
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011f894
cmp ecx, 0xffffffff
je 0x14011f8a4
mov rcx, qword [rsp + 0x38]
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x14011f8a4
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.140008550
nop
mov rax, rbx
mov rbx, qword [rsp + 0x300]
add rsp, 0x2d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test ecx, ecx
je 0x14011f8df
cmp ecx, 0xffffffff
je 0x14011f842
mov ecx, edi
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011f842
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x30]
call fcn.140049bf0
jmp 0x14011f842