Function at 0x140044c1c
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 - 0x4b38]
mov eax, 0x4c38
call fcn.14002b2a0
sub rsp, rax
mov rsi, qword [rcx + 0x20]
mov rbx, rdx
mov edx, 2
mov qword [rbp + 0x4b80], rsi
mov r14, rcx
call fcn.140043d00
cmp rax, 2
jne 0x140044c75
mov rcx, qword [r14]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x101d
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140044c7b
mov eax, dword [rbp + 0x4b80]
mov ecx, 1
mov qword [rbp + 0x4b88], rax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x48]
call sub.msvcrt.dll_memset
xor r12d, r12d
test rbx, rbx
lea rdi, [0x140160f54]
lea r15d, [r12 + 0x5c]
cmovne rdi, rbx
cmp word [rdi], r15w
jne 0x140044cd0
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 0x140044dc8
cmp word [rdi], r12w
je 0x140044dc8
mov edx, r15d
mov rcx, rdi
call sub.msvcrt.dll_wcschr
test rax, rax
jne 0x140044d07
lea rcx, [rsi + 0x218]
mov rdx, rdi
call sub.msvcrt.dll_wcscpy
jmp 0x140044db3
mov rcx, rdi
call sub.msvcrt.dll_wcslen
cmp word [rdi + rax*2 - 2], r15w
jne 0x140044d37
lea rbx, [rsi + 0x10]
mov rdx, rdi
mov rcx, rbx
call sub.msvcrt.dll_wcscpy
cmp word [rbx], 0x61
movzx eax, word [rbx]
jb 0x140044d32
sub eax, 0x20
mov word [rbx], ax
jmp 0x140044db3
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 0x140044dad
mov eax, 0x5c
movsxd rcx, ebx
cmp word [rdi + rcx*2], ax
je 0x140044d71
dec ebx
jns 0x140044d5f
mov r15d, eax
jmp 0x140044db3
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 0x140044da9
sub eax, 0x20
mov word [r15], ax
mov r15d, 0x5c
mov rcx, qword [r14]
lea r13, [rsi + 0x10]
cmp word [r13], r12w
jne 0x140044dcf
call fcn.140048a1c
jmp 0x140044dd7
mov word [rsi + 0x10], r12w
jmp 0x140044db3
mov rdx, r13
call fcn.140048f0c
mov rcx, qword [r14]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1009
call qword [sym.imp.USER32.dll_SendMessageW]
cmp word [r13], r12w
jne 0x14004500a
test byte [rsi + 0xc], 4
jne 0x14004562f
lea rax, [0x140160f54]
mov r12d, 7
mov qword [rsp + 0x34], 0x10000
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x48], rax
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea rdx, [0x1401614c0]
lea rcx, [rbp + 0x710]
mov edi, eax
mov dword [rbp + 0x4b80], eax
call sub.msvcrt.dll_wcscpy
mov ebx, r12d
mov r13d, r12d
mov r15d, 0x200
bt edi, ebx
jae 0x140044f5c
lea eax, [rbx + 0x41]
lea rdx, str.Drive
lea rcx, [rbp + 0x668]
mov word [rbp + 0x240], r12w
mov qword [rsp + 0x58], r13
mov word [rbp + 0x710], 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]
cmp dword [rsi + 0x2230], 0
mov qword [rbp + 0x4b90], rax
jle 0x140044f59
lea rdi, [rsi + 0x2234]
mov r15, rax
cmp byte [rdi], 2
jne 0x140044f3e
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 0x140044f15
mov edi, dword [rbp + 0x4b80]
mov r15d, 0x200
xor r12d, r12d
inc ebx
inc r13
cmp ebx, 0x1f
jle 0x140044e50
cmp dword [0x14041009c], r12d
je 0x14004562f
test dword [rsi + 0xc], r15d
jne 0x14004562f
mov rcx, qword [r14]
lea rax, [0x140160f54]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov eax, dword [0x140416c6c]
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, r12d
mov r15, rax
cmp dword [rsi + 0x2230], r12d
jle 0x14004562f
lea rdi, [rsi + 0x2234]
cmp byte [rdi], 2
jne 0x140044ff8
mov rcx, qword [r14]
lea rax, [0x140415a20]
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 0x140044fd0
jmp 0x14004562f
test byte [rsi + 0xc], 2
lea rbx, [0x1401614d4]
mov r12d, 7
jne 0x140045139
lea rax, [0x140160f54]
movzx edx, r15w
mov rcx, r13
mov qword [rsp + 0x48], rax
mov eax, dword [0x140416c68]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x54], eax
xor edi, edi
call sub.msvcrt.dll_wcschr
lea rcx, [rax + 2]
movzx edx, r15w
call sub.msvcrt.dll_wcschr
neg rax
sbb rcx, rcx
neg rcx
add rcx, 0xfa
cmp dword [0x14041009c], edi
mov qword [rsp + 0x58], rcx
je 0x1400450cf
mov r15d, 0x200
test dword [rsi + 0xc], r15d
jne 0x1400450cf
lea rbx, [0x140415c28]
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov rdx, rbx
mov rcx, r13
mov r8, rax
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x1400450cf
mov rcx, rbx
call sub.msvcrt.dll_wcslen
lea edx, [rdi + 0x5c]
add rax, 8
lea rcx, [rsi + rax*2]
call sub.msvcrt.dll_wcschr
mov rcx, qword [rsp + 0x58]
test rax, rax
mov eax, 0xfa
cmove rcx, rax
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, edi
mov r15, rax
cmp dword [rsi + 0x2230], edi
jle 0x140045132
lea rdi, [rsi + 0x2234]
lea r13, [0x1401614d4]
cmp byte [rdi], 2
jne 0x140045121
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 0x140045100
lea r13, [rsi + 0x10]
lea rbx, [0x1401614d4]
test byte [rsi + 0xc], 4
jne 0x14004533f
lea rcx, [rbp + 0x240]
mov rdx, r13
call sub.msvcrt.dll_wcscpy
lea rdx, [0x1401614e0]
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 + 0x4b90], rax
cmp rax, 0xffffffffffffffff
je 0x14004533f
lea rax, [0x140160f54]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x34], 0xffff
mov dword [rsp + 0x54], r12d
mov qword [rsp + 0x58], 0xfc
mov qword [rsp + 0x48], rax
test byte [rbp - 0x10], 0x10
je 0x140045310
lea rdx, [0x1401614e8]
lea rcx, [rbp + 0x1c]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140045310
lea rcx, [rbp + 0x1c]
mov rdx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140045310
mov eax, dword [0x140416c68]
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]
xor ebx, ebx
mov r13, rax
cmp dword [rsi + 0x2230], ebx
jle 0x140045310
lea r12, [rsi + 0x2234]
movzx edx, byte [r12]
sub edx, 2
je 0x1400452d8
sub edx, 3
je 0x140045265
dec edx
je 0x14004524e
dec edx
je 0x140045248
dec edx
jne 0x1400452f8
lea r9, [rbp - 4]
jmp 0x140045252
lea r9, [rbp + 4]
jmp 0x140045252
lea r9, [rbp - 0xc]
mov rcx, qword [r14]
mov r8d, ebx
mov edx, r13d
call fcn.140045688
jmp 0x1400452f8
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0xb]
call sub.msvcrt.dll_memset
lea r15, str.RHSDANTCOE
lea rdi, [0x140410070]
lea rsi, [0x140410094]
mov eax, dword [rdi]
test dword [rbp - 0x10], eax
je 0x1400452a2
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 0x140045289
mov rcx, qword [r14]
lea rax, [rbp - 0x30]
lea r9, [rbp - 0x80]
movsxd r8, r13d
mov edx, 0x1074
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x78], ebx
call qword [sym.imp.USER32.dll_SendMessageW]
mov rsi, qword [rbp + 0x4b80]
jmp 0x1400452f8
mov rcx, qword [r14]
lea rax, [rbp + 0x1c]
lea r9, [rbp - 0x80]
movsxd r8, r13d
mov edx, 0x1074
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x78], ebx
call qword [sym.imp.USER32.dll_SendMessageW]
inc ebx
inc r12
cmp ebx, dword [rsi + 0x2230]
jl 0x14004521f
mov rdi, qword [rbp + 0x4b90]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rbx, [0x1401614d4]
test eax, eax
jne 0x1400451b1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r12d, 7
lea r13, [rsi + 0x10]
test byte [rsi + 0xc], 1
jne 0x14004561f
lea rcx, [rsi + 0x218]
lea rdx, [rbp + 0x2920]
call fcn.1400490f0
lea rcx, [0x140418340]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rbp + 0x240]
mov rdx, r13
call sub.msvcrt.dll_wcscpy
lea rdx, [0x1401614e0]
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 + 0x4b90], rax
cmp rax, 0xffffffffffffffff
je 0x14004561f
lea rax, [0x140160f54]
lea rcx, [rbp + 0x450]
xor edx, edx
mov r8d, 0x2b8
mov dword [rsp + 0x30], r12d
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
xor r12d, r12d
test byte [rbp - 0x10], 0x10
jne 0x1400455ff
lea rdx, [rbp + 0x2920]
lea rcx, [rbp + 0x1c]
call fcn.140048fe0
test eax, eax
je 0x1400455ff
lea rcx, [rbp + 0x240]
mov rdx, r13
call sub.msvcrt.dll_wcscpy
lea rdx, [rbp + 0x1c]
lea rcx, [rbp + 0x240]
call sub.msvcrt.dll_wcscat
lea rdx, [rbp + 0x4b98]
lea rcx, [rbp + 0x240]
call fcn.140048ab4
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, r12d
mov r15, rax
cmp dword [rsi + 0x2230], r12d
jle 0x1400455ff
lea r13, [rsi + 0x2234]
movzx edx, byte [r13]
sub edx, 2
je 0x1400455c3
dec edx
je 0x140045551
dec edx
je 0x140045548
dec edx
je 0x1400454ce
dec edx
je 0x1400454b7
dec edx
je 0x1400454b1
dec edx
jne 0x1400455e3
lea r9, [rbp - 4]
jmp 0x1400454bb
lea r9, [rbp + 4]
jmp 0x1400454bb
lea r9, [rbp - 0xc]
mov rcx, qword [r14]
mov r8d, ebx
mov edx, r15d
call fcn.140045688
jmp 0x1400455e3
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0xb]
call sub.msvcrt.dll_memset
lea r12, str.RHSDANTCOE
lea rdi, [0x140410070]
lea rsi, [0x140410094]
mov eax, dword [rbp - 0x10]
test dword [rdi], eax
je 0x14004550c
lea rcx, [rbp - 0x30]
call sub.msvcrt.dll_wcslen
movzx ecx, word [r12]
mov word [rbp + rax*2 - 0x30], cx
add rdi, 4
add r12, 2
cmp rdi, rsi
jle 0x1400454f2
mov rcx, qword [r14]
lea rax, [rbp - 0x30]
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]
mov rsi, qword [rbp + 0x4b80]
xor r12d, r12d
jmp 0x1400455e3
mov rax, qword [rbp + 0x4b98]
jmp 0x1400455c7
mov eax, dword [rbp + 0xc]
test eax, eax
je 0x140045576
mov edx, eax
mov eax, dword [rbp + 0x10]
lea rcx, [rbp + 0x240]
shl rdx, 0x20
add rdx, rax
shr rdx, 0xa
call fcn.14013e6b4
jmp 0x1400455a7
mov r8d, dword [rbp + 0x10]
lea eax, [r8 - 1]
cmp eax, 0x3ffffffe
ja 0x140045590
add r8d, 0x3ff
mov dword [rbp + 0x10], r8d
lea rdx, [0x1401614ec]
lea rcx, [rbp + 0x240]
shr r8d, 0xa
call fcn.14013f5b0
lea rdx, [0x1401614f8]
lea rcx, [rbp + 0x240]
call sub.msvcrt.dll_wcscat
lea rax, [rbp + 0x240]
jmp 0x1400455c7
lea rax, [rbp + 0x1c]
mov rcx, qword [r14]
lea r9, [rbp - 0x80]
movsxd r8, r15d
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 0x140045479
mov rdi, qword [rbp + 0x4b90]
lea r13, [rsi + 0x10]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400453f1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140045622
xor r12d, r12d
lea rcx, [0x140418340]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rsi + 0x22fc], r12d
je 0x140045640
mov rcx, rsi
call fcn.140045788
mov edx, 2
mov rcx, r14
call fcn.140043d00
cmp rax, 2
jne 0x14004566c
movzx r9d, word [rbp + 0x4b88]
mov rcx, qword [r14]
xor r8d, r8d
mov edx, 0x101e
call qword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
add rsp, 0x4c38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret