Function at 0x18000cf60
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x15e0]
mov eax, 0x16e0
call fcn.180026800
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1730], rbx
mov rax, qword [0x1800438e8]
xor rax, rsp
mov qword [rbp + 0x15d0], rax
mov r13, rcx
lea rcx, [rbp - 0x70]
mov r8d, 0x218
call fcn.18001bea0
lea rax, [rbp - 0x70]
mov qword [r13 + 0x8d0], rax
lea rax, [rbp - 0x60]
mov qword [r13 + 0x8d8], rax
mov byte [rsp + 0x40], 0
xor dil, dil
xor ebx, ebx
mov word [rbp + 0x3c0], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x3c2]
call fcn.180021060
mov dword [rsp + 0x38], 0x104
lea rax, [rbp + 0x3c0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x18000d365
lea rdx, str.NTFS
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18000d069
mov byte [rsp + 0x40], 0x3c
cmp dword [r13 + 0x10], ebx
jne 0x18000d688
mov r8d, 1
mov rcx, qword [r13 + 8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x18000d688
mov word [rbp + 0x1b0], bx
lea r8, str.._
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call fcn.18001c6dc
mov r8, qword [r13 + 0x8d0]
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call fcn.18001d44c
mov r12d, 7
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], rbx
xor r14d, r14d
mov word [rsp + 0x58], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x1b0]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rsi, rcx
movabs rax, 0x7ffffffffffffffe
cmp rcx, rax
jbe 0x18000d0ee
lea rcx, str.string_too_long
call fcn.18001aaa0
int3
cmp rcx, r12
jbe 0x18000d10f
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.18000ef70
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
jmp 0x18000d11f
test rcx, rcx
jne 0x18000d11f
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], r14w
test rsi, rsi
setne al
test al, al
je 0x18000d170
lea rcx, [rsp + 0x58]
cmp r12, 8
cmovae rcx, qword [rsp + 0x58]
lea rdi, [rsi + rsi]
mov r8, rdi
lea rdx, [rbp + 0x1b0]
call fcn.18001bea0
mov qword [rsp + 0x68], rsi
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
mov word [rax + rdi], r14w
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x58]
test rbx, rbx
je 0x18000d1e8
cmp rbx, 0xffffffffffffffff
jbe 0x18000d186
or rcx, 0xffffffffffffffff
jmp 0x18000d18a
lea rcx, [rbx - 1]
lea rax, [rsp + 0x58]
cmp r12, 8
cmovae rax, r14
lea rdi, [rax + rcx*2]
nop dword [rax + rax]
mov ecx, 1
lea rax, [0x180039bbc]
movzx edx, word [rdi]
nop
cmp word [rax], dx
je 0x18000d1d3
add rax, 2
dec rcx
jne 0x18000d1b0
lea rcx, [rsp + 0x58]
call fcn.18000e7f0
cmp rdi, rax
je 0x18000d1e8
sub rdi, 2
jmp 0x18000d1a0
lea rax, [rsp + 0x58]
cmp r12, 8
cmovae rax, r14
sub rdi, rax
sar rdi, 1
jmp 0x18000d1ec
or rdi, 0xffffffffffffffff
or rsi, 0xffffffffffffffff
inc rdi
cmp rbx, rdi
jae 0x18000d205
lea rcx, str.invalid_string_position
call fcn.18001aafc
int3
mov rax, rbx
sub rax, rdi
cmp rax, 0xffffffffffffffff
jae 0x18000d219
mov rsi, rax
test rax, rax
je 0x18000d27a
lea rdx, [rsp + 0x58]
cmp r12, 8
cmovae rdx, r14
lea rcx, [rsp + 0x58]
cmovae rcx, r14
sub rbx, rsi
sub rbx, rdi
lea r8, [rbx + rbx]
lea rax, [rsi + rdi]
lea rdx, [rdx + rax*2]
lea rcx, [rcx + rdi*2]
call fcn.18001bea0
mov rdx, qword [rsp + 0x68]
sub rdx, rsi
mov qword [rsp + 0x68], rdx
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
xor ebx, ebx
mov word [rax + rdx*2], bx
mov r12, qword [rsp + 0x70]
mov r14, qword [rsp + 0x58]
jmp 0x18000d27c
xor ebx, ebx
lea rcx, [rsp + 0x58]
cmp r12, 8
cmovae rcx, r14
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r13 + 0x8e0], rax
cmp rax, 0xffffffffffffffff
je 0x18000d328
mov byte [rsp + 0x40], 1
cmp qword [rsp + 0x70], 8
jb 0x18000d2d4
mov rcx, qword [rsp + 0x58]
call fcn.18001be54
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x80]
mov edx, 0x900e7
mov rcx, qword [r13 + 0x8e0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18000d319
mov dil, 1
jmp 0x18000d365
mov byte [rsp + 0x40], 0x3e
cmp dword [r13 + 0x10], 0
jmp 0x18000d049
mov byte [rsp + 0x40], 0x3d
cmp dword [r13 + 0x10], 0
jne 0x18000d34a
mov rcx, qword [r13 + 8]
mov rax, qword [rcx]
mov r8d, 1
lea rdx, [rsp + 0x40]
call qword [rax + reloc.WS2_32.dll_recv]
nop
cmp qword [rsp + 0x70], 8
jb 0x18000d688
mov rcx, qword [rsp + 0x58]
call fcn.18001be54
jmp 0x18000d688
mov edx, 0x800
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
mov byte [rax], 0x3b
mov r15d, 1
test dil, dil
je 0x18000d62e
lea rax, [r13 + 0x8e8]
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x38
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x900f4
mov rcx, qword [r13 + 0x8e0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18000d61a
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov rax, qword [r13 + 0x8f8]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1000
lea rax, [rbp + 0x5d0]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 0x17]
lea r8, [rsp + 0x58]
mov edx, 0x900b3
mov rcx, qword [r13 + 0x8e0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18000d5d2
nop dword [rax]
mov r12d, dword [rsp + 0x48]
lea rsi, [rbp + 0x5d8]
add r12d, 0xfffffff8
je 0x18000d57e
nop word [rax + rax]
movzx ebx, word [rsi + 0x38]
mov byte [rbp + 0x1b0], 0
xor edx, edx
mov r8d, 0x207
lea rcx, [rbp + 0x1b1]
call fcn.180021060
mov rdx, qword [r13 + 0x8d8]
lea rcx, [rsi + 0x3c]
call fcn.18001d230
test rax, rax
je 0x18000d56e
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x20], rax
lea r8, [rsi + 0x3c]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8, qword [rsi + 8]
mov rdx, qword [r13 + 0x8e0]
mov rcx, r13
call fcn.18000ce40
lea edi, [r15 + 0x2000]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalSize]
cmp rax, rdi
jae 0x18000d4f9
mov r8d, 0x42
mov edx, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov r14, rax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x1b0]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov ecx, r15d
add rcx, r14
lea rdx, [rbp + 0x1b0]
call fcn.18001bea0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x1b0]
repne scasb al, byte [rdi]
not rcx
lea ebx, [r15 + rcx]
mov rdx, qword [r13 + 0x930]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov ecx, ebx
add rcx, r14
call fcn.18001bea0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, qword [r13 + 0x930]
repne scasb al, byte [rdi]
not rcx
lea r15d, [rbx + rcx]
mov eax, dword [rsi]
add rsi, rax
sub r12d, eax
jne 0x18000d450
xor ebx, ebx
mov rax, qword [rbp + 0x5d0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1000
lea rax, [rbp + 0x5d0]
mov qword [rsp + 0x20], rax
mov r9d, 0x18
lea r8, [rsp + 0x58]
mov edx, 0x900b3
mov rcx, qword [r13 + 0x8e0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x18000d430
mov rax, qword [r13 + 0x8e8]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], 1
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x80]
mov edx, 0x900f8
mov rcx, qword [r13 + 0x8e0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x18000d62e
mov byte [rsp + 0x40], 0x3f
cmp dword [r13 + 0x10], 0
jne 0x18000d688
mov r8d, r15d
jmp 0x18000d055
cmp byte [rsp + 0x40], 0
je 0x18000d642
mov rcx, qword [r13 + 0x8e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, r15d
mov r8d, 0x42
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov rdi, rax
test rax, rax
je 0x18000d688
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalSize]
mov r11, rax
cmp dword [r13 + 0x10], 0
jne 0x18000d67f
mov rcx, qword [r13 + 8]
mov rax, qword [rcx]
mov r8d, r11d
mov rdx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x15d0]
xor rcx, rsp
call fcn.18001be70
mov rbx, qword [rsp + 0x1730]
add rsp, 0x16e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret