Function at 0x18002ad50
Capabilities:
Get disk information
Get file size
Read file via mapping

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov eax, dword [str.SR1.03]
mov r13, qword [rsp + 0x100]
xor r14d, r14d
mov rbp, rcx
lea rcx, [rsp + 0x80]
mov r15d, r8d
mov dword [rcx], eax
movzx eax, word [0x180042ff0]
mov qword [rsp + 0x60], r9
mov word [rcx + 4], ax
movzx eax, byte [0x180042ff2]
mov dword [rsp + 0x40], r15d
mov r12, rdx
mov qword [rsp + 0x50], r13
mov esi, r14d
mov byte [rcx + 6], al
test r9, r9
je 0x18002adc8
mov dword [r9], r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
lea rcx, [rbp + 0x11943]
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18002ae03
xor eax, eax
jmp 0x18002b251
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x98], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rbx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x18002ae71
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 4]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov rbx, rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
jne 0x18002ae78
xor eax, eax
jmp 0x18002b249
lea rdx, [rsp + 0x80]
mov r8d, 6
mov rcx, rbx
mov byte [r12], sil
call fcn.18002df10
test eax, eax
jne 0x18002b1eb
movzx edi, word [rbx + 0xa]
movzx esi, word [rbx + 0xc]
lea r14, [rbx + 6]
lea r8, str.Options_in_effect:_n
mov rdx, r15
mov rcx, r12
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x58], 0xe
call fcn.18002e064
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test byte [r14], 8
mov edx, r15d
mov r11d, eax
lea rax, [0x1800430e4]
lea rbx, [0x1800430e8]
mov r9, rbx
lea rcx, [r12 + r11]
lea r8, str.__Deep_scan:__s_n
cmovne r9, rax
sub edx, r11d
call fcn.18002e064
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test byte [r14], 1
mov edx, r15d
mov r11d, eax
lea rax, [0x1800430e4]
mov r9, rbx
cmovne r9, rax
lea rcx, [r12 + r11]
lea r8, str.__Test_extension:__s_n
sub edx, r11d
call fcn.18002e064
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test byte [r14], 4
mov edx, r15d
mov r11d, eax
lea rax, [0x1800430e4]
mov r9, rbx
cmovne r9, rax
lea rcx, [r12 + r11]
lea r8, str.__Test_all_files:__s_n
sub edx, r11d
call fcn.18002e064
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test byte [r14], 2
mov edx, r15d
mov r11d, eax
lea rax, [0x1800430e4]
lea r8, str.__Rename_extension:__s_n
cmovne rbx, rax
lea rcx, [r12 + r11]
sub edx, r11d
mov r9, rbx
call fcn.18002e064
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, r15d
lea r8, [0x1800415e0]
mov ecx, eax
sub edx, eax
add rcx, r12
call fcn.18002e064
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, r15d
lea r8, str._d____d_drives_scanned
mov ecx, eax
mov r9d, esi
sub edx, eax
add rcx, r12
mov dword [rsp + 0x20], edi
call fcn.18002e064
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rbx, qword [rsp + 0x60]
test rbx, rbx
mov r14d, eax
je 0x18002affd
mov dword [rbx], 1
xor r15d, r15d
test edi, edi
je 0x18002b1cb
mov rax, qword [rsp + 0x48]
mov ebx, dword [rsp + 0x40]
mov rcx, rdi
mov qword [rsp + 0x68], rcx
add rax, 0xe
mov rsi, r13
imul ecx, ecx, 0x111
add ecx, 0xe
mov qword [rsp + 0x58], rcx
nop
mov rdi, rax
add rax, 0x111
movzx edx, byte [rdi + 0x11]
mov qword [rsp + 0x78], rax
mov ecx, edx
shr ecx, 7
test ecx, ecx
je 0x18002b0fc
cmp ecx, 1
jne 0x18002b1ae
test r13, r13
je 0x18002b0b3
mov r8d, dword [rbp + 0x303]
xor dl, dl
test r8d, r8d
jle 0x18002b0b3
movzx r9d, byte [rdi + 0x10]
movzx ecx, dl
imul rcx, rcx, 0x196
cmp r9b, byte [rcx + rbp + 0x333]
jne 0x18002b09f
mov rax, qword [rcx + rbp + 0x323]
cmp qword [rdi], rax
jne 0x18002b09f
mov rax, qword [rcx + rbp + 0x32b]
cmp qword [rdi + 8], rax
je 0x18002b0ab
inc dl
movzx eax, dl
cmp eax, r8d
jl 0x18002b070
jmp 0x18002b0b3
mov byte [rsi], dl
inc r15d
inc rsi
mov rax, qword [rdi + 8]
mov edx, ebx
mov ecx, r14d
lea r9, [rdi + 0x12]
lea r8, str._n___s_
sub edx, r14d
add rcx, r12
mov qword [rsp + 0x20], rax
call fcn.18002e064
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rdi + 8]
mov edx, eax
add rdx, r12
call fcn.180016d80
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x18002b1ae
test r13, r13
je 0x18002b10d
and dl, 0x7f
inc r15d
inc rsi
mov byte [rsi - 1], dl
movzx ebx, byte [rdi + 0x11]
and ebx, 0x7f
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, dword [rsp + 0x40]
mov r13d, eax
lea ecx, [rbx - 0x41]
mov eax, 1
shl eax, cl
lea r8, str.___not_found_
mov ecx, r14d
and r13d, eax
lea rax, [0x18003e918]
mov r9d, ebx
cmovne r8, rax
sub edx, r14d
add rcx, r12
mov qword [rsp + 0x20], r8
lea r8, str._n___c:_s_
call fcn.18002e064
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rdi + 8]
mov edx, eax
add rdx, r12
call fcn.180016d80
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x18002b1a5
test r13d, r13d
jne 0x18002b19a
mov dword [rbx], r13d
mov r13, qword [rsp + 0x50]
mov ebx, dword [rsp + 0x40]
jmp 0x18002b1ae
mov r13, qword [rsp + 0x50]
mov ebx, dword [rsp + 0x40]
jmp 0x18002b1ae
mov r13, qword [rsp + 0x50]
mov ebx, dword [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
sub qword [rsp + 0x68], 1
mov r14d, eax
mov rax, qword [rsp + 0x78]
jne 0x18002b030
test r13, r13
je 0x18002b1f7
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
mov byte [r15 + r13], 0xff
mov r15d, dword [rsp + 0x40]
jmp 0x18002b20b
mov rcx, qword [rsp + 0x78]
mov r14d, dword [rsp + 0x40]
jmp 0x18002b20b
mov r15d, dword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
mov eax, esi
mov r9, qword [rax + rbx]
mov eax, dword [rcx]
and eax, 8
test al, al
je 0x18002b232
sub r15d, r14d
mov ecx, r14d
lea r8, str._n__Sectors_examined:__I64u
mov edx, r15d
add rcx, r12
call fcn.18002e064
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 1
mov rdi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.18002d590
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret