Function at 0x4ad0c0ca
Capabilities:
Get disk information

Disassembly:
mov ebx, 0x4ad25440
jmp 0x4ad0c149
movzx eax, cx
dec eax
cmp eax, 9
ja case.0x4ad0c091.7
jmp dword [eax*4 + 0x4ad0c5aa]
push 0x4ad25220
push 0x4ad04ca8
push dword [ebp - 0x270]
push esi
call fcn.4ad01799
add esp, 0x10
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4ad0c0b6
jmp 0x4ad0c231
push 0x278
push 0x4ad0c258
call fcn.4ad01509
xor edi, edi
mov dword [ebp - 0x280], edi
cmp dword [0x4ad241ac], edi
jne 0x4ad0c296
cmp dword [0x4ad2408c], edi
je 0x4ad0c290
cmp dword [0x4ad24108], edi
jne 0x4ad0c10c
push 0x4ad245a8
call fcn.4ad0735f
pop ecx
cmp byte [0x4ad24085], 0
jne 0x4ad0ba71
push str.PROMPT
call fcn.4ad01931
mov ebx, eax
mov dword [ebp - 0x278], ebx
cmp ebx, edi
je 0x4ad0c14f
push ebx
push 0x200
mov esi, 0x4ad25440
push esi
call fcn.4ad017fb
mov ebx, esi
mov byte [0x4ad24085], 1
mov dword [ebp - 0x278], ebx
push edi
push 0x104
mov edi, 0x4ad25220
push edi
call fcn.4ad03a9f
mov esi, 0x4ad25e00
mov dword [ebp - 0x274], esi
xor eax, eax
mov word [0x4ad25e00], ax
mov eax, 0x3ff
mov dword [ebp - 0x270], eax
test ebx, ebx
je 0x4ad0c571
cmp word [ebx], 0
je 0x4ad0c571
movzx eax, word [ebx]
test ax, ax
je 0x4ad0c274
cmp ax, 0x24
jne 0x4ad0c2ad
inc ebx
inc ebx
mov dword [ebp - 0x278], ebx
xor ebx, ebx
cmp word [0x4ad24d80], bx
je 0x4ad0c1e6
mov edi, 0x4ad24d80
mov eax, dword [ebp - 0x278]
movzx eax, word [eax]
push eax
call dword [sym.imp.msvcrt.dll_towupper]
pop ecx
cmp ax, word [edi]
je 0x4ad0c1e6
inc ebx
mov eax, ebx
imul eax, eax, 6
lea edi, [eax + 0x4ad24d80]
cmp word [edi], 0
jne 0x4ad0c1be
mov eax, ebx
imul eax, eax, 6
cmp word [eax + 0x4ad24d80], 0
je 0x4ad0c274
movzx ecx, word [eax + 0x4ad24d82]
cmp cx, 8
jne 0x4ad0c084
movzx eax, word [eax + 0x4ad24d84]
push eax
push 0x4ad245b8
push dword [ebp - 0x270]
push esi
call fcn.4ad01799
add esp, 0x10
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4ad0c227
sub eax, ecx
sar eax, 1
lea esi, [esi + eax*2]
sub dword [ebp - 0x270], eax
mov dword [ebp - 0x274], esi
add dword [ebp - 0x278], 2
mov ebx, dword [ebp - 0x278]
jmp 0x4ad0c190
xor eax, eax
mov word [esi], ax
push 0x4ad25e00
call fcn.4ad0c05e
cmp dword [0x4ad241ac], 0
jne 0x4ad0c5a0
call fcn.4ad013be
ret
push edi
push 0x2335
call fcn.4ad0a0bd
pop ecx
pop ecx
call fcn.4ad01a2f
jmp 0x4ad0c0ed
movzx eax, ax
push eax
push 0x4ad245b8
push dword [ebp - 0x270]
push esi
call fcn.4ad01799
add esp, 0x10
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4ad0c2ca
sub eax, ecx
sar eax, 1
lea esi, [esi + eax*2]
mov dword [ebp - 0x274], esi
sub dword [ebp - 0x270], eax
call fcn.4ad080cf
test al, al
je 0x4ad0c30b
movzx eax, word [ebx]
push eax
call fcn.4ad1e7c0
test eax, eax
je 0x4ad0c30b
movzx eax, word [ebx]
mov dword [ebp - 0x280], eax
jmp 0x4ad0c244
and dword [ebp - 0x280], 0
jmp 0x4ad0c244
push dword [ebp - 0x270]
push esi
push 1
push 0
call fcn.4ad0dcde
jmp 0x4ad0c235
push dword [ebp - 0x270]
push esi
push 1
push 0
call fcn.4ad125c3
jmp 0x4ad0c235
push 0x20
lea eax, [ebp - 0x64]
push eax
call fcn.4ad0cd3f
lea eax, [ebp - 0x64]
push eax
push 0x2350
call fcn.4ad0b696
mov edi, eax
push edi
push 0x4ad04ca8
push dword [ebp - 0x270]
push esi
call fcn.4ad01799
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
je 0x4ad0c231
jmp 0x4ad0c37d
cmp word [ebp - 0x280], 0
je 0x4ad0c39e
push str._b_b___b_b
jmp 0x4ad0c3a3
push 0x4ad40718
push dword [ebp - 0x270]
push esi
call fcn.4ad017fb
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad0c3b4
sub eax, edx
jmp 0x4ad0c233
push 0x4ad245a8
push dword [ebp - 0x270]
push esi
call fcn.4ad017fb
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
je 0x4ad0c231
jmp 0x4ad0c3db
cmp byte [0x4ad24081], 0
je 0x4ad0c244
call fcn.4ad1ee65
jmp 0x4ad0c41e
mov ecx, eax
dec eax
test ecx, ecx
je 0x4ad0c244
push 0x2b
pop ecx
mov word [esi], cx
inc esi
inc esi
mov dword [ebp - 0x274], esi
dec dword [ebp - 0x270]
cmp dword [ebp - 0x270], 1
jle 0x4ad0c244
jmp 0x4ad0c3ff
cmp byte [0x4ad24081], 0
je 0x4ad0c244
mov ax, word [0x4ad25220]
mov word [ebp - 0x24], ax
mov ax, word [0x4ad25222]
mov word [ebp - 0x22], ax
push 0x5c
pop eax
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x4ad0c244
xor eax, eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x284], 0x104
and dword [ebp - 4], eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MPR.dll_WNetGetConnectionW
mov dword [ebp - 0x27c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x4ad0c4ce
cmp dword [ebp - 0x27c], 0
je 0x4ad0c510
cmp dword [ebp - 0x27c], 0x8ca
je 0x4ad0c244
push 0x4ad0c5d4
push dword [ebp - 0x270]
push esi
call fcn.4ad01799
add esp, 0xc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
je 0x4ad0c3be
jmp 0x4ad0c500
lea eax, [ebp - 0x26c]
push eax
push 0x4ad1bb50
push dword [ebp - 0x270]
push esi
call fcn.4ad01799
add esp, 0x10
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
je 0x4ad0c3be
jmp 0x4ad0c530
movzx eax, word [0x4ad25220]
push eax
push 0x4ad245b8
push dword [ebp - 0x270]
push esi
call fcn.4ad01799
add esp, 0x10
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
je 0x4ad0c231
jmp 0x4ad0c561
push edi
push 0x4ad407e0
push eax
push esi
call fcn.4ad01799
add esp, 0x10
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad0c586
sub eax, edx
sar eax, 1
lea esi, [eax*2 + 0x4ad25e00]
jmp 0x4ad0c274
call fcn.4ad01a2f
jmp 0x4ad0c290