Function at 0x180007950
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x910
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x900], rax
mov rsi, rcx
xor r13d, r13d
lea rcx, [rsp + 0x4e1]
mov ebp, r13d
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x4e0], bpl
call fcn.180055310
lea r8, [rsp + 0x30]
lea edx, [r13 + 0x10]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x1800079c9
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x4e0]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea rcx, [rsp + 0x7f0]
lea rdx, [rsp + 0x4e0]
mov r8d, 0x104
call fcn.180054180
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x7f0]
lea rdx, [rsp + 0x40]
repne scasb al, byte [rdi]
mov eax, dword [str._.]
lea rcx, [rsp + 0x7f0]
mov dword [rdi - 1], eax
movzx eax, byte [0x180080684]
mov byte [rdi + 3], al
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea rcx, [rsp + 0x2c1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x2c0], bpl
mov rbx, rax
call fcn.180055310
lea r14, [0x18009f3c4]
lea r12, [0x18009f404]
cmp rbx, 0xffffffffffffffff
je 0x180007c80
nop word [rax + rax]
lea rcx, [rsp + 0x2c0]
xor edx, edx
mov r8d, 0x104
call fcn.180055310
mov rdx, r13
nop dword [rax + rax]
movzx eax, byte [rsp + rdx + 0x6c]
inc rdx
mov byte [rsp + rdx + 0x2bf], al
test al, al
jne 0x180007a80
lea rdx, [0x180080688]
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x180007acb
lea rdx, str..url
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x180007c66
lea rcx, [rsp + 0x2c0]
mov edx, 0x2e
call fcn.180051920
lea rcx, [rsp + 0x2c0]
mov byte [rax], bpl
call fcn.18002f760
test eax, eax
je 0x180007c66
lea rcx, [rsp + 0x3d0]
xor edx, edx
mov r8d, 0x104
call fcn.180055310
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x3d0]
lea rdx, [rsp + 0x4e0]
repne scasb al, byte [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180007b30
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x3d0]
repne scasb al, byte [rdi]
movzx eax, word [0x180080268]
or rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0x3d0]
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x6c]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180007b71
lea rcx, [rsp + 0x5f1]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x5f0], bpl
call fcn.180055310
lea rdx, [rsp + 0x5f0]
lea rcx, [rsp + 0x3d0]
xor r9d, r9d
mov r8d, 0x200
mov dword [rsp + 0x20], r13d
call fcn.180033f70
lea rcx, [rsp + 0x180]
xor edx, edx
mov r8d, 0x140
call fcn.180055310
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x5f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180007c04
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x180007c66
cmp eax, 3
je 0x180007c66
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
lea rcx, [rsp + 0x5f0]
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x34], eax
call fcn.180004800
test eax, eax
je 0x180007c66
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x5f0]
call fcn.180007840
test eax, eax
je 0x180007c66
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x30]
mov rax, r14
nop word [rax + rax]
cmp edx, dword [rax - 4]
jne 0x180007c5d
cmp ecx, dword [rax]
je 0x180007fa7
add rax, 8
cmp rax, r12
jl 0x180007c50
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180007a60
or rbx, 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebp, ebp
jne 0x180007f79
lea rcx, [rsp + 0x3d1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x3d0], r13b
call fcn.180055310
lea r8, [rsp + 0x30]
lea edx, [rbp + 0x19]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x180007cd5
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x3d0]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea rcx, [rsp + 0x7f0]
lea rdx, [rsp + 0x3d0]
mov r8d, 0x104
call fcn.180054180
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x7f0]
lea rdx, [rsp + 0x40]
repne scasb al, byte [rdi]
mov eax, dword [str._.]
lea rcx, [rsp + 0x7f0]
mov dword [rdi - 1], eax
movzx eax, byte [0x180080684]
mov byte [rdi + 3], al
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea rcx, [rsp + 0x2c1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x2c0], r13b
mov rbx, rax
call fcn.180055310
cmp rbx, 0xffffffffffffffff
je 0x180007f70
lea rcx, [rsp + 0x2c0]
xor edx, edx
mov r8d, 0x104
call fcn.180055310
mov rdx, r13
nop dword [rax + rax]
movzx eax, byte [rsp + rdx + 0x6c]
inc rdx
mov byte [rsp + rdx + 0x2bf], al
test al, al
jne 0x180007d70
lea rdx, [0x180080688]
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x180007dbb
lea rdx, str..url
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x180007f56
lea rcx, [rsp + 0x2c0]
mov edx, 0x2e
call fcn.180051920
lea rcx, [rsp + 0x2c0]
mov byte [rax], r13b
call fcn.18002f760
test eax, eax
je 0x180007f56
lea rcx, [rsp + 0x4e0]
xor edx, edx
mov r8d, 0x104
call fcn.180055310
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x4e0]
lea rdx, [rsp + 0x3d0]
repne scasb al, byte [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180007e20
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x4e0]
repne scasb al, byte [rdi]
movzx eax, word [0x180080268]
or rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0x4e0]
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x6c]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180007e61
lea rcx, [rsp + 0x5f1]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x5f0], r13b
call fcn.180055310
lea rdx, [rsp + 0x5f0]
lea rcx, [rsp + 0x4e0]
xor r9d, r9d
mov r8d, 0x200
mov dword [rsp + 0x20], r13d
call fcn.180033f70
lea rcx, [rsp + 0x180]
xor edx, edx
mov r8d, 0x140
call fcn.180055310
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x5f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180007ef4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x180007f56
cmp eax, 3
je 0x180007f56
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
lea rcx, [rsp + 0x5f0]
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x34], eax
call fcn.180004800
test eax, eax
je 0x180007f56
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x5f0]
call fcn.180007840
test eax, eax
je 0x180007f56
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x30]
mov rax, r14
nop word [rax + rax]
cmp edx, dword [rax - 4]
jne 0x180007f4d
cmp ecx, dword [rax]
je 0x180007fd8
add rax, 8
cmp rax, r12
jl 0x180007f40
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180007d50
or rbx, 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
mov rcx, qword [rsp + 0x900]
xor rcx, rsp
call fcn.180050540
lea r11, [rsp + 0x910]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
lea rax, [rsp + 0x5f0]
mov rdx, rsi
lea rcx, [rsp + 0x5f0]
sub rdx, rax
nop dword [rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rdx + rcx - 1], al
test al, al
jne 0x180007fc0
mov ebp, 1
jmp 0x180007c80
lea rax, [rsp + 0x5f0]
lea rcx, [rsp + 0x5f0]
sub rsi, rax
nop dword [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rsi + rcx - 1], al
test al, al
jne 0x180007ff0
mov ebp, 1
jmp 0x180007f70