Function at 0x5add80
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61bda2
push eax
mov eax, 0x67d8
mov dword fs:[0], esp
call fcn.00466c20
push esi
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor esi, esi
mov dword [esp + 8], eax
cmp eax, esi
jne 0x5addbb
xor eax, eax
jmp 0x5ae413
mov eax, dword [0x680268]
mov cx, word [0x68026c]
push ebx
push ebp
push edi
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1d6]
mov word [esp + 0x1d4], si
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x44]
stosw word es:[edi], ax
call fcn.005e65fe
lea ecx, [esp + 0x58]
mov dword [esp + 0x67f0], esi
call fcn.005e757d
mov eax, dword [0x69d2fc]
mov edx, dword [0x69d2f8]
mov dword [esp + 0x38], eax
mov byte [esp + 0x67f0], 1
mov dword [esp + 0x34], edx
mov eax, 1
xor ebp, ebp
jmp 0x5ade2e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov ebx, eax
shl eax, 1
test ecx, ebx
mov dword [esp + 0x1c], eax
je 0x5adeb4
lea edx, [esp + 0x34]
lea edi, [ebp + 0x41]
push edx
mov word [esp + 0x38], di
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x5ade6e
cmp eax, 3
je 0x5ade6e
cmp eax, 5
je 0x5ade6e
mov ecx, dword [esp + 0x14]
mov eax, ebx
not eax
and ecx, eax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x1d4]
push 0x104
lea edx, [esp + 0x30]
push ecx
push edx
mov word [esp + 0x38], di
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x5adeb4
mov eax, dword [esp + 0x60]
push ebx
push eax
lea ecx, [esp + 0x60]
call fcn.005e77a1
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x1d4]
push ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.005e68a7
inc ebp
cmp ebp, 0x1a
jl 0x5ade2a
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x160]
mov dword [esp + 0x15c], esi
rep stosd dword es:[edi], eax
mov ecx, 0x1d
lea edi, [esp + 0x70]
mov dword [esp + 0x6c], esi
mov dword [esp + 0xe4], esi
rep stosd dword es:[edi], eax
mov ecx, 0x1d
lea edi, [esp + 0xe8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x4c]
xor ebx, ebx
cmp eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
jle 0x5ae072
mov dword [esp + 0x18], esi
jmp 0x5adf17
xor esi, esi
mov ebp, 0x69cf9c
mov ecx, dword [esp + 0x48]
mov eax, dword [ebp]
push eax
lea ecx, [ecx + ebx*4]
call fcn.005e1d3d
mov edi, eax
cmp edi, 0xffffffff
jne 0x5adf44
add ebp, 4
inc esi
cmp ebp, 0x69cfa0
jl 0x5adf1c
jmp 0x5ae050
cmp esi, 1
jge 0x5ae050
mov edx, dword [esi*4 + 0x69cf9c]
push edx
call fcn.00465c4f
add edi, eax
mov eax, dword [esp + 0x4c]
add esp, 4
mov edx, dword [eax + ebx*4]
lea ecx, [eax + ebx*4]
mov eax, dword [edx - 8]
sub eax, edi
push eax
lea eax, [esp + 0x14]
push eax
call fcn.005e1bd3
push 0x66af18
lea ecx, [esp + 0x14]
mov byte [esp + 0x67f4], 2
call fcn.005e1d3d
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005e1c4f
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x67f4], 3
call fcn.005eced8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x67f0], 2
call fcn.005ecd91
mov edx, dword [esp + 0x10]
push edx
call fcn.00468382
add esp, 4
test esi, esi
jne 0x5ae03f
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x5c]
xor ecx, ecx
test edx, edx
jbe 0x5ae00b
cmp dword [esp + ecx*4 + 0x15c], eax
jne 0x5adff3
cmp dword [esp + ecx*4 + 0xe4], 3
je 0x5adffe
mov edi, dword [esp + 0x14]
inc ecx
cmp ecx, edi
jb 0x5adfe0
jmp 0x5ae00b
mov edi, dword [esi + ebx*4]
mov ebp, dword [esp + ecx*4 + 0x6c]
or ebp, edi
mov dword [esp + ecx*4 + 0x6c], ebp
mov edi, dword [esp + 0x14]
cmp ecx, edi
jne 0x5ae03f
cmp edx, 0x78
jae 0x5ae05f
mov dword [esp + edx + 0x15c], eax
mov eax, dword [esi + ebx*4]
mov ecx, edi
mov dword [esp + edx + 0x6c], eax
mov dword [esp + edx + 0xe4], 3
inc ecx
add edx, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x10]
mov byte [esp + 0x67f0], 1
call fcn.005ecd91
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jl 0x5adf15
jmp 0x5ae070
lea ecx, [esp + 0x10]
mov byte [esp + 0x67f0], 1
call fcn.005ecd91
xor esi, esi
mov ecx, 0x17ab
xor eax, eax
lea edi, [esp + 0x93c]
mov dword [esp + 0x938], esi
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x67f8]
mov ecx, 0x156
lea edi, [esp + 0x3e0]
mov dword [esp + 0x3dc], esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
xor edx, edx
cmp eax, esi
mov dword [esp + 0x20], edx
jle 0x5ae3d5
lea esi, [esp + 0x938]
mov dword [esp + 0x1c], esi
mov ecx, 0x157
xor eax, eax
lea edi, [esp + 0x3dc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + edx*4 + 0xe4]
mov ecx, dword [esp + edx*4 + 0x6c]
mov dword [esp + 0x3e4], ecx
mov dword [esp + 0x3e0], eax
lea ecx, [eax - 1]
cmp ecx, 4
ja case.default.0x5ae0f7
jmp dword [ecx*4 + 0x5ae42c]
mov edx, dword [esp + edx*4 + 0x15c]
lea ecx, [esp + 0x3dc]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
mov dword [esi], 3
call fcn.005afa00
lea eax, [esp + 0x3e8]
lea ecx, [esp + 0x10]
push eax
call fcn.005ece05
push 0x66d62c
lea ecx, [esp + 0x14]
mov byte [esp + 0x67f4], 4
call fcn.005e22b8
push 0x66d62c
lea ecx, [esp + 0x14]
call fcn.005e21dc
push 0x66d62c
lea ecx, [esp + 0x14]
call fcn.005e1d3d
cmp eax, 0xffffffff
je 0x5ae1c2
inc eax
lea ecx, [esp + 0x10]
push eax
push 0x66d62c
call fcn.005e1d4b
cmp eax, 0xffffffff
je 0x5ae1c2
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005e1c4f
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x67f4], 5
call fcn.005eced8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x67f0], 4
call fcn.005ecd91
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x3e8]
push edx
push eax
call fcn.00466936
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x67f0], 1
call fcn.005ecd91
jmp 0x5ae1f3
mov dword [esi], 2
jmp 0x5ae1f3
mov dword [esi], 1
jmp 0x5ae1f3
mov dword [esi], 5
jmp 0x5ae1f3
mov dword [esi], 4
mov ecx, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x24], esi
lea ebx, [esi + 1]
test ebx, ebx
jne 0x5ae227
mov eax, dword [ebp + 4]
test eax, eax
je 0x5ae21a
push eax
mov dword [esp + 0x28], ecx
call fcn.005ed483
add esp, 4
mov dword [ebp + 4], ebx
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jmp 0x5ae392
mov edi, dword [ebp + 4]
test edi, edi
jne 0x5ae26a
lea ecx, [ebx + ebx*8]
lea eax, [ebx + ecx*2]
lea edx, [eax + eax*8]
lea edi, [ebx + edx*2]
shl edi, 2
push edi
call fcn.005ed45a
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x5ae392
cmp ebx, dword [ebp + 0xc]
jg 0x5ae2bd
cmp ecx, ebx
jge 0x5ae2ad
lea edx, [ecx + ecx*8]
mov eax, ebx
sub eax, ecx
lea edx, [ecx + edx*2]
lea edx, [edx + edx*8]
lea ecx, [ecx + edx*2]
lea edx, [eax + eax*8]
lea edi, [edi + ecx*4]
lea ecx, [eax + edx*2]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*2]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 8], ebx
jmp 0x5ae392
jle 0x5ae2b5
sub ecx, ebx
mov dword [esp + 0x24], ecx
mov dword [ebp + 8], ebx
jmp 0x5ae392
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x5ae2e7
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5ae2db
mov eax, 4
jmp 0x5ae2e7
cmp eax, 0x400
jle 0x5ae2e7
mov eax, 0x400
mov ecx, dword [ebp + 0xc]
add eax, ecx
cmp ebx, eax
jge 0x5ae2f6
mov dword [esp + 0x18], eax
jmp 0x5ae2fc
mov dword [esp + 0x18], ebx
mov eax, ebx
lea ecx, [eax + eax*8]
lea ecx, [eax + ecx*2]
lea edx, [ecx + ecx*8]
lea eax, [eax + edx*2]
shl eax, 2
push eax
call fcn.005ed45a
mov edx, eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov edi, edx
lea ecx, [eax + eax*8]
mov dword [esp + 0x44], edx
lea ecx, [eax + ecx*2]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*2]
shl ecx, 2
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
sub eax, ecx
lea esi, [ecx + ecx*8]
lea esi, [ecx + esi*2]
lea esi, [esi + esi*8]
lea ecx, [ecx + esi*2]
lea edi, [edx + ecx*4]
lea edx, [eax + eax*8]
lea ecx, [eax + edx*2]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*2]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 4]
push eax
call fcn.005ed483
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
lea edx, [esi + esi*8]
lea eax, [esi + edx*2]
mov edx, dword [ebp + 4]
lea eax, [eax + eax*8]
lea ecx, [esi + eax*2]
lea esi, [esp + 0x3dc]
lea edi, [edx + ecx*4]
mov edx, dword [esp + 0x20]
mov ecx, 0x157
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
inc edx
add esi, 0x328
cmp edx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], esi
jl 0x5ae0c2
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x938]
push eax
push ebp
call fcn.005ae440
lea ecx, [esp + 0x58]
mov esi, eax
mov byte [esp + 0x67f0], 0
call fcn.005e75b0
lea ecx, [esp + 0x44]
mov dword [esp + 0x67f0], 0xffffffff
call fcn.005e6631
pop edi
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x67dc]
pop esi
mov dword fs:[0], ecx
add esp, 0x67e4
ret 4