Function at 0x4ad0a210
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov rax, qword [0x4ad2e1c8]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor ebx, ebx
mov r14w, bx
mov dword [rsp + 0x30], r14d
mov word [rsp + 0x24], bx
cmp dword [0x4ad2e19c], ebx
jne 0x4ad19d70
cmp dword [0x4ad2e0e8], ebx
je 0x4ad0a48d
cmp dword [0x4ad2e12c], ebx
jne 0x4ad0a27e
lea rcx, [0x4ad3c300]
call fcn.4ad05fc4
cmp byte [0x4ad2e0ce], bl
jne 0x4ad0a2e8
lea rcx, str.PROMPT
call fcn.4ad01a60
mov r13, rax
cmp rax, rbx
je 0x4ad0a2f1
mov edi, 0x200
lea rdx, [0x4ad4a820]
mov rcx, rdx
sub r13, rdx
lea rax, [rdi + 0x7ffffdfe]
cmp rax, rbx
je 0x4ad0a2d0
movzx eax, word [r13 + rcx]
cmp ax, bx
je 0x4ad0a2d0
mov word [rcx], ax
add rcx, 2
sub rdi, 1
jne 0x4ad0a2ac
cmp rdi, rbx
je 0x4ad19d87
mov word [rcx], bx
mov r13, rdx
mov byte [0x4ad2e0ce], 1
jmp 0x4ad0a2f1
lea r13, [0x4ad4a820]
jmp 0x4ad0a2f1
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x4ad3c0a0]
call fcn.4ad05410
lea r15, [0x4ad2eb60]
mov rsi, r15
mov qword [rsp + 0x28], r15
mov word [0x4ad2eb60], bx
mov r12d, 0x3ff
mov dword [rsp + 0x20], r12d
cmp r13, rbx
je 0x4ad1a13a
cmp word [r13], bx
je 0x4ad1a13a
cmp word [r13], bx
je 0x4ad0a46f
cmp word [r13], 0x24
jne 0x4ad19d90
add r13, 2
mov qword [rsp + 0x40], r13
mov r15d, ebx
mov rdi, rbx
cmp word [0x4ad4a780], bx
je 0x4ad0a3a2
lea rsi, [0x4ad4a780]
mov r14, rsi
movzx ecx, word [r13]
call qword [sym.imp.msvcrt.dll_towupper]
cmp ax, word [r14]
je 0x4ad0a398
inc r15d
inc rdi
lea rax, [rdi + rdi*2]
lea r14, [rsi + rax*2]
cmp word [r14], bx
jne 0x4ad0a373
mov rsi, qword [rsp + 0x28]
mov r14d, dword [rsp + 0x30]
mov eax, r15d
lea rcx, [rax + rax*2]
lea r15, [0x4ad4a780]
cmp word [r15 + rcx*2], bx
je 0x4ad1a171
movzx eax, word [r15 + rcx*2 + 2]
cmp ax, 8
jne 0x4ad0a410
movzx r9d, word [r15 + rcx*2 + 4]
movsxd rdx, r12d
lea r8, [0x4ad4a7f8]
mov rcx, rsi
call fcn.4ad01484
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
movsxd rax, ecx
lea rsi, [rsi + rax*2]
mov qword [rsp + 0x28], rsi
sub r12d, ecx
mov dword [rsp + 0x20], r12d
jmp 0x4ad0a407
add r13, 2
jmp 0x4ad0a33a
movzx ecx, ax
sub ecx, 1
je 0x4ad1a10f
sub ecx, 1
je 0x4ad1a0e4
sub ecx, 1
jne 0x4ad19e09
movsxd rdx, r12d
lea r9, [0x4ad3c0a0]
lea r8, [0x4ad2999c]
mov rcx, rsi
call fcn.4ad01484
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
movsxd rax, ecx
lea rsi, [rsi + rax*2]
mov qword [rsp + 0x28], rsi
sub r12d, ecx
mov dword [rsp + 0x20], r12d
jmp 0x4ad0a407
lea r15, [0x4ad2eb60]
mov word [rsi], bx
mov rcx, r15
call fcn.4ad0a4c8
cmp dword [0x4ad2e19c], ebx
jne 0x4ad1a17d
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.4ad01000
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
xor edx, edx
mov ecx, 0x2335
call fcn.4ad07d88
call fcn.4ad0231c
nop
jmp 0x4ad0a25e
sub rcx, 2
jmp 0x4ad0a2d9
movzx r9d, word [r13]
movsxd rdx, r12d
lea r8, [0x4ad4a7f8]
mov rcx, rsi
call fcn.4ad01484
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
movsxd rax, ecx
lea rsi, [rsi + rax*2]
mov qword [rsp + 0x28], rsi
sub r12d, ecx
mov dword [rsp + 0x20], r12d
call fcn.4ad06ac8
cmp al, bl
je 0x4ad19df8
mov r14w, word [r13]
mov dword [rsp + 0x30], r14d
movzx ecx, r14w
call fcn.4ad235b4
cmp eax, ebx
je 0x4ad19df8
mov word [rsp + 0x24], r14w
jmp 0x4ad0a407
mov r14d, ebx
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x24], bx
jmp 0x4ad0a407
sub ecx, 1
je 0x4ad1a07a
sub ecx, 1
je 0x4ad1a023
sub ecx, 1
je 0x4ad19fe6
sub ecx, 3
je 0x4ad19f9a
cmp ecx, 1
je 0x4ad19e77
movzx r9d, word [0x4ad3c0a0]
movsxd rdx, r12d
lea r8, [0x4ad4a7f8]
mov rcx, rsi
call fcn.4ad01484
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
movsxd rax, ecx
lea rsi, [rsi + rax*2]
mov qword [rsp + 0x28], rsi
sub r12d, ecx
mov dword [rsp + 0x20], r12d
jmp 0x4ad0a407
cmp byte [0x4ad2e0ca], bl
je 0x4ad0a407
movzx eax, word [0x4ad3c0a0]
mov word [rsp + 0x50], ax
movzx eax, word [0x4ad3c0a2]
mov word [rsp + 0x52], ax
mov eax, 0x5c
mov word [rsp + 0x54], ax
mov word [rsp + 0x56], bx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x4ad0a407
mov word [rsp + 0x54], bx
mov dword [rsp + 0x38], 0x104
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x50]
call sub.MPR.dll_WNetGetConnectionW
mov dword [rsp + 0x34], eax
jmp 0x4ad19f04
cmp dword [rsp + 0x34], ebx
je 0x4ad19f55
cmp dword [rsp + 0x34], 0x8ca
je 0x4ad0a407
movsxd rdx, r12d
lea r8, str.Unknown
mov rcx, rsi
call fcn.4ad01484
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
movsxd rax, ecx
lea rsi, [rsi + rax*2]
mov qword [rsp + 0x28], rsi
sub r12d, ecx
mov dword [rsp + 0x20], r12d
jmp 0x4ad0a407
movsxd rdx, r12d
lea r9, [rsp + 0xa0]
lea r8, [0x4ad2a208]
mov rcx, rsi
call fcn.4ad01484
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
movsxd rax, ecx
lea rsi, [rsi + rax*2]
mov qword [rsp + 0x28], rsi
sub r12d, ecx
mov dword [rsp + 0x20], r12d
jmp 0x4ad0a407
cmp byte [0x4ad2e0ca], bl
je 0x4ad0a407
mov ecx, dword [0x4ad2e130]
cmp r12d, 1
jle 0x4ad0a407
mov eax, ecx
dec ecx
cmp eax, ebx
je 0x4ad0a407
mov eax, 0x2b
mov word [rsi], ax
add rsi, 2
mov qword [rsp + 0x28], rsi
dec r12d
mov dword [rsp + 0x20], r12d
cmp r12d, 1
jg 0x4ad19fb6
jmp 0x4ad0a407
movsxd rdx, r12d
lea r8, [0x4ad3c300]
mov rcx, rsi
call fcn.4ad01744
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
movsxd rax, ecx
lea rsi, [rsi + rax*2]
mov qword [rsp + 0x28], rsi
sub r12d, ecx
mov dword [rsp + 0x20], r12d
jmp 0x4ad0a407
cmp r14w, bx
je 0x4ad1a03d
movsxd rdx, r12d
lea r8, str._b_b___b_b
mov rcx, rsi
call fcn.4ad01744
jmp 0x4ad1a04f
movsxd rdx, r12d
lea r8, [0x4ad4b208]
mov rcx, rsi
call fcn.4ad01744
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
movsxd rax, ecx
lea rsi, [rsi + rax*2]
mov qword [rsp + 0x28], rsi
sub r12d, ecx
mov dword [rsp + 0x20], r12d
jmp 0x4ad0a407
mov edx, 0x20
lea rcx, [rsp + 0x60]
call fcn.4ad0aec8
lea rdx, [rsp + 0x60]
mov ecx, 0x2350
call fcn.4ad0c2d8
mov rdi, rax
movsxd rdx, r12d
mov r9, rax
lea r8, [0x4ad2999c]
mov rcx, rsi
call fcn.4ad01484
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
movsxd rax, ecx
lea rsi, [rsi + rax*2]
mov qword [rsp + 0x28], rsi
sub r12d, ecx
mov dword [rsp + 0x20], r12d
jmp 0x4ad0a407
mov r9d, r12d
mov r8, rsi
mov edx, 1
xor ecx, ecx
call fcn.4ad133d8
movsxd rcx, eax
lea rsi, [rsi + rcx*2]
mov qword [rsp + 0x28], rsi
sub r12d, eax
mov dword [rsp + 0x20], r12d
jmp 0x4ad0a407
mov r9d, r12d
mov r8, rsi
mov edx, 1
xor ecx, ecx
call fcn.4ad0d510
movsxd rcx, eax
lea rsi, [rsi + rcx*2]
mov qword [rsp + 0x28], rsi
sub r12d, eax
mov dword [rsp + 0x20], r12d
jmp 0x4ad0a407
lea r9, [0x4ad3c0a0]
lea r8, [0x4ad4b2b0]
mov rdx, r12
mov rcx, r15
call fcn.4ad01484
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r15
repne scasw ax, word [rdi]
not rcx
lea rax, [rcx - 1]
cdqe
lea rsi, [r15 + rax*2]
jmp 0x4ad0a476
lea r15, [0x4ad2eb60]
jmp 0x4ad0a476
call fcn.4ad0231c
nop
jmp 0x4ad0a48d