Function at 0x180008780
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x180074b88]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r12, rcx
mov qword [rbp - 0x70], rcx
mov ecx, dword [0x18007b790]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x18007ae18], ecx
jg 0x180008cb6
cmp byte [0x18007adfc], 0
jne 0x180008c4e
lea rdx, [rbp + 0x120]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], r13b
lea rax, [rbp + 0x120]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], r13b
jne 0x180008830
lea rdx, [rbp + 0x120]
lea rcx, [rsp + 0x30]
call fcn.180001630
nop
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 0x18
jb 0x18000889c
lea rax, [rcx + 0x18]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x30]
add rbx, rcx
mov r8d, 0x18
lea rdx, str.interface_flags.rttex
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x18], 0
lea rax, [rsp + 0x30]
jmp 0x1800088bd
mov qword [rsp + 0x20], 0x18
lea r9, str.interface_flags.rttex
xor r8d, r8d
lea edx, [r8 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.180002880
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x180008927
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008922
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008922
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005bb5c
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
xor edx, edx
mov r8d, 0x140
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rcx, qword [rbp - 0x48]
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x180008bed
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], 0
lea rax, [rbp + 0xc]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x180008990
lea rdx, [rbp + 0xc]
lea rcx, [rbp - 0x68]
call fcn.180001630
nop
mov qword [rsp + 0x70], r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], 0
xor r8d, r8d
lea rdx, [0x18005fb1b]
lea rcx, [rsp + 0x70]
call fcn.180001630
nop
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov r8d, 6
lea rdx, str..rttex
lea rcx, [rsp + 0x50]
call fcn.180001630
nop
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.180011640
movzx ebx, al
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x180008a56
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008a51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180008c2d
call fcn.18005bb5c
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x180008aa5
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008aa0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180008c34
call fcn.18005bb5c
test bl, bl
je 0x180008b98
cmp qword [rbp - 0x58], 2
jne 0x180008b98
mov rbx, qword [0x18007ae08]
cmp rbx, qword [0x18007ae10]
je 0x180008b84
mov qword [rbx], r13
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
mov rsi, qword [rbp - 0x58]
lea r14, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae r14, qword [rbp - 0x68]
cmp rsi, 0x10
jae 0x180008afd
movups xmm0, xmmword [r14]
movups xmmword [rbx], xmm0
mov edi, 0xf
jmp 0x180008b72
mov rdi, rsi
or rdi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
cmova rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x180008b51
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180008cb0
mov rcx, rax
call fcn.18005bb20
mov rcx, rax
test rax, rax
je 0x180008c3b
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180008b60
test rcx, rcx
je 0x180008b5d
call fcn.18005bb20
jmp 0x180008b60
mov rax, r13
mov qword [rbx], rax
lea r8, [rsi + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rdi
add qword [0x18007ae08], 0x20
jmp 0x180008b98
lea r8, [rbp - 0x68]
mov rdx, rbx
lea rcx, [0x18007ae00]
call fcn.180002080
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x180008bcf
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008bca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180008c42
call fcn.18005bb5c
lea rdx, [rbp - 0x20]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180008970
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov byte [0x18007adfc], 1
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x180008c4e
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008c49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008c49
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.18005bb5c
mov rdx, qword [0x18007ae08]
sub rdx, qword [0x18007ae00]
sar rdx, 5
xor ecx, ecx
call fcn.180011260
movsxd rdx, eax
shl rdx, 5
add rdx, qword [0x18007ae00]
mov rcx, r12
call fcn.180003210
mov rax, r12
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.18005bc70
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1800014f0
nop
lea rcx, [0x18007ae18]
call fcn.18005c380
cmp dword [0x18007ae18], 0xffffffff
jne 0x1800087e6
lea rcx, [0x18005e650]
call fcn.18005c024
lea rcx, [0x18007ae18]
call fcn.18005c320
jmp 0x1800087e6