Function at 0x140037028
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.14008c970
sub rsp, rax
mov rsi, qword [rcx + 0x20]
xor r12d, r12d
mov rbx, rdx
mov qword [rbp + 0x4b88], rsi
mov r14, rcx
mov word [rbp + 0x4b90], r12w
lea edx, [r12 + 2]
call fcn.1400361c4
cmp rax, 2
jne 0x140037091
mov rcx, qword [r14]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x101d
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rbp + 0x4b90], rax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x48]
call fcn.14001eb70
test rbx, rbx
lea rdi, [0x1400afc20]
mov r15d, 0x5c
cmovne rdi, rbx
cmp word [rdi], r15w
jne 0x1400370dd
lea rbx, [rdi + 2]
movzx edx, r15w
mov rcx, rbx
call fcn.14001fd18
test rax, rax
cmove rdi, rbx
test rdi, rdi
je 0x1400371c3
cmp word [rdi], r12w
je 0x1400371c3
mov edx, r15d
mov rcx, rdi
call fcn.14001fd18
test rax, rax
jne 0x140037118
lea rcx, [rsi + 0x218]
mov rdx, rdi
call fcn.140091cdc
lea rbx, [rsi + 0x10]
jmp 0x1400371cb
lea rbx, [rsi + 0x10]
mov rcx, rdi
mov qword [rbp + 0x4b80], rbx
call fcn.140016160
mov rcx, rbx
cmp word [rdi + rax*2 - 2], r15w
jne 0x140037152
mov rdx, rdi
call fcn.140091cdc
movzx eax, word [rbx]
sub ax, 0x20
cmp word [rbx], 0x61
cmovb ax, word [rbx]
mov word [rbx], ax
jmp 0x1400371cb
xor edx, edx
mov r8d, 0x208
call fcn.14001eb70
mov rcx, rdi
call fcn.140016160
test eax, eax
js 0x1400371d2
mov edx, r15d
mov r15d, eax
cmp word [rdi + r15*2], dx
je 0x140037182
sub eax, 1
jns 0x14003716e
mov r15d, edx
jmp 0x1400371cb
inc eax
mov rdx, rdi
movsxd r8, eax
mov rcx, rbx
add r8, r8
call fcn.14001f620
lea rdx, [r15 + 1]
lea rdx, [rdi + rdx*2]
lea rcx, [rsi + 0x218]
call fcn.140091cdc
movzx eax, word [rbx]
mov r15d, 0x5c
sub ax, 0x20
cmp word [rbx], 0x61
cmovb ax, word [rbx]
mov word [rbx], ax
jmp 0x1400371cb
lea rbx, [rsi + 0x10]
mov word [rbx], r12w
mov qword [rbp + 0x4b80], rbx
mov rcx, qword [r14]
cmp word [rbx], r12w
jne 0x1400371e2
call fcn.140044c18
jmp 0x1400371ea
mov rdx, rbx
call fcn.140045108
mov rcx, qword [r14]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1009
call qword [sym.imp.USER32.dll_SendMessageW]
cmp word [rbx], r12w
jne 0x140037419
test byte [rsi + 0xc], 4
jne 0x140037a48
lea rax, [0x1400afc20]
mov qword [rsp + 0x34], 0x10000
mov r13d, 7
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x30], r13d
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea rdx, [0x1400b5458]
mov dword [rbp + 0x4b80], eax
lea rcx, [rbp + 0x710]
mov edi, eax
call fcn.140091cdc
mov ebx, r12d
mov r13, r12
mov r15d, 0x200
bt edi, ebx
jae 0x14003736b
lea eax, [rbx + 0x41]
mov word [rbp + 0x240], r12w
lea rdx, str.Drive
mov word [rbp + 0x710], ax
lea rcx, [rbp + 0x668]
mov qword [rsp + 0x58], r13
call fcn.140091cdc
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4001
lea r8, [rbp + 0x450]
xor edx, edx
lea rcx, [rbp + 0x710]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rbp + 0x458]
lea r8, [rbp + 0x450]
mov r9d, 0x2b8
mov dword [rsp + 0x54], eax
xor edx, edx
mov dword [rsp + 0x20], r15d
lea rcx, [rbp + 0x710]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea rdx, [rbp + 0x460]
lea rcx, [rbp + 0x240]
call fcn.140091cdc
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 + 0x4b88], rax
jle 0x140037368
lea rdi, [rsi + 0x2234]
mov r15, rax
cmp byte [rdi], 2
jne 0x14003734d
mov rcx, qword [r14]
lea rax, [rbp + 0x240]
movsxd r8, r15d
lea r9, [rbp - 0x80]
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 0x140037324
mov edi, dword [rbp + 0x4b80]
mov r15d, 0x200
xor r12d, r12d
inc ebx
inc r13
cmp ebx, 0x1f
jle 0x14003725f
cmp dword [0x14039182c], r12d
je 0x140037a48
test dword [rsi + 0xc], r15d
jne 0x140037a48
mov rcx, qword [r14]
lea rax, [0x1400afc20]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x30]
mov eax, dword [0x14039586c]
xor r8d, r8d
mov edx, 0x104d
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x58], 0xfd
call qword [sym.imp.USER32.dll_SendMessageW]
mov ebx, r12d
mov r15, rax
cmp dword [rsi + 0x2230], r12d
jle 0x140037a48
lea rdi, [rsi + 0x2234]
cmp byte [rdi], 2
jne 0x140037407
mov rcx, qword [r14]
lea rax, [0x140394620]
movsxd r8, r15d
lea r9, [rbp - 0x80]
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 0x1400373df
jmp 0x140037a48
test byte [rsi + 0xc], 2
lea rdi, [0x1400b55a0]
mov r13d, 7
jne 0x14003754f
lea rax, [0x1400afc20]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x48], rax
movzx edx, r15w
mov eax, dword [0x140395868]
mov rcx, rbx
mov dword [rsp + 0x54], eax
call fcn.14001fd18
movzx edx, r15w
lea rcx, [rax + 2]
call fcn.14001fd18
neg rax
sbb rcx, rcx
neg rcx
add rcx, 0xfa
cmp dword [0x14039182c], r12d
mov qword [rsp + 0x58], rcx
je 0x1400374de
mov r15d, 0x200
test dword [rsi + 0xc], r15d
jne 0x1400374de
lea rdi, [0x140394828]
mov rcx, rdi
call fcn.140016160
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.140016464
test eax, eax
jne 0x1400374de
mov rcx, rdi
call fcn.140016160
add rax, 8
lea edx, [r13 + 0x55]
lea rcx, [rsi + rax*2]
call fcn.14001fd18
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]
xor edi, edi
mov r12, rax
cmp dword [rsi + 0x2230], edi
jle 0x140037545
lea r15, [rsi + 0x2234]
lea rbx, [0x1400b55a0]
cmp byte [r15], 2
jne 0x140037531
mov rcx, qword [r14]
lea r9, [rbp - 0x80]
movsxd r8, r12d
mov edx, 0x1074
mov dword [rbp - 0x78], edi
mov qword [rbp - 0x68], rbx
call qword [sym.imp.USER32.dll_SendMessageW]
inc edi
inc r15
cmp edi, dword [rsi + 0x2230]
jl 0x14003750f
mov rbx, qword [rbp + 0x4b80]
lea rdi, [0x1400b55a0]
xor r12d, r12d
test byte [rsi + 0xc], 4
jne 0x140037760
mov rdx, rbx
lea rcx, [rbp + 0x240]
call fcn.140091cdc
lea rdx, [0x1400b55a8]
lea rcx, [rbp + 0x240]
call fcn.140091cb0
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbp + 0x4b98], rax
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140037760
lea rax, [0x1400afc20]
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x34], 0xffff
mov dword [rsp + 0x54], r13d
mov qword [rsp + 0x58], 0xfc
test byte [rbp - 0x10], 0x10
je 0x14003772e
lea rdx, [0x1400ac2d4]
lea rcx, [rbp + 0x1c]
call fcn.14001b940
test eax, eax
je 0x14003772e
mov rdx, rdi
lea rcx, [rbp + 0x1c]
call fcn.14001b940
test eax, eax
je 0x14003772e
mov eax, dword [0x140395868]
lea r9, [rsp + 0x30]
mov rcx, qword [r14]
xor r8d, r8d
mov edx, 0x104d
mov dword [rsp + 0x54], eax
call qword [sym.imp.USER32.dll_SendMessageW]
mov edi, r12d
mov r13, rax
cmp dword [rsi + 0x2230], r12d
jle 0x14003772e
lea rbx, [rsi + 0x2234]
movzx edx, byte [rbx]
sub edx, 2
je 0x1400376f3
sub edx, 3
je 0x14003767e
sub edx, 1
je 0x140037678
sub edx, 1
je 0x140037672
cmp edx, 1
jne 0x140037713
lea r9, [rbp - 4]
mov rcx, qword [r14]
mov r8d, edi
mov edx, r13d
call fcn.140037aa4
jmp 0x140037713
lea r9, [rbp + 4]
jmp 0x14003765f
lea r9, [rbp - 0xc]
jmp 0x14003765f
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0xb]
call fcn.14001eb70
lea r12, str.RHSDANTCOE
lea r15, [0x140391800]
lea rsi, [0x140391824]
mov eax, dword [r15]
test dword [rbp - 0x10], eax
je 0x1400376bd
lea rcx, [rbp - 0x30]
call fcn.140016160
movzx ecx, word [r12]
mov word [rbp + rax*2 - 0x30], cx
add r15, 4
add r12, 2
cmp r15, rsi
jle 0x1400376a2
mov rcx, qword [r14]
lea rax, [rbp - 0x30]
movsxd r8, r13d
lea r9, [rbp - 0x80]
mov edx, 0x1074
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x78], edi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rsi, qword [rbp + 0x4b88]
jmp 0x140037713
mov rcx, qword [r14]
lea rax, [rbp + 0x1c]
movsxd r8, r13d
lea r9, [rbp - 0x80]
mov edx, 0x1074
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x78], edi
call qword [sym.imp.USER32.dll_SendMessageW]
inc edi
inc rbx
cmp edi, dword [rsi + 0x2230]
jl 0x140037637
mov r15, qword [rbp + 0x4b98]
xor r12d, r12d
lea rdx, [rbp - 0x10]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rdi, [0x1400b55a0]
test eax, eax
jne 0x1400375c7
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rbp + 0x4b80]
mov r13d, 7
test byte [rsi + 0xc], 1
jne 0x140037a3b
lea rcx, [rsi + 0x218]
lea rdx, [rbp + 0x2920]
call fcn.140045290
lea rcx, [0x140398a20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, rbx
lea rcx, [rbp + 0x240]
call fcn.140091cdc
lea rdx, [0x1400b55a8]
lea rcx, [rbp + 0x240]
call fcn.140091cb0
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbp + 0x4b98], rax
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140037a3b
lea rax, [0x1400afc20]
mov dword [rsp + 0x30], r13d
xor edx, edx
mov qword [rsp + 0x48], rax
mov r8d, 0x2b8
mov dword [rsp + 0x34], 0xffff
lea rcx, [rbp + 0x450]
mov dword [rsp + 0x54], 0xa
mov qword [rsp + 0x58], 0xff
call fcn.14001eb70
test byte [rbp - 0x10], 0x10
jne 0x140037a1d
lea rdx, [rbp + 0x2920]
lea rcx, [rbp + 0x1c]
call fcn.1400451d0
test eax, eax
je 0x140037a1d
mov rdx, rbx
lea rcx, [rbp + 0x240]
call fcn.140091cdc
lea rdx, [rbp + 0x1c]
lea rcx, [rbp + 0x240]
call fcn.140091cb0
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x240]
call fcn.140044cb0
mov rcx, qword [r14]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x54], eax
mov edx, 0x104d
call qword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
mov r12, rax
cmp dword [rsi + 0x2230], edi
jle 0x140037a1a
lea rbx, [rsi + 0x2234]
movzx edx, byte [rbx]
sub edx, 2
je 0x1400379db
sub edx, 1
je 0x140037969
sub edx, 1
je 0x140037963
sub edx, 1
je 0x1400378eb
sub edx, 1
je 0x1400378e5
sub edx, 1
je 0x1400378df
cmp edx, 1
jne 0x1400379fb
lea r9, [rbp - 4]
mov rcx, qword [r14]
mov r8d, edi
mov edx, r12d
call fcn.140037aa4
jmp 0x1400379fb
lea r9, [rbp + 4]
jmp 0x1400378cc
lea r9, [rbp - 0xc]
jmp 0x1400378cc
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0xb]
call fcn.14001eb70
lea r13, str.RHSDANTCOE
lea r15, [0x140391800]
lea rsi, [0x140391824]
mov eax, dword [r15]
test dword [rbp - 0x10], eax
je 0x14003792a
lea rcx, [rbp - 0x30]
call fcn.140016160
movzx ecx, word [r13]
mov word [rbp + rax*2 - 0x30], cx
add r15, 4
add r13, 2
cmp r15, rsi
jle 0x14003790f
mov rcx, qword [r14]
lea rax, [rbp - 0x30]
movsxd r8, r12d
lea r9, [rbp - 0x80]
mov edx, 0x1074
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x78], edi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rsi, qword [rbp + 0x4b88]
jmp 0x1400379fb
mov rax, qword [rbp - 0x18]
jmp 0x1400379df
mov eax, dword [rbp + 0xc]
test eax, eax
je 0x14003798e
mov edx, eax
lea rcx, [rbp + 0x240]
mov eax, dword [rbp + 0x10]
shl rdx, 0x20
add rdx, rax
shr rdx, 0xa
call fcn.14008b9a4
jmp 0x1400379bf
mov r8d, dword [rbp + 0x10]
lea eax, [r8 - 1]
cmp eax, 0x3ffffffe
ja 0x1400379a8
add r8d, 0x3ff
mov dword [rbp + 0x10], r8d
shr r8d, 0xa
lea rdx, [0x1400b55b0]
lea rcx, [rbp + 0x240]
call fcn.140038208
lea rdx, [0x1400b55b8]
lea rcx, [rbp + 0x240]
call fcn.140091cb0
lea rax, [rbp + 0x240]
jmp 0x1400379df
lea rax, [rbp + 0x1c]
mov rcx, qword [r14]
lea r9, [rbp - 0x80]
movsxd r8, r12d
mov edx, 0x1074
mov dword [rbp - 0x78], edi
mov qword [rbp - 0x68], rax
call qword [sym.imp.USER32.dll_SendMessageW]
inc edi
inc rbx
cmp edi, dword [rsi + 0x2230]
jl 0x140037892
mov rbx, qword [rbp + 0x4b80]
mov r15, qword [rbp + 0x4b98]
xor r12d, r12d
lea rdx, [rbp - 0x10]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14003780f
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [0x140398a20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rsi + 0x22fc], r12d
je 0x140037a59
mov rcx, rsi
call fcn.140037ba4
mov edx, 2
mov rcx, r14
call fcn.1400361c4
cmp rax, 2
jne 0x140037a85
movzx r9d, word [rbp + 0x4b90]
xor r8d, r8d
mov rcx, qword [r14]
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