Function at 0x461730
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x330], edi
xor eax, eax
mov word [ebp - 0x24c], ax
mov eax, ebx
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x461772
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x24c]
call fcn.00406300
lea edx, [ebp - 0x230]
push edx
xor ecx, ecx
push esi
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], cx
call fcn.0042b1f0
add esp, 8
test al, al
jne 0x461832
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.0045edd0
add esp, 8
test al, al
jne 0x461832
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x4617eb
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406ec9
add esp, 4
mov dword [ebp - 0x21c], 7
xor edx, edx
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], dx
cmp dword [ebp - 0x238], esi
jb 0x461e06
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00406ec9
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x220]
cmp ecx, edi
jbe 0x4618b4
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x461851
lea eax, [ebp - 0x230]
cmp word [eax + ecx*2 - 2], 0x5c
mov esi, 7
jne 0x4618b9
dec ecx
push ecx
push edi
lea eax, [ebp - 0x230]
xor edx, edx
push eax
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x290], edi
mov word [ebp - 0x2a0], dx
call fcn.00406960
lea ecx, [ebp - 0x2a0]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00406280
cmp dword [ebp - 0x28c], 8
jb 0x4618b9
mov edx, dword [ebp - 0x2a0]
push edx
call fcn.00406ec9
add esp, 4
jmp 0x4618b9
mov esi, 7
cmp dword [ebp - 0x238], 8
mov ecx, dword [ebp - 0x24c]
jae 0x4618ce
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x461930
dec eax
push eax
xor ecx, ecx
push edi
lea edx, [ebp - 0x24c]
mov word [ebp - 0x2a0], cx
push edx
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x290], edi
call fcn.00406960
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00406280
cmp dword [ebp - 0x28c], 8
jb 0x461930
mov ecx, dword [ebp - 0x2a0]
push ecx
call fcn.00406ec9
add esp, 4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x461935
sub eax, edx
mov edx, dword [ebp - 0x220]
sar eax, 1
push eax
push ebx
push edx
push edi
lea ecx, [ebp - 0x230]
call fcn.004073b0
test eax, eax
jne 0x4619b8
mov ebx, 8
cmp dword [ebp - 0x21c], ebx
jb 0x461979
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406ec9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], cx
cmp dword [ebp - 0x238], ebx
jb 0x4619a5
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406ec9
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.00401316
mov esp, ebp
pop ebp
ret
push 8
xor eax, eax
push 0x513094
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], edi
mov word [ebp - 0x268], ax
call fcn.00406300
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x268]
mov eax, edi
cmp ebx, 8
jae 0x4619f8
lea eax, [ebp - 0x268]
mov esi, dword [ebp - 0x258]
push esi
push 0
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a410
test eax, eax
je 0x461a9d
mov esi, 8
cmp ebx, esi
jb 0x461a27
push edi
call fcn.00406ec9
add esp, 4
xor edi, edi
xor ecx, ecx
mov ebx, 7
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x258], edi
mov word [ebp - 0x268], cx
cmp dword [ebp - 0x21c], esi
jb 0x461a5a
mov edx, dword [ebp - 0x230]
push edx
call fcn.00406ec9
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], ax
cmp dword [ebp - 0x238], esi
jb 0x461e06
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00406ec9
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.00401316
mov esp, ebp
pop ebp
ret
push 1
push esi
lea edx, [ebp - 0x330]
push edx
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x330], 0x5c
call fcn.0040a410
mov esi, eax
cmp esi, 0xffffffff
jne 0x461b13
mov esi, 8
cmp ebx, esi
jb 0x461ad5
push edi
call fcn.00406ec9
add esp, 4
xor edi, edi
xor eax, eax
mov ebx, 7
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x258], edi
mov word [ebp - 0x268], ax
cmp dword [ebp - 0x21c], esi
jb 0x461b08
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406ec9
add esp, 4
mov dword [ebp - 0x21c], ebx
jmp 0x4617f5
lea ecx, [esi + 1]
cmp ecx, dword [ebp - 0x220]
je 0x461de5
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x461b37
lea eax, [ebp - 0x230]
lea edx, [ebp - 0x330]
push edx
lea ecx, [ebp - 0x230]
lea ebx, [eax + esi*2 + 2]
call fcn.00418690
mov eax, dword [eax]
push eax
push ebx
lea ecx, [ebp - 0x284]
call fcn.0045bf30
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x284]
push edx
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x461e7b
push str.CdmRedirector
lea ecx, [ebp - 0x2a0]
call fcn.00408940
lea eax, [ebp - 0x2a0]
push eax
mov eax, dword [ebp - 0x258]
sub esi, eax
push esi
push eax
lea ecx, [ebp - 0x32c]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00406920
push eax
call fcn.0043dfb0
add esp, 8
test al, al
lea ecx, [ebp - 0x32c]
sete bl
call fcn.0040a2c0
lea ecx, [ebp - 0x2a0]
call fcn.0040a2c0
lea ecx, [ebp - 0x284]
test bl, bl
jne 0x461de0
push 1
push 0
lea edx, [ebp - 0x330]
mov edi, 0x5c
push edx
mov dword [ebp - 0x330], edi
call fcn.0040a410
cmp eax, 0xffffffff
je 0x461dda
inc eax
lea ecx, [ebp - 0x284]
cmp eax, dword [ebp - 0x274]
je 0x461de0
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2bc]
push eax
call fcn.00406920
push 0x512bf0
push 4
push 0
lea ecx, [ebp - 0x24c]
call fcn.0041a790
test eax, eax
jne 0x461c6a
push 0xffffffffffffffff
push 4
lea ecx, [ebp - 0x32c]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00406920
push eax
lea ecx, [ebp - 0x24c]
call fcn.00406280
lea ecx, [ebp - 0x32c]
call fcn.0040a2c0
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x2bc]
push eax
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x461e70
push 1
push 0
lea ecx, [ebp - 0x330]
push ecx
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x330], 0x3a
call fcn.0040a410
mov esi, eax
test esi, esi
je 0x461dcf
cmp esi, 0xffffffff
je 0x461dcf
cmp esi, 1
jbe 0x461cd8
lea edx, [esi - 2]
push edx
lea ecx, [ebp - 0x24c]
call fcn.00418750
cmp word [eax], di
jne 0x461dcf
xor eax, eax
push 4
lea ecx, [esi - 1]
push ecx
lea ecx, [ebp - 0x24c]
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call fcn.00418750
push eax
lea edx, [ebp - 0xc]
push 8
push edx
call fcn.0041a095
add esp, 0x10
test eax, eax
jne 0x461dcf
push 0x104
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x461dcf
cmp eax, 0x104
je 0x461dcf
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x2d8]
call fcn.00408940
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x330], edi
call fcn.00427880
cmp eax, 0xffffffff
je 0x461dc4
inc eax
cmp dword [ebp - 0x2c8], eax
jbe 0x461dc4
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2f4]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.00406920
cmp dword [ebp - 0x2e4], 2
jb 0x461db9
lea edx, [ebp - 0x2f4]
push edx
lea ecx, [ebp - 0x310]
call fcn.00429a10
lea eax, [esi + 1]
cmp dword [ebp - 0x23c], eax
ja 0x461e19
lea ecx, [ebp - 0x310]
call fcn.0040a2c0
lea ecx, [ebp - 0x2f4]
call fcn.0040a2c0
lea ecx, [ebp - 0x2d8]
call fcn.0040a2c0
lea ecx, [ebp - 0x2bc]
call fcn.0040a2c0
lea ecx, [ebp - 0x284]
call fcn.0040a2c0
lea ecx, [ebp - 0x268]
call fcn.0040a2c0
lea ecx, [ebp - 0x230]
call fcn.0040a2c0
lea ecx, [ebp - 0x24c]
call fcn.0040a2c0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.00401316
mov esp, ebp
pop ebp
ret
push eax
lea ecx, [ebp - 0x24c]
call fcn.00418750
push eax
lea ecx, [ebp - 0x310]
call fcn.00429a40
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x2bc]
push ecx
call fcn.0043dfb0
add esp, 8
lea ecx, [ebp - 0x310]
test al, al
je 0x461db4
call fcn.0040a2c0
lea ecx, [ebp - 0x2f4]
call fcn.0040a2c0
lea ecx, [ebp - 0x2d8]
call fcn.0040a2c0
lea ecx, [ebp - 0x2bc]
call fcn.0040a2c0
lea ecx, [ebp - 0x284]
call fcn.0040a2c0
lea ecx, [ebp - 0x268]
call fcn.0040a2c0
lea ecx, [ebp - 0x230]
call fcn.0040a2c0
lea ecx, [ebp - 0x24c]
call fcn.0040a2c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call int.00401316
mov esp, ebp
pop ebp
ret