Function at 0x140006044
Capabilities:
Check if file exists
Enumerate files on windows
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r15
sub rsp, 0x870
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, 2
mov ebp, eax
mov r15d, 0x143
bt ebp, esi
jae 0x14000633c
lea rcx, [rsp + 0x761]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x760], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x760]
call fcn.1400087a8
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x104
call sub.msvcrt.dll_memset
lea r11d, [rsi + 0x41]
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x20], r11b
mov byte [rsp + 0x21], 0x3a
mov byte [rsp + 0x22], 0x5c
mov byte [rsp + 0x23], 0
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x1400060eb
cmp eax, 3
jne 0x14000633c
or qword [rsp + 0x130], 0xffffffffffffffff
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x500]
mov r8d, r15d
mov byte [rsp + 0x138], 0
mov byte [rsp + 0x500], 0
mov byte [rsp + 0x3bc], 0
call fcn.140008530
lea rcx, [rsp + 0x500]
call sub.msvcrt.dll_strlen
lea rcx, [0x140014d14]
mov rbx, rax
call sub.msvcrt.dll_strlen
lea rcx, [rbx + rax + 1]
cmp rcx, r15
jae 0x140006165
lea r8, [rsp + 0x138]
lea rdx, [0x140014d14]
lea rcx, [rsp + 0x500]
call fcn.14000874c
jmp 0x14000616d
mov byte [rsp + 0x138], 0
mov rcx, qword [rsp + 0x130]
lea rdx, [rsp + 0x27c]
cmp rcx, 0xffffffffffffffff
jne 0x14000619d
lea rcx, [rsp + 0x138]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor edi, edi
cmp rax, 0xffffffffffffffff
setne dil
jmp 0x1400061c5
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov edi, eax
jne 0x1400061d5
mov rcx, qword [rsp + 0x130]
cmp rcx, 0xffffffffffffffff
je 0x14000633c
call qword [sym.imp.KERNEL32.dll_FindClose]
or rax, 0xffffffffffffffff
test edi, edi
mov qword [rsp + 0x130], rax
je 0x14000632d
lea rcx, [rsp + 0x2a8]
call sub.msvcrt.dll_strlen
lea rcx, [rsp + 0x500]
mov rbx, rax
call sub.msvcrt.dll_strlen
lea rcx, [rbx + rax + 1]
cmp rcx, r15
jae 0x14000621b
lea r8, [rsp + 0x3bc]
lea rdx, [rsp + 0x2a8]
lea rcx, [rsp + 0x500]
call fcn.14000874c
jmp 0x140006223
mov byte [rsp + 0x3bc], 0
test edi, edi
je 0x140006325
test byte [rsp + 0x27c], 0x10
je 0x14000616d
lea rdx, [0x14001502c]
lea rcx, [rsp + 0x2a8]
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x14000616d
lea rdx, [0x140015030]
lea rcx, [rsp + 0x2a8]
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x14000616d
lea rdx, [rsp + 0x760]
lea rcx, [rsp + 0x3bc]
call sub.msvcrt.dll__strcmpi
test eax, eax
je 0x14000616d
mov edi, 0x104
lea rcx, [rsp + 0x651]
xor edx, edx
mov r8, rdi
mov byte [rsp + 0x650], 0
call sub.msvcrt.dll_memset
lea rcx, str.system32config
call sub.msvcrt.dll_strlen
lea rcx, [rsp + 0x3bc]
mov rbx, rax
call sub.msvcrt.dll_strlen
lea rcx, [rbx + rax + 1]
cmp rcx, rdi
jae 0x1400062f1
lea r8, [rsp + 0x650]
lea rdx, str.system32config
lea rcx, [rsp + 0x3bc]
call fcn.14000874c
jmp 0x1400062f9
mov byte [rsp + 0x650], 0
lea rcx, [rsp + 0x650]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000616d
lea rdx, [rsp + 0x3bc]
mov rcx, r12
call fcn.140005fa0
jmp 0x14000616d
mov rax, qword [rsp + 0x130]
cmp rax, 0xffffffffffffffff
je 0x14000633c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
add esi, 1
cmp esi, 0x20
jb 0x140006075
lea r11, [rsp + 0x870]
xor eax, eax
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret