Function at 0x1400cd5b0
Capabilities:
Enumerate files on windows
Get disk information
Get file system object information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2928]
mov eax, 0x2a28
call fcn.140078870
sub rsp, rax
mov rsi, qword [rcx + 0x20]
mov r14, rcx
mov ecx, 1
mov qword [rbp + 0x2970], rsi
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x48]
call sub.msvcrt.dll_memset
xor r13d, r13d
test rbx, rbx
lea rdi, [0x14015ce88]
lea r15d, [r13 + 0x5c]
cmovne rdi, rbx
cmp word [rdi], r15w
jne 0x1400cd630
lea rbx, [rdi + 2]
movzx edx, r15w
mov rcx, rbx
call sub.msvcrt.dll_wcschr
test rax, rax
cmove rdi, rbx
test rdi, rdi
je 0x1400cd728
cmp word [rdi], r13w
je 0x1400cd728
mov edx, r15d
mov rcx, rdi
call sub.msvcrt.dll_wcschr
test rax, rax
jne 0x1400cd667
lea rcx, [rsi + 0x218]
mov rdx, rdi
call sub.msvcrt.dll_wcscpy
jmp 0x1400cd713
mov rcx, rdi
call sub.msvcrt.dll_wcslen
cmp word [rdi + rax*2 - 2], r15w
jne 0x1400cd697
lea rbx, [rsi + 0x10]
mov rdx, rdi
mov rcx, rbx
call sub.msvcrt.dll_wcscpy
cmp word [rbx], 0x61
movzx eax, word [rbx]
jb 0x1400cd692
sub eax, 0x20
mov word [rbx], ax
jmp 0x1400cd713
lea r15, [rsi + 0x10]
xor edx, edx
mov r8d, 0x208
mov rcx, r15
call sub.msvcrt.dll_memset
mov rcx, rdi
call sub.msvcrt.dll_wcslen
mov rbx, rax
test eax, eax
js 0x1400cd70d
mov eax, 0x5c
movsxd rcx, ebx
cmp word [rdi + rcx*2], ax
je 0x1400cd6d1
dec ebx
jns 0x1400cd6bf
mov r15d, eax
jmp 0x1400cd713
lea eax, [rbx + 1]
mov rdx, rdi
mov rcx, r15
movsxd r8, eax
add r8, r8
call sub.msvcrt.dll_memcpy
movsxd rdx, ebx
lea rcx, [rsi + 0x218]
inc rdx
lea rdx, [rdi + rdx*2]
call sub.msvcrt.dll_wcscpy
cmp word [r15], 0x61
movzx eax, word [r15]
jb 0x1400cd709
sub eax, 0x20
mov word [r15], ax
mov r15d, 0x5c
mov rcx, qword [r14]
lea r12, [rsi + 0x10]
cmp word [r12], r13w
jne 0x1400cd72f
call fcn.1400d8470
jmp 0x1400cd737
mov word [rsi + 0x10], r13w
jmp 0x1400cd713
mov rdx, r12
call fcn.1400d8960
mov rcx, qword [r14]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1009
call qword [sym.imp.USER32.DLL_SendMessageW]
cmp word [r12], r13w
jne 0x1400cd96a
test byte [rsi + 0xc], 4
jne 0x1400cdffe
lea rax, [0x14015ce88]
mov dword [rsp + 0x30], 7
mov qword [rsp + 0x34], 0x10000
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea rdx, [0x1401743a0]
lea rcx, [rbp + 0x710]
mov edi, eax
mov dword [rbp + 0x2970], eax
call sub.msvcrt.dll_wcscpy
mov ebx, r13d
mov r15d, 0x200
bt edi, ebx
jae 0x1400cd8b9
lea eax, [rbx + 0x41]
lea rdx, str.Drive
lea rcx, [rbp + 0x668]
mov word [rbp + 0x710], ax
xor eax, eax
mov qword [rsp + 0x58], r13
mov word [rbp + 0x240], ax
call sub.msvcrt.dll_wcscpy
lea r8, [rbp + 0x450]
lea rcx, [rbp + 0x710]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
mov eax, dword [rbp + 0x458]
lea r8, [rbp + 0x450]
lea rcx, [rbp + 0x710]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x20], r15d
call qword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
lea rdx, [rbp + 0x460]
lea rcx, [rbp + 0x240]
call sub.msvcrt.dll_wcscpy
mov rcx, qword [r14]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x104d
call qword [sym.imp.USER32.DLL_SendMessageW]
mov qword [rbp + 0x2978], rax
xor eax, eax
mov r12d, eax
cmp dword [rsi + 0x2230], eax
jle 0x1400cd8b9
mov r15, qword [rbp + 0x2978]
lea rdi, [rsi + 0x2234]
cmp byte [rdi], 2
jne 0x1400cd89e
mov rcx, qword [r14]
lea rax, [rbp + 0x240]
lea r9, [rbp - 0x80]
movsxd r8, r15d
mov edx, 0x1074
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x78], r12d
call qword [sym.imp.USER32.DLL_SendMessageW]
inc r12d
inc rdi
cmp r12d, dword [rsi + 0x2230]
jl 0x1400cd875
mov edi, dword [rbp + 0x2970]
mov r15d, 0x200
inc ebx
inc r13
cmp ebx, 0x1f
jle 0x1400cd7a7
xor r13d, r13d
cmp dword [0x14084110c], r13d
je 0x1400cdffe
test dword [rsi + 0xc], r15d
jne 0x1400cdffe
mov rcx, qword [r14]
lea rax, [0x14015ce88]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov eax, dword [0x1408c129c]
xor r8d, r8d
mov edx, 0x104d
mov qword [rsp + 0x58], 0xfd
mov dword [rsp + 0x54], eax
call qword [sym.imp.USER32.DLL_SendMessageW]
mov ebx, r13d
mov r15, rax
cmp dword [rsi + 0x2230], r13d
jle 0x1400cdffe
lea rdi, [rsi + 0x2234]
cmp byte [rdi], 2
jne 0x1400cd958
mov rcx, qword [r14]
lea rax, [0x1408c0050]
lea r9, [rbp - 0x80]
movsxd r8, r15d
mov edx, 0x1074
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x78], ebx
call qword [sym.imp.USER32.DLL_SendMessageW]
inc ebx
inc rdi
cmp ebx, dword [rsi + 0x2230]
jl 0x1400cd930
jmp 0x1400cdffe
test byte [rsi + 0xc], 2
lea rbx, [0x1401743b4]
jne 0x1400cda95
lea rax, [0x14015ce88]
movzx edx, r15w
mov rcx, r12
mov qword [rsp + 0x48], rax
mov eax, dword [0x1408c1298]
mov qword [rsp + 0x30], 7
mov dword [rsp + 0x54], eax
call sub.msvcrt.dll_wcschr
movzx edx, r15w
lea rcx, [rax + 2]
call sub.msvcrt.dll_wcschr
mov edi, 0xfa
neg rax
sbb rcx, rcx
neg rcx
add rcx, rdi
cmp dword [0x14084110c], r13d
mov qword [rsp + 0x58], rcx
je 0x1400cda2a
mov r15d, 0x200
test dword [rsi + 0xc], r15d
jne 0x1400cda2a
lea rbx, [0x1408c0258]
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov rdx, rbx
mov rcx, r12
mov r8, rax
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x1400cda2a
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov edx, 0x5c
add rax, 8
lea rcx, [rsi + rax*2]
call sub.msvcrt.dll_wcschr
mov rcx, qword [rsp + 0x58]
test rax, rax
cmove rcx, rdi
mov qword [rsp + 0x58], rcx
mov rcx, qword [r14]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x104d
call qword [sym.imp.USER32.DLL_SendMessageW]
mov ebx, r13d
mov r15, rax
cmp dword [rsi + 0x2230], r13d
jle 0x1400cda8e
lea rdi, [rsi + 0x2234]
lea r13, [0x1401743b4]
cmp byte [rdi], 2
jne 0x1400cda7e
mov rcx, qword [r14]
lea r9, [rbp - 0x80]
movsxd r8, r15d
mov edx, 0x1074
mov dword [rbp - 0x78], ebx
mov qword [rbp - 0x68], r13
call qword [sym.imp.USER32.DLL_SendMessageW]
inc ebx
inc rdi
cmp ebx, dword [rsi + 0x2230]
jl 0x1400cda5d
xor r13d, r13d
lea rbx, [0x1401743b4]
test byte [rsi + 0xc], 4
jne 0x1400cdca0
lea rcx, [rbp + 0x240]
mov rdx, r12
call sub.msvcrt.dll_wcscpy
lea rdx, [0x1401743c0]
lea rcx, [rbp + 0x240]
call sub.msvcrt.dll_wcscat
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov qword [rbp + 0x2978], rax
cmp rax, 0xffffffffffffffff
je 0x1400cdca0
lea rax, [0x14015ce88]
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x34], 0xffff
mov dword [rsp + 0x54], 7
mov qword [rsp + 0x58], 0xfc
mov qword [rsp + 0x48], rax
test byte [rbp - 0x10], 0x10
je 0x1400cdc77
lea rdx, [0x14017436c]
lea rcx, [rbp + 0x1c]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400cdc77
lea rcx, [rbp + 0x1c]
mov rdx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400cdc77
mov eax, dword [0x1408c1298]
mov rcx, qword [r14]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x104d
mov dword [rsp + 0x54], eax
call qword [sym.imp.USER32.DLL_SendMessageW]
mov ebx, r13d
mov r12, rax
cmp dword [rsi + 0x2230], r13d
jle 0x1400cdc77
lea r13, [rsi + 0x2234]
movzx edx, byte [r13]
sub edx, 2
je 0x1400cdc3c
sub edx, 3
je 0x1400cdbc9
dec edx
je 0x1400cdbb2
dec edx
je 0x1400cdbac
dec edx
jne 0x1400cdc5c
lea r9, [rbp - 4]
jmp 0x1400cdbb6
lea r9, [rbp + 4]
jmp 0x1400cdbb6
lea r9, [rbp - 0xc]
mov rcx, qword [r14]
mov r8d, ebx
mov edx, r12d
call fcn.1400ce02c
jmp 0x1400cdc5c
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0xb]
call sub.msvcrt.dll_memset
lea r15, str.RHSDANTCOE
lea rdi, [0x1408410e0]
lea rsi, [0x140841104]
mov eax, dword [rbp - 0x10]
test dword [rdi], eax
je 0x1400cdc06
lea rcx, [rbp - 0x30]
call sub.msvcrt.dll_wcslen
movzx ecx, word [r15]
mov word [rbp + rax*2 - 0x30], cx
add rdi, 4
add r15, 2
cmp rdi, rsi
jle 0x1400cdbed
mov rcx, qword [r14]
lea rax, [rbp - 0x30]
lea r9, [rbp - 0x80]
movsxd r8, r12d
mov edx, 0x1074
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x78], ebx
call qword [sym.imp.USER32.DLL_SendMessageW]
mov rsi, qword [rbp + 0x2970]
jmp 0x1400cdc5c
mov rcx, qword [r14]
lea rax, [rbp + 0x1c]
lea r9, [rbp - 0x80]
movsxd r8, r12d
mov edx, 0x1074
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x78], ebx
call qword [sym.imp.USER32.DLL_SendMessageW]
inc ebx
inc r13
cmp ebx, dword [rsi + 0x2230]
jl 0x1400cdb83
mov rdi, qword [rbp + 0x2978]
xor r13d, r13d
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rbx, [0x1401743b4]
test eax, eax
jne 0x1400cdb13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r12, [rsi + 0x10]
test byte [rsi + 0xc], 1
jne 0x1400cdffe
lea r15, [rsi + 0x218]
lea rcx, [rbp + 0x710]
mov rdx, r15
call sub.msvcrt.dll_wcscpy
lea rcx, [rbp + 0x710]
call sub.msvcrt.dll_wcslen
mov rcx, r15
mov edi, r13d
mov word [rbp + rax*2 + 0x712], r13w
call sub.msvcrt.dll_wcslen
mov rbx, r13
cmp word [rbp + rbx*2 + 0x710], 0x3b
jne 0x1400cdcf7
mov word [rbp + rbx*2 + 0x710], r13w
inc edi
mov rcx, r15
movsxd rbx, edi
call sub.msvcrt.dll_wcslen
cmp rbx, rax
jbe 0x1400cdce3
lea rcx, [0x1408c40c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r15d, r15d
lea r13, [rbp + 0x710]
cmp word [rbp + 0x710], r15w
jmp 0x1400cdfe1
lea rcx, [rbp + 0x240]
mov rdx, r12
call sub.msvcrt.dll_wcscpy
lea rcx, [rbp + 0x240]
mov rdx, r13
call sub.msvcrt.dll_wcscat
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov qword [rbp + 0x2988], rax
cmp rax, 0xffffffffffffffff
je 0x1400cdfcb
lea rax, [0x14015ce88]
lea rcx, [rbp + 0x450]
xor edx, edx
mov r8d, 0x2b8
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x34], 0xffff
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x54], 0xa
mov qword [rsp + 0x58], 0xff
call sub.msvcrt.dll_memset
test byte [rbp - 0x10], 0x10
jne 0x1400cdfa6
lea rcx, [rbp + 0x240]
mov rdx, r12
call sub.msvcrt.dll_wcscpy
lea rdx, [rbp + 0x1c]
lea rcx, [rbp + 0x240]
call sub.msvcrt.dll_wcscat
lea rdx, [rbp + 0x2980]
lea rcx, [rbp + 0x240]
call fcn.1400d8508
mov rcx, qword [r14]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x104d
mov dword [rsp + 0x54], eax
call qword [sym.imp.USER32.DLL_SendMessageW]
mov ebx, r15d
mov r12, rax
cmp dword [rsi + 0x2230], r15d
jle 0x1400cdfa2
lea r13, [rsi + 0x2234]
movzx edx, byte [r13]
sub edx, 2
je 0x1400cdf6a
dec edx
je 0x1400cdef8
dec edx
je 0x1400cdeef
dec edx
je 0x1400cde76
dec edx
je 0x1400cde5f
dec edx
je 0x1400cde59
dec edx
jne 0x1400cdf8a
lea r9, [rbp - 4]
jmp 0x1400cde63
lea r9, [rbp + 4]
jmp 0x1400cde63
lea r9, [rbp - 0xc]
mov rcx, qword [r14]
mov r8d, ebx
mov edx, r12d
call fcn.1400ce02c
jmp 0x1400cdf8a
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0xb]
call sub.msvcrt.dll_memset
lea r15, str.RHSDANTCOE
lea rdi, [0x1408410e0]
lea rsi, [0x140841104]
mov eax, dword [rdi]
test dword [rbp - 0x10], eax
je 0x1400cdeb3
lea rcx, [rbp - 0x30]
call sub.msvcrt.dll_wcslen
movzx ecx, word [r15]
mov word [rbp + rax*2 - 0x30], cx
add rdi, 4
add r15, 2
cmp rdi, rsi
jle 0x1400cde9a
mov rcx, qword [r14]
lea rax, [rbp - 0x30]
lea r9, [rbp - 0x80]
movsxd r8, r12d
mov edx, 0x1074
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x78], ebx
call qword [sym.imp.USER32.DLL_SendMessageW]
mov rsi, qword [rbp + 0x2970]
xor r15d, r15d
jmp 0x1400cdf8a
mov rax, qword [rbp + 0x2980]
jmp 0x1400cdf6e
mov eax, dword [rbp + 0xc]
test eax, eax
je 0x1400cdf1d
mov edx, eax
mov eax, dword [rbp + 0x10]
lea rcx, [rbp + 0x240]
shl rdx, 0x20
add rdx, rax
shr rdx, 0xa
call fcn.14014816c
jmp 0x1400cdf4e
mov r8d, dword [rbp + 0x10]
lea eax, [r8 - 1]
cmp eax, 0x3ffffffe
ja 0x1400cdf37
add r8d, 0x3ff
mov dword [rbp + 0x10], r8d
lea rdx, [0x1401743c8]
lea rcx, [rbp + 0x240]
shr r8d, 0xa
call fcn.1401490f0
lea rdx, [0x1401743d0]
lea rcx, [rbp + 0x240]
call sub.msvcrt.dll_wcscat
lea rax, [rbp + 0x240]
jmp 0x1400cdf6e
lea rax, [rbp + 0x1c]
mov rcx, qword [r14]
lea r9, [rbp - 0x80]
movsxd r8, r12d
mov edx, 0x1074
mov dword [rbp - 0x78], ebx
mov qword [rbp - 0x68], rax
call qword [sym.imp.USER32.DLL_SendMessageW]
inc ebx
inc r13
cmp ebx, dword [rsi + 0x2230]
jl 0x1400cde21
mov rdi, qword [rbp + 0x2988]
lea r12, [rsi + 0x10]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400cddb1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r13, qword [rbp + 0x2978]
mov rcx, r13
call sub.msvcrt.dll_wcslen
lea r13, [r13 + rax*2]
add r13, 2
cmp word [r13], r15w
mov qword [rbp + 0x2978], r13
jne 0x1400cdd2d
lea rcx, [0x1408c40c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r13d, r13d
cmp dword [rsi + 0x22fc], r13d
je 0x1400ce00f
mov rcx, rsi
call fcn.1400ce12c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
add rsp, 0x2a28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret