Function at 0x1800c4050
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov qword [rsp + 0xf8], 0xfffffffffffffffe
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x108], rax
cmp qword [rsp + 0x128], 0
je 0x1800c409d
mov rcx, qword [rsp + 0x128]
call fcn.1800fbc94
test rax, rax
jne 0x1800c40a4
xor eax, eax
jmp 0x1800c4339
lea rcx, [rsp + 0x74]
call fcn.180028f50
nop
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x48]
call fcn.1800c5670
nop
cmp dword [rsp + 0x40], 0
je 0x1800c4262
mov dword [rsp + 0x78], 0
cmp dword [rsp + 0x40], 0
je 0x1800c4262
mov eax, dword [rsp + 0x40]
and eax, 1
test eax, eax
je 0x1800c4249
xor eax, eax
mov word [rsp + 0x88], ax
lea rax, [rsp + 0x8a]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_ntohl
rep stosb byte [rdi], al
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x78]
add eax, 0x41
mov word [rsp + 0x88], ax
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xc8]
call fcn.1800ebc90
nop
lea rdx, [0x1801cbf84]
lea rcx, [rsp + 0xc8]
call fcn.1800e8570
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x98], eax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x9c]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
je 0x1800c4229
cmp dword [rsp + 0x9c], 0
je 0x1800c4229
mov eax, dword [rsp + 0x9c]
and rax, 0xffff
movzx eax, ax
mov ecx, dword [rsp + 0x9c]
shr rcx, 0x10
and rcx, 0xffff
movzx ecx, cx
mov r9d, eax
mov r8d, ecx
lea rdx, str._04X__04X
lea rcx, [rsp + 0xa0]
call fcn.180003a60
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x48]
call fcn.1800c56d0
nop
lea rcx, [rsp + 0xc8]
call fcn.1800e8250
mov eax, dword [rsp + 0x40]
shr eax, 1
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x78], eax
jmp 0x1800c40d7
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0x60]
call fcn.1800bb940
nop
lea rcx, [rsp + 0x48]
call fcn.1800c56b0
mov dword [rsp + 0x100], eax
lea rcx, [rsp + 0x48]
call fcn.1800c56c0
mov ecx, dword [rsp + 0x100]
mov r9d, ecx
mov r8, rax
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1800be790
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x60]
call fcn.1800bc070
test eax, eax
je 0x1800c4307
lea rcx, [rsp + 0x48]
call fcn.1800c56c0
mov qword [rsp + 0xd8], rax
lea rcx, [rsp + 0x48]
call fcn.1800c56b0
cdqe
imul rax, rax, 0x38
mov dword [rsp + 0xd0], eax
mov r9d, dword [rsp + 0xd0]
mov r8, qword [rsp + 0xd8]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x128]
call fcn.1800d1360
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0xe0], eax
lea rcx, [rsp + 0x60]
call fcn.1800bb9f0
nop
lea rcx, [rsp + 0x48]
call fcn.1800c5710
nop
lea rcx, [rsp + 0x74]
call fcn.180028fa0
mov eax, dword [rsp + 0xe0]
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x110
pop rdi
ret