Function at 0x180024510
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x18009a918]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r12, r8
mov ebx, edx
mov rsi, rcx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x34], 0xc0000001
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x60], rdi
movzx r13d, di
mov word [rsp + 0x3c], di
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r15d, eax
mov dword [rsp + 0x48], eax
cmp ebx, 4
jae 0x180024583
mov edi, 0xc000000d
jmp 0x1800248c9
cmp word [rsi], 0x5c
jne 0x1800245d2
cmp word [rsi + 4], 0x3f
jne 0x1800245d2
cmp word [rsi + 6], 0x5c
jne 0x1800245d2
lea r14, [rsi + 8]
add ebx, 0xfffffffc
cmp ebx, 2
jae 0x1800245ad
mov edi, 0xc000000d
jmp 0x1800248c9
cmp word [r14 + 2], 0x3a
jne 0x1800245ee
mov rcx, rdi
mov qword [rsp + 0x40], rcx
mov eax, ebx
cmp rcx, rax
ja 0x1800245d9
movzx eax, word [r14 + rcx*2]
mov word [rsi + rcx*2], ax
inc rcx
jmp 0x1800245b8
cmp word [rsi + 2], 0x3a
jne 0x1800245eb
test r12, r12
je 0x1800248c9
mov dword [r12], ebx
jmp 0x1800248c9
mov r14, rsi
cmp byte [0x18009b380], r13b
je 0x180024629
mov ecx, 0x13a
lea rax, str.E:_buildsARK23181_2_trufos_dllmiscCommon.c
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], cx
xor r9d, r9d
mov edx, 0x3fe
mov r8d, 0x5254533a
lea rcx, [0x18009cc40]
call fcn.18004b960
jmp 0x180024645
xor edx, edx
mov r8d, 0x3fe
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b430]
call qword [0x18007d538]
lea rcx, str.E:_buildsARK23181_2_trufos_dllmiscCommon.c
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x180024660
mov edi, 0xc000009a
jmp 0x1800248d0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9b, 1
xor r8d, r8d
lea rdx, str.DeviceLanmanRedirector
mov rcx, rsi
call fcn.18004b0d0
mov dword [rsp + 0x34], eax
test eax, eax
js 0x18002477b
cmp rsi, qword [rsp + 0x60]
jne 0x18002477b
mov dword [rsp + 0x4c], edi
lea r8, [rsp + 0x4c]
mov edx, 0x1ff
lea rcx, str.DeviceLanmanRedirector
call fcn.18004b040
test eax, eax
js 0x18002477b
cmp dword [rsp + 0x68], 0
jne 0x18002477b
mov eax, dword [rsp + 0x4c]
cmp word [rsi + rax*2], 0x5c
jne 0x18002477b
movzx ecx, word [r14 + rax*2]
mov word [rsp + 0x30], cx
mov word [r14 + rax*2], di
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8b, 1
lea rdx, str.DeviceLanmanRedirector
mov rcx, rsi
call fcn.18004ad10
cmp eax, 0x68000008
jne 0x18002476d
cmp dword [rsp + 0x68], 0
jne 0x18002476d
mov eax, dword [rsp + 0x4c]
movzx ecx, word [rsp + 0x30]
mov word [r14 + rax*2], cx
mov eax, 0x5c
mov word [rsi], ax
mov ecx, dword [rsp + 0x4c]
mov r8d, ecx
mov qword [rsp + 0x40], rcx
mov eax, ebx
cmp r8, rax
ja 0x180024757
movzx edx, word [r14 + r8*2]
mov eax, ecx
mov rcx, r8
sub rcx, rax
mov word [rsi + rcx*2 + 2], dx
inc r8
mov qword [rsp + 0x40], r8
mov ecx, dword [rsp + 0x4c]
jmp 0x180024730
test r12, r12
je 0x1800248c9
sub ebx, ecx
inc ebx
mov dword [r12], ebx
jmp 0x1800248c9
mov eax, dword [rsp + 0x4c]
movzx ecx, word [rsp + 0x30]
mov word [r14 + rax*2], cx
mov ecx, 0x41
lea eax, [rcx - 7]
test r15d, r15d
je 0x1800248c4
test r15b, 1
je 0x1800248ad
mov dword [rsp + 0x6c], 0x3a0041
mov word [rsp + 0x70], di
lea eax, [r13 + 0x41]
mov word [rsp + 0x38], ax
mov word [rsp + 0x6c], ax
mov r8d, 0x1ff
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1800248a5
lea r8, [rsp + 0x50]
mov edx, 0x1ff
mov rcx, qword [rsp + 0x58]
call fcn.18004b040
test eax, eax
js 0x1800248a5
mov eax, dword [rsp + 0x50]
cmp ebx, eax
jb 0x1800248a5
movzx ecx, word [r14 + rax*2]
mov word [rsp + 0x30], cx
mov word [r14 + rax*2], di
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8b, 1
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.18004ad10
cmp eax, 0x68000008
jne 0x180024897
cmp dword [rsp + 0x68], 0
jne 0x180024897
mov eax, dword [rsp + 0x50]
movzx ecx, word [rsp + 0x30]
mov word [r14 + rax*2], cx
movzx eax, word [rsp + 0x38]
mov word [rsi], ax
mov eax, 0x3a
mov word [rsi + 2], ax
mov ecx, dword [rsp + 0x50]
mov r8d, ecx
mov qword [rsp + 0x40], rcx
nop dword [rax]
mov eax, ebx
cmp r8, rax
ja 0x180024887
movzx edx, word [r14 + r8*2]
mov eax, ecx
mov rcx, r8
sub rcx, rax
mov word [rsi + rcx*2 + 4], dx
inc r8
mov qword [rsp + 0x40], r8
mov ecx, dword [rsp + 0x50]
jmp 0x180024860
test r12, r12
je 0x1800248c9
sub ebx, ecx
add ebx, 2
mov dword [r12], ebx
jmp 0x1800248c9
mov eax, dword [rsp + 0x50]
movzx ecx, word [rsp + 0x30]
mov word [r14 + rax*2], cx
mov ecx, 0x41
lea eax, [rcx - 7]
inc r13w
mov word [rsp + 0x3c], r13w
shr r15d, 1
mov dword [rsp + 0x48], r15d
jmp 0x180024783
mov edi, 0xc0000225
lea rcx, str.E:_buildsARK23181_2_trufos_dllmiscCommon.c
mov dword [rsp + 0x34], edi
jmp 0x1800248e1
cmp qword [rsp + 0x58], 0
je 0x180024931
cmp byte [0x18009b380], 0
je 0x180024916
mov r9d, 0x1b1
mov qword [rsp + 0x20], rcx
mov r8d, 0x5254533a
lea rdx, [rsp + 0x58]
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x180024931
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
mov eax, edi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18005e1d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret