Function at 0x18003db28
Capabilities:
Get disk information
Get disk size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x818
mov qword [rsp + 0x100], 0xfffffffffffffffe
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x800], rax
mov rdi, r9
mov r12, r8
mov esi, edx
mov dword [rsp + 0x44], edx
mov rbp, rcx
mov qword [rsp + 0x48], rcx
mov r13, qword [rsp + 0x880]
xor r14d, r14d
mov ebx, r14d
mov dword [rsp + 0x40], ebx
mov rdx, r8
call fcn.18003cbfc
cmp eax, r14d
je 0x18003db96
lea eax, [r14 - 2]
jmp 0x18003e3cc
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
bt eax, esi
jae 0x18003dbab
mov eax, 0xfffffffd
jmp 0x18003e3cc
xor edx, edx
mov r8d, 0x2e0
lea rcx, [rsp + 0x130]
call fcn.180045560
mov r15d, 1
mov dword [rsp + 0x3a4], r15d
mov dword [rsp + 0x3b8], r14d
mov eax, dword [r13 + 0x5c]
mov dword [rsp + 0x408], eax
mov eax, dword [r13 + 0x60]
mov dword [rsp + 0x40c], eax
mov dword [rsp + 0x394], esi
mov dword [rsp + 0x390], r14d
mov dword [rsp + 0x3b0], r14d
cmp rdi, r14
je 0x18003dc1e
lea rcx, [rsp + 0x348]
mov rdx, rdi
lea r8d, [r15 + 0x47]
call fcn.180044030
jmp 0x18003dc26
mov dword [rsp + 0x348], r14d
mov edi, dword [r13]
cmp edi, r14d
jne 0x18003dc56
cmp dword [r13 + 8], r14d
je 0x18003dc56
lea rcx, [rsp + 0x3c0]
lea rdx, [r13 + 0x14]
mov r8d, 0x48
call fcn.180044030
mov dword [rsp + 0x3bc], r15d
jmp 0x18003dc5e
mov dword [rsp + 0x3bc], r14d
mov dword [rsp + 0x39c], edi
mov eax, dword [r13 + 4]
mov dword [rsp + 0x3a0], eax
mov eax, dword [r13 + 0xc]
mov dword [rsp + 0x3ac], eax
mov dword [rsp + 0x3a8], r15d
mov qword [rsp + 0x128], 0xf
mov qword [rsp + 0x120], r14
mov byte [rsp + 0x110], r14b
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
sub rcx, r15
mov r8, rcx
mov rdx, r12
lea rcx, [rsp + 0x108]
call fcn.1800026f8
nop
xor r8d, r8d
lea rdx, [0x18006b7f8]
lea rcx, [rsp + 0x108]
call fcn.18000b1b0
cmp rax, r14
jne 0x18003dd50
or rdi, 0xffffffffffffffff
mov r9, rdi
lea r8d, [rdi + 5]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x108]
call fcn.18000b28c
nop
mov r9, rdi
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.180002398
nop
cmp qword [rsp + 0x70], 0x10
jb 0x18003dd27
mov rcx, qword [rsp + 0x58]
call fcn.180043070
lea r8, [rsp + 0x110]
cmp qword [rsp + 0x128], 0x10
cmovae r8, qword [rsp + 0x110]
mov edx, 0x104
mov rcx, r12
call fcn.1800450c4
jmp 0x18003dd54
or rdi, 0xffffffffffffffff
xor r8d, r8d
lea rdx, str.Volume
lea rcx, [rsp + 0x108]
call fcn.18000b1b0
cmp rax, r14
jne 0x18003e11f
mov r9, qword [rsp + 0x120]
cmp r9, 2
jb 0x18003ddf0
lea rcx, [r9 - 2]
cmp rcx, rdi
cmova rcx, rdi
lea rdx, [rsp + 0x110]
mov rdi, qword [rsp + 0x110]
mov r8, qword [rsp + 0x128]
cmp r8, 0x10
cmovae rdx, rdi
add rdx, rcx
movzx ecx, word [0x18006b808]
cmp byte [rdx], 0x7d
jne 0x18003ddc1
cmp word [rdx], cx
je 0x18003dddb
lea rax, [rsp + 0x110]
cmp r8, 0x10
cmovae rax, rdi
cmp rdx, rax
je 0x18003ddf0
sub rdx, r15
jmp 0x18003ddb7
lea rax, [rsp + 0x110]
cmp r8, 0x10
cmovae rax, rdi
sub rdx, rax
jmp 0x18003ddf4
or rdx, 0xffffffffffffffff
lea rax, [r9 - 2]
cmp rdx, rax
jne 0x18003e11f
dec r9
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x108]
call fcn.18000b28c
cmp qword [rax + 0x20], 0x10
jb 0x18003de26
mov rcx, qword [rax + 8]
jmp 0x18003de2a
lea rcx, [rax + 8]
mov r8d, 0x104
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
cmp eax, r14d
setne dil
cmp qword [rsp + 0x70], 0x10
jb 0x18003de52
mov rcx, qword [rsp + 0x58]
call fcn.180043070
cmp dil, r14b
je 0x18003e0f8
mov byte [rsp + 0x28], r14b
mov byte [rsp + 0x20], r15b
mov r9b, r15b
mov r8b, r15b
mov rdx, rbp
lea rcx, [rsp + 0xa8]
call fcn.18003cea4
nop
mov rax, qword [rsp + 0xc0]
mov rbp, rax
mov r14, qword [rsp + 0xc8]
cmp rax, r14
jbe 0x18003dea9
call fcn.180043018
mov r14, qword [rsp + 0xc8]
mov rax, qword [rsp + 0xc0]
mov r15, qword [rsp + 0xa8]
mov rsi, r15
cmp rax, r14
jbe 0x18003dec6
call fcn.180043018
mov r15, qword [rsp + 0xa8]
xor edi, edi
cmp rsi, rdi
je 0x18003ded2
cmp rsi, r15
je 0x18003ded7
call fcn.180043018
cmp rbp, r14
je 0x18003e0d9
cmp rsi, rdi
jne 0x18003deef
call fcn.180043018
mov rdx, rdi
jmp 0x18003def2
mov rdx, qword [rsi]
cmp rbp, qword [rdx + 0x20]
jb 0x18003defd
call fcn.180043018
mov rdx, rbp
lea rcx, [rsp + 0x410]
call fcn.18003e3f0
nop
cmp byte [rsp + 0x412], dil
jne 0x18003e06d
lea rdx, [rsp + 0x468]
lea rcx, [rsp + 0xd8]
call fcn.18003d7f0
nop
or ebx, 1
mov dword [rsp + 0x40], ebx
cmp qword [rax + 0x20], 8
jb 0x18003df46
mov rdx, qword [rax + 8]
jmp 0x18003df4a
lea rdx, [rax + 8]
lea r8, [rsp + 0x5f0]
mov rcx, qword [rsp + 0x48]
call fcn.18003cd30
cmp eax, edi
je 0x18003dfd4
mov qword [rsp + 0x98], 0xf
mov qword [rsp + 0x90], rdi
mov byte [rsp + 0x80], dil
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x78]
call fcn.1800026f8
nop
or ebx, 2
mov dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.18003d7f0
nop
or ebx, 4
mov dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x5f0]
mov rcx, rax
call fcn.180024480
xor edi, edi
cmp al, dil
je 0x18003dfd4
mov dil, 1
test bl, 4
je 0x18003e005
and ebx, 0xfffffffb
cmp qword [rsp + 0x70], 8
jb 0x18003dfee
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov qword [rsp + 0x70], 7
xor eax, eax
mov qword [rsp + 0x68], rax
mov word [rsp + 0x58], ax
jmp 0x18003e007
xor eax, eax
test bl, 2
je 0x18003e044
and ebx, 0xfffffffd
cmp qword [rsp + 0x98], 0x10
jb 0x18003e029
mov rcx, qword [rsp + 0x80]
call fcn.180043070
xor eax, eax
mov qword [rsp + 0x98], 0xf
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x80], al
test bl, 1
je 0x18003e066
and ebx, 0xfffffffe
cmp qword [rsp + 0xf8], 8
jb 0x18003e066
mov rcx, qword [rsp + 0xe0]
call fcn.180043070
xor eax, eax
cmp dil, al
jne 0x18003e0a3
xor edi, edi
lea rcx, [rsp + 0x410]
call fcn.18003c6e0
cmp rsi, rdi
jne 0x18003e089
call fcn.180043018
mov rdx, rdi
jmp 0x18003e08c
mov rdx, qword [rsi]
cmp rbp, qword [rdx + 0x20]
jb 0x18003e097
call fcn.180043018
add rbp, 0xc8
jmp 0x18003dec8
lea r8, [rsp + 0x470]
cmp qword [rsp + 0x488], 0x10
cmovae r8, qword [rsp + 0x470]
mov edx, 0x104
mov rcx, r12
call fcn.1800450c4
nop
lea rcx, [rsp + 0x410]
call fcn.18003c6e0
nop
lea rcx, [rsp + 0xa8]
call fcn.18003ef9c
mov esi, dword [rsp + 0x44]
mov rbp, qword [rsp + 0x48]
xor r14d, r14d
lea r15d, [r14 + 1]
jmp 0x18003e11f
lea r8, [rsp + 0x110]
cmp qword [rsp + 0x128], 0x10
cmovae r8, qword [rsp + 0x110]
mov edx, 0x104
mov rcx, r12
call fcn.1800450c4
lea r8, [rsp + 0x44]
mov rdx, r12
lea rcx, [rsp + 0x140]
call fcn.18003d8d0
cmp dword [rsp + 0x44], r14d
jne 0x18003e2a1
xor r8d, r8d
lea rdx, [0x18006ad50]
lea rcx, [rsp + 0x108]
call fcn.18000b1b0
cmp rax, r14
jne 0x18003e1f0
or r9, 0xffffffffffffffff
mov r8, r15
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x108]
call fcn.18000b28c
nop
mov r8, rax
lea rdx, [0x18006b80c]
lea rcx, [rsp + 0x50]
call fcn.1800373cc
cmp qword [rax + 0x20], 0x10
jb 0x18003e19d
mov r8, qword [rax + 8]
jmp 0x18003e1a1
lea r8, [rax + 8]
mov edx, 0x104
lea rcx, [rsp + 0x140]
call fcn.1800450c4
cmp qword [rsp + 0x70], 0x10
jb 0x18003e1c5
mov rcx, qword [rsp + 0x58]
call fcn.180043070
mov qword [rsp + 0x70], 0xf
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x58], r14b
cmp qword [rsp + 0xf8], 0x10
jb 0x18003e1f0
mov rcx, qword [rsp + 0xe0]
call fcn.180043070
mov r8d, 0x103
lea rdx, [rsp + 0x4e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
cmp eax, r14d
je 0x18003e2a1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [rsp + 0x398]
cmp eax, r14d
cmovne ecx, dword [rsp + 0x44]
mov dword [rsp + 0x398], ecx
cmp dword [rsp + 0x39c], r14d
jne 0x18003e2a1
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, r14d
je 0x18003e2a1
mov eax, dword [rsp + 0x48]
shr eax, 0x13
and eax, r15d
mov dword [rsp + 0x39c], eax
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, r14d
jne 0x18003e2cb
lea rdx, [0x1800674e0]
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x18003e2da
mov edx, eax
lea rcx, [rsp + 0x140]
call fcn.18003cb8c
cmp dword [r13 + 0x10], r14d
je 0x18003e32b
lea r8, [rsp + 0x3b4]
lea rdx, [0x18006b810]
lea rcx, [rsp + 0x140]
call fcn.1800451e4
cmp eax, r15d
jne 0x18003e30b
mov dword [rsp + 0x3b0], r15d
jmp 0x18003e32b
cmp qword [rsp + 0x128], 0x10
jb 0x18003e323
mov rcx, qword [rsp + 0x110]
call fcn.180043070
or eax, 0xffffffff
jmp 0x18003e3cc
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2e0
lea rax, [rsp + 0x130]
mov qword [rsp + 0x20], rax
mov r9d, 0x2e0
lea r8, [rsp + 0x130]
mov edx, 0x22200c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, r14d
je 0x18003e3b1
mov edi, dword [rsp + 0x130]
cmp edi, r14d
jne 0x18003e395
xor r8d, r8d
mov edx, esi
mov ecx, 0x8000
call fcn.18003d988
mov edi, dword [rsp + 0x130]
cmp qword [rsp + 0x128], 0x10
jb 0x18003e3ad
mov rcx, qword [rsp + 0x110]
call fcn.180043070
mov eax, edi
jmp 0x18003e3cc
cmp qword [rsp + 0x128], 0x10
jb 0x18003e3c9
mov rcx, qword [rsp + 0x110]
call fcn.180043070
or eax, 0xffffffff
mov rcx, qword [rsp + 0x800]
xor rcx, rsp
call fcn.180042bb0
add rsp, 0x818
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret