Function at 0x18001a460
Capabilities:
Get disk information
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x648]
sub rsp, 0x748
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 0x630], rax
mov eax, dword [0x180086c50]
mov r14, rdx
mov dword [rbp - 0x18], eax
mov rsi, rcx
movzx eax, word [0x180086c54]
lea rcx, [rsp + 0x60]
mov word [rbp - 0x14], ax
xor r13d, r13d
lea rax, str.__UNC_
mov dword [rsp + 0x78], 0x120010
mov qword [rbp - 0x80], rax
xor edx, edx
lea rax, str.___
mov dword [rbp - 0x78], 0xa0008
mov qword [rbp - 0x70], rax
mov r15, r9
mov r12, r8
mov ebx, 0xa1
mov edi, r13d
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov r8b, 1
lea rcx, [rsp + 0x78]
mov rdx, rsi
call qword [sym.imp.ntdll.dll_RtlPrefixString]
nop dword [rax + rax]
test al, al
jne 0x180033422
mov r8b, 1
lea rcx, [rbp - 0x78]
mov rdx, rsi
call qword [sym.imp.ntdll.dll_RtlPrefixString]
nop dword [rax + rax]
test al, al
je 0x18001a5cf
mov rax, qword [rsi + 8]
lea esi, [rbx - 0x67]
cmp word [rax + 0xa], si
jne 0x18001a5cf
movzx ecx, word [rax + 8]
mov word [rbp - 0x18], cx
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x180033513
mov r8d, 0x105
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_QueryDosDeviceW]
nop dword [rax + rax]
test eax, eax
je 0x18001a5f5
lea rdx, str.DeviceLanmanRedirector_
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_wcsstr]
nop dword [rax + rax]
lea rcx, [rbp - 0x10]
cmp rcx, rax
je 0x180033520
lea rdx, str.DeviceHarddisk
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_wcsstr]
nop dword [rax + rax]
lea rcx, [rbp - 0x10]
cmp rcx, rax
jne 0x180033582
mov rdx, r15
mov rcx, r12
call sym.KERNEL32.dll_GetComputerNameW
test eax, eax
je 0x18001a5f5
mov ebx, r13d
mov eax, ebx
mov rcx, qword [rbp + 0x630]
xor rcx, rsp
call fcn.180024680
add rsp, 0x748
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x18001a5cf
movzx r8d, word [rsp + 0x78]
cmp word [rsi], r8w
jbe 0x18001a5cf
mov rax, qword [rsi + 8]
mov ecx, r8d
movzx edi, word [rsi]
shr rcx, 1
sub edi, r8d
lea rdx, [rax + rcx*2]
mov qword [rsp + 0x68], rdx
or rsi, 0xffffffffffffffff
cmp r14, rsi
je 0x1800336be
lea r14, [rdx - 2]
mov qword [rsp + 0x70], rsi
lea rdx, str.Dfs
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov dword [rsp + 0x50], r13d
lea rax, [rbp - 0x58]
mov qword [rsp + 0x48], r13
lea r9, [rbp - 0x68]
mov dword [rsp + 0x40], 0xa0
lea r8, [rbp - 0x48]
mov dword [rsp + 0x38], 3
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x30], 7
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
mov edx, 0x100000
mov qword [rsp + 0x20], r13
mov dword [rbp - 0x48], 0x30
mov qword [rbp - 0x40], r13
mov dword [rbp - 0x30], 0x40
mov qword [rbp - 0x38], rax
movdqu xmmword [rbp - 0x28], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
nop dword [rax + rax]
test eax, eax
js 0x18003362c
lea eax, [rsi + 0x5d]
cmp ax, word [r14]
je 0x180033645
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
nop
jmp 0x18001a5cf
sub cx, 0x20
mov word [rbp - 0x18], cx
jmp 0x18001a553
movzx eax, word [rbp + 0x24]
cmp word [rbp - 0x18], ax
jne 0x18001a599
cmp si, word [rbp + 0x26]
jne 0x18001a599
mov edx, 0x5c
lea rcx, [rbp + 0x28]
call qword [sym.imp.ntdll.dll_wcschr]
nop dword [rax + rax]
mov qword [rsp + 0x68], rax
mov rdx, rax
test rax, rax
je 0x18003344b
add rdx, 2
lea rax, [rbp - 0x10]
mov rcx, rdx
mov qword [rsp + 0x68], rdx
sub rcx, rax
mov edi, 0x105
sar rcx, 1
sub edi, ecx
add edi, edi
jmp 0x1800336be
lea rdx, str.DeviceCdRom
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_wcsstr]
nop dword [rax + rax]
lea rcx, [rbp - 0x10]
cmp rcx, rax
je 0x18001a5bd
lea rdx, str.DeviceFloppy
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_wcsstr]
nop dword [rax + rax]
lea rcx, [rbp - 0x10]
cmp rcx, rax
je 0x18001a5bd
lea rdx, str.DeviceWinDfs_
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_wcsstr]
nop dword [rax + rax]
lea rcx, [rbp - 0x10]
cmp rcx, rax
jne 0x18001a5cf
mov r9d, 0x218
mov dword [rsp + 0x20], 9
lea r8, [rbp + 0x410]
mov rcx, r14
lea rdx, [rbp - 0x68]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x18003362c
mov edi, dword [rbp + 0x410]
lea rdx, [rbp + 0x416]
jmp 0x180033446
mov ecx, eax
jmp 0x180033633
mov ecx, r14d
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
nop
jmp 0x18001a601
mov dword [rsp + 0x48], 0x20a
lea rcx, [rbp + 0x200]
mov qword [rsp + 0x40], rcx
lea eax, [rdi + 2]
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
mov dword [rsp + 0x38], eax
xor r8d, r8d
mov qword [rsp + 0x30], r14
lea rax, [rbp - 0x68]
mov dword [rsp + 0x28], 0x600c0
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtFsControlFile]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
mov r14d, eax
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test r14d, r14d
jns 0x18003372c
cmp r14d, 0xc0000034
jne 0x180033630
mov rdx, qword [rsp + 0x68]
mov r8d, 0x5c
mov rcx, rdx
test edi, edi
je 0x1800336ed
cmp word [rcx], r8w
je 0x1800336ed
mov eax, 0x2e
cmp ax, word [rcx]
je 0x18001a5cf
add rcx, 2
mov eax, ecx
sub eax, dword [rsp + 0x68]
cmp eax, edi
jb 0x1800336cb
sub cx, word [rsp + 0x68]
movzx esi, cx
mov word [rsp + 0x62], si
mov word [rsp + 0x60], si
cmp esi, edi
jae 0x18001a5cf
cmp esi, 0x1e
ja 0x18001a5cf
mov ecx, dword [r15]
lea rax, [rsi + 2]
add rcx, rcx
mov r8d, esi
cmp rax, rcx
jbe 0x18003378a
mov ebx, 0x6f
jmp 0x18001a5cf
movzx eax, word [rbp + 0x200]
cmp r13w, ax
je 0x1800336b9
lea rcx, [rbp + 0x200]
inc rsi
cmp word [rcx + rsi*2], r13w
jne 0x180033740
mov rdi, rsi
add edi, edi
cmp edi, 6
jb 0x18001a5cf
mov r8d, 0x5c
cmp r8w, ax
jne 0x18001a5cf
cmp r8w, word [rbp + 0x202]
jne 0x18001a5cf
lea rdx, [rbp + 0x204]
add edi, 0xfffffffc
mov qword [rsp + 0x68], rdx
jmp 0x1800336c4
mov rcx, r12
call sub.ntdll.dll_memcpy
shr esi, 1
mov eax, esi
mov dword [r15], eax
mov word [r12 + rsi*2], r13w
jmp 0x18001a5cc