Function at 0x18012ae20
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x530
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1803fc9f0]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdx
movzx r8d, byte [rdx + 0x29]
lea rcx, [r11 - 0x418]
call fcn.18013d2a0
nop
lea rcx, [rsp + 0x140]
call fcn.1800ab990
mov rcx, rax
call fcn.1800ab990
mov qword [rsp + 0x68], rax
xor edi, edi
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0xd0], socket
mov qword [rsp + 0xc8], rdi
mov byte [rsp + 0xb8], dil
or r14, 0xffffffffffffffff
mov r9, r14
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.1800adf50
nop
lea r9, [rsp + 0xb8]
mov r11, qword [rsp + 0xb8]
mov r10, qword [rsp + 0xd0]
cmp r10, 0x10
cmovae r9, r11
mov qword [rsp + 0x70], r9
lea rcx, [rsp + 0xb8]
cmovae rcx, r11
mov qword [rsp + 0x78], rcx
mov r8, qword [rsp + 0xc8]
add r8, rcx
lea rdx, [rsp + 0xb8]
cmp r10, 0x10
cmovae rdx, r11
mov qword [rsp + 0x80], rdx
lea rax, [fcn.1802d80c4]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x88]
call fcn.1800ae9e0
xor edx, edx
mov r8d, 0x218
lea rcx, [rsp + 0x1f0]
call fcn.1802c7550
lea rdx, [rsp + 0x410]
lea rcx, [rsp + 0x140]
call fcn.18013da60
nop
mov rcx, rax
call fcn.1800ab970
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x200]
call fcn.1802d7c04
nop
lea rcx, [rsp + 0x410]
call fcn.1800ad110
mov qword [rsp + 0x108], rdi
mov qword [rsp + 0x110], rdi
mov qword [rsp + 0x110], socket
mov qword [rsp + 0x108], rdi
mov byte [rsp + 0xf8], dil
cmp byte [rsp + 0x200], dil
jne 0x18012afde
mov r8d, edi
jmp 0x18012affa
lea rax, [rsp + 0x200]
mov r8, r14
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x18012aff0
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0xf8]
call fcn.1800ace90
nop
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0xf0], rdi
mov qword [rsp + socket0], 0xf
mov qword [rsp + 0xe8], rdi
mov byte [rsp + 0xd8], 0
xor r15b, r15b
mov byte [rsp + 0x32], r15b
mov rax, qword [rsi + 0x50]
test byte [rax + 0x11c], 1
je 0x18012b0e9
lea r8, [rsp + 0xd8]
lea rdx, [rsp + 0xf8]
mov rcx, rsi
call fcn.180128750
movzx r15d, al
mov byte [rsp + 0x32], al
test al, al
je 0x18012b0e9
lea rax, [rsp + 0x200]
mov r8, r14
inc r8
cmp byte [rax + r8], 0
jne 0x18012b084
mov qword [rsp + 0x90], r8
xor edx, edx
lea rcx, [rsp + 0x200]
call fcn.1802c7550
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 0x10
cmovae rdx, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xe8]
lea rcx, [rsp + 0x200]
call fcn.1802d7610
mov r12d, 1
mov edx, r12d
mov dword [rsp + 0x1f0], edx
jmp 0x18012b18b
mov qword [rsp + 0x128], rdi
mov qword [rsp + 0x130], rdi
mov qword [rsp + 0x130], socket
mov qword [rsp + 0x128], rdi
mov byte [rsp + 0x118], 0
cmp byte [rsp + 0x200], 0
jne 0x18012b124
mov r8, rdi
jmp 0x18012b13a
lea rax, [rsp + 0x200]
mov r8, r14
nop
inc r8
cmp byte [rax + r8], 0
jne 0x18012b130
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x118]
call fcn.1800ace90
nop
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x48]
call fcn.1802b6610
mov rcx, rax
call fcn.1800b2ad0
mov dword [rsp + 0x1f4], eax
lea rcx, [rsp + 0x118]
call fcn.1800ad110
mov r12d, 1
mov edx, dword [rsp + 0x1f0]
movsxd r8, dword [rbx + 0x3c]
cmp r8d, 0x1a
jne 0x18012b19b
lea edx, [r8 - 0x17]
jmp 0x18012b1a1
test r15b, r15b
cmove edx, edi
mov dword [rsp + 0x1f0], edx
mov al, 1
mov byte [rsp + 0x30], al
movzx ecx, byte [rbx + 0x28]
test cl, cl
jne 0x18012b1c7
test byte [rbx + 0x38], al
movzx eax, al
cmove eax, edi
mov byte [rsp + 0x30], al
test cl, cl
je 0x18012b1dc
test byte [rbx + 0x38], 2
je 0x18012b1d6
test dword [rbx + 0x34], 0x40000000
jne 0x18012b1dc
xor al, al
mov byte [rsp + 0x30], al
mov ecx, dword [rbx + 0x38]
test cl, 4
je 0x18012b1f3
movzx eax, al
cmp byte [rbx + 0x41], 0
cmovne eax, r12d
mov byte [rsp + 0x30], al
test cl, 8
je 0x18012b205
cmp byte [rbx + 0x43], 0
je 0x18012b205
mov byte [rsp + 0x30], 1
jmp 0x18012b245
test al, al
jne 0x18012b245
lea rcx, [rsp + 0xd8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xf8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xb8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0x140]
call fcn.18013d360
jmp 0x18012ba35
mov eax, dword [rbx + 0x30]
cmp dword [rbx + 0x2c], eax
je 0x18012b251
mov byte [rbx + 0x42], 1
mov dword [rsp + 0x1fc], eax
cmp eax, 0xffffffff
cmove eax, edi
mov dword [rsp + 0x1fc], eax
mov rax, qword [rsi + 0x50]
add rax, 0x120
lea r8, [rax + r8*8]
mov qword [rsp + 0x98], r8
mov rax, qword [rbx + 0x68]
mov qword [rsp + 0xa0], rax
test rax, rax
jne 0x18012b4b7
cmp dword [r8], eax
jne 0x18012b4b7
test r15b, r15b
jne 0x18012b311
test edx, edx
jne 0x18012b311
cmp qword [rbx + 0x20], rax
je 0x18012b311
lea rcx, [rsp + 0x140]
call fcn.18013e910
test al, al
je 0x18012b2c0
mov edx, 3
jmp 0x18012b30a
lea rcx, [rsp + 0x140]
call fcn.1800ab990
mov rcx, rax
call fcn.1800ab970
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 2
je 0x18012b305
sub eax, 1
je 0x18012b2fe
sub eax, 1
je 0x18012b2b9
cmp eax, 1
je 0x18012b2f9
mov edx, 5
jmp 0x18012b30a
mov edx, r12d
jmp 0x18012b30a
mov edx, 2
jmp 0x18012b30a
mov edx, 4
mov dword [rsp + 0x1f0], edx
sub edx, 1
je 0x18012b46e
sub edx, 1
je 0x18012b421
sub edx, 1
je 0x18012b3d4
sub edx, 1
je 0x18012b387
cmp edx, 1
jne 0x18012b4b7
mov rax, qword [rsi + 0x50]
test byte [rax + 0x11c], 0x10
jne 0x18012b4b7
lea rcx, [rsp + 0xd8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xf8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xb8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0x140]
call fcn.18013d360
jmp 0x18012ba35
mov rax, qword [rsi + 0x50]
test byte [rax + 0x11c], 8
jne 0x18012b4b7
lea rcx, [rsp + 0xd8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xf8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xb8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0x140]
call fcn.18013d360
jmp 0x18012ba35
mov rax, qword [rsi + 0x50]
test byte [rax + 0x11c], 4
jne 0x18012b4b7
lea rcx, [rsp + 0xd8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xf8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xb8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0x140]
call fcn.18013d360
jmp 0x18012ba35
mov rax, qword [rsi + 0x50]
test byte [rax + 0x11c], 2
jne 0x18012b4b7
lea rcx, [rsp + 0xd8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xf8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xb8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0x140]
call fcn.18013d360
jmp 0x18012ba35
mov rax, qword [rsi + 0x50]
test byte [rax + 0x11c], 1
jne 0x18012b4b7
lea rcx, [rsp + 0xd8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xf8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xb8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0x140]
call fcn.18013d360
jmp 0x18012ba35
mov rdx, qword [0x180400a08]
add rdx, 0x1a34
lea rcx, [rsp + 0x1d0]
call fcn.1800aaba0
nop
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0x140]
call fcn.18013d3f0
nop
xor r8d, r8d
lea rdx, [rsp + 0x1d0]
mov rcx, rax
call fcn.1800ab730
cmp eax, 0xffffffff
setne r13b
lea rcx, [rsp + 0x430]
call fcn.1800ad110
nop
lea rcx, [rsp + 0x1d0]
call fcn.1800ad110
test r13b, r13b
je 0x18012b55f
lea rcx, [rsp + 0xd8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xf8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xb8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0x140]
call fcn.18013d360
jmp 0x18012ba35
lea rdx, [rbx + 0x48]
movzx r8d, byte [rbx + 0x29]
lea rcx, [rsp + 0x490]
call fcn.18013d2a0
nop
mov rax, qword [rsi]
mov rdx, qword [rsi + 0x50]
lea r8, [rsp + 0x140]
mov rdx, qword [rdx + 0x210]
mov rcx, rsi
call qword [rax + 0x68]
test al, al
jne 0x18012b5c5
test byte [rbx + 0x38], 8
je 0x18012b5c1
cmp byte [rbx + 0x43], al
je 0x18012b5c1
mov rax, qword [rsi]
mov rdx, qword [rsi + 0x50]
lea r8, [rsp + 0x490]
mov rdx, qword [rdx + 0x210]
mov rcx, rsi
call qword [rax + 0x68]
test al, al
jne 0x18012b5c5
mov eax, edi
jmp 0x18012b5c8
mov eax, r12d
mov byte [rsp + 0x30], al
test al, al
jne 0x18012b64c
mov rax, qword [rsi]
mov rdx, qword [rsi + 0x50]
lea r8, [rsp + 0x140]
mov rdx, qword [rdx + 0x208]
mov rcx, rsi
call qword [rax + 0x68]
movzx edx, al
mov r9, qword [rsi + 0x50]
mov ecx, edi
cmp dword [r9 + 0x1f8], ecx
setne cl
mov eax, edi
cmp edx, ecx
sete al
mov byte [rsp + 0x30], al
test al, al
jne 0x18012b64c
test byte [rbx + 0x38], 8
je 0x18012b64c
cmp byte [rbx + 0x43], al
je 0x18012b64c
mov rax, qword [rsi]
lea r8, [rsp + 0x490]
mov rdx, qword [r9 + 0x208]
mov rcx, rsi
call qword [rax + 0x68]
movzx edx, al
mov rax, qword [rsi + 0x50]
mov ecx, edi
cmp dword [rax + 0x1f8], ecx
setne cl
cmp edx, ecx
sete al
mov byte [rsp + 0x30], al
jmp 0x18012b66d
test al, al
jne 0x18012b6bb
lea rcx, [rsp + 0x490]
call fcn.18013d360
nop
lea rcx, [rsp + 0xd8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xf8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xb8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0x140]
call fcn.18013d360
jmp 0x18012ba35
test r15b, r15b
jne 0x18012b758
cmp dword [rsp + 0x1f0], 0
jne 0x18012b758
cmp qword [rbx + 0x20], 0
je 0x18012b758
lea rcx, [rsp + 0x140]
call fcn.18013e910
test al, al
je 0x18012b6f7
mov dword [rsp + 0x1f0], 3
jmp 0x18012b758
lea rcx, [rsp + 0x140]
call fcn.1800ab990
mov rcx, rax
call fcn.1800ab970
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 2
je 0x18012b74d
sub eax, 1
je 0x18012b740
sub eax, 1
je 0x18012b6ea
sub eax, 1
je 0x18012b736
mov dword [rsp + 0x1f0], 5
jmp 0x18012b758
mov dword [rsp + 0x1f0], r12d
jmp 0x18012b758
mov dword [rsp + 0x1f0], 2
jmp 0x18012b758
mov dword [rsp + 0x1f0], 4
xor al, al
mov byte [rsp + 0x31], al
cmp byte [rbx + 0x28], al
je 0x18012b837
mov eax, dword [rbx + 0x38]
test al, 4
je 0x18012b7aa
cmp byte [rbx + 0x41], 0
je 0x18012b7aa
test r15b, r15b
je 0x18012b8bf
cmp dword [rbx + 0x30], 0
je 0x18012b8bf
mov dword [rsp + 0x1f8], r12d
mov rax, qword [rsi]
lea r8, [rsp + 0x1f0]
mov edx, send
mov rcx, rsi
call qword [rax + 0x48]
jmp 0x18012b91a
cmp byte [rbx + 0x43], 0
je 0x18012b815
mov dword [rsp + 0x1f8], 4
lea rdx, [rbx + 0x48]
mov rcx, rbx
call fcn.1800ab440
test eax, eax
je 0x18012b91a
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0x490]
call fcn.18013da60
nop
mov rcx, rax
call fcn.1800ab970
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x304]
call fcn.1802d7c04
nop
lea rcx, [rsp + 0x450]
call fcn.1800ad110
jmp 0x18012b91a
test al, 2
je 0x18012b8d0
cmp byte [rbx + 0x42], 0
je 0x18012b8d0
mov dword [rsp + 0x1f8], 2
jmp 0x18012b91a
test byte [rbx + 0x38], 1
je 0x18012b84b
mov dword [rsp + 0x1f8], r12d
mov al, 1
mov byte [rsp + 0x31], al
cmp byte [rbx + 0x43], 0
je 0x18012b8b3
mov dword [rsp + 0x1f8], 4
lea rdx, [rbx + 0x48]
mov rcx, rbx
call fcn.1800ab440
test eax, eax
je 0x18012b8ad
lea rdx, [rsp + 0x470]
lea rcx, [rsp + 0x490]
call fcn.18013da60
nop
mov rcx, rax
call fcn.1800ab970
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x304]
call fcn.1802d7c04
nop
lea rcx, [rsp + 0x470]
call fcn.1800ad110
mov al, 1
mov byte [rsp + 0x31], al
test byte [rbx + 0x38], 4
je 0x18012b8cc
cmp byte [rbx + 0x41], 0
je 0x18012b8cc
mov dword [rsp + 0x1f8], 3
jmp 0x18012b91a
test al, al
jne 0x18012b91f
lea rcx, [rsp + 0x490]
call fcn.18013d360
nop
lea rcx, [rsp + 0xd8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xf8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xb8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0x140]
call fcn.18013d360
jmp 0x18012ba35
mov byte [rsp + 0x31], 1
mov rax, qword [rbx + 0x68]
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x18012b9d3
mov ecx, 0x58
call fcn.18011da30
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x18012b965
lea rdx, [rsp + 0x1f0]
mov rcx, rax
call fcn.18010e600
mov rdi, rax
mov qword [rsp + 0x40], rax
jmp 0x18012b96a
mov qword [rsp + 0x40], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.180127150
nop
mov rcx, qword [rbx + 0x68]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18012b9ef
mov qword [rsp + 0x38], rcx
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18012b9ef
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x18012b9ef
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x18012b9ef
test r15b, r15b
jne 0x18012b9ef
mov rax, qword [rsi]
lea r8, [rsp + 0x1f0]
mov edx, send
mov rcx, rsi
call qword [rax + 0x48]
nop
lea rcx, [rsp + 0x490]
call fcn.18013d360
nop
lea rcx, [rsp + 0xd8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xf8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0xb8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0x140]
call fcn.18013d360
nop
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.1802b85a0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret