Function at 0x45c840
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x5246a8]
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 0x45c882
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x24c]
call fcn.00406040
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.004227b0
add esp, 8
test al, al
jne 0x45c942
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.0045b2c0
add esp, 8
test al, al
jne 0x45c942
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x45c8fb
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406d09
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 0x45cf16
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00406d09
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x220]
cmp ecx, edi
jbe 0x45c9c4
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x45c961
lea eax, [ebp - 0x230]
cmp word [eax + ecx*2 - 2], 0x5c
mov esi, 7
jne 0x45c9c9
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.004066a0
lea ecx, [ebp - 0x2a0]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00405fc0
cmp dword [ebp - 0x28c], 8
jb 0x45c9c9
mov edx, dword [ebp - 0x2a0]
push edx
call fcn.00406d09
add esp, 4
jmp 0x45c9c9
mov esi, 7
cmp dword [ebp - 0x238], 8
mov ecx, dword [ebp - 0x24c]
jae 0x45c9de
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x45ca40
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.004066a0
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00405fc0
cmp dword [ebp - 0x28c], 8
jb 0x45ca40
mov ecx, dword [ebp - 0x2a0]
push ecx
call fcn.00406d09
add esp, 4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45ca45
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.004071f0
test eax, eax
jne 0x45cac8
mov ebx, 8
cmp dword [ebp - 0x21c], ebx
jb 0x45ca89
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406d09
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 0x45cab5
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406d09
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
push 8
xor eax, eax
push str.Device_
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], edi
mov word [ebp - 0x268], ax
call fcn.00406040
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x268]
mov eax, edi
cmp ebx, 8
jae 0x45cb08
lea eax, [ebp - 0x268]
mov esi, dword [ebp - 0x258]
push esi
push 0
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a0c0
test eax, eax
je 0x45cbad
mov esi, 8
cmp ebx, esi
jb 0x45cb37
push edi
call fcn.00406d09
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 0x45cb6a
mov edx, dword [ebp - 0x230]
push edx
call fcn.00406d09
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 0x45cf16
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00406d09
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
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.0040a0c0
mov esi, eax
cmp esi, 0xffffffff
jne 0x45cc23
mov esi, 8
cmp ebx, esi
jb 0x45cbe5
push edi
call fcn.00406d09
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 0x45cc18
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406d09
add esp, 4
mov dword [ebp - 0x21c], ebx
jmp 0x45c905
lea ecx, [esi + 1]
cmp ecx, dword [ebp - 0x220]
je 0x45cef5
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x45cc47
lea eax, [ebp - 0x230]
lea edx, [ebp - 0x330]
push edx
lea ecx, [ebp - 0x230]
lea ebx, [eax + esi*2 + 2]
call fcn.0045b0b0
mov eax, dword [eax]
push eax
push ebx
lea ecx, [ebp - 0x284]
call fcn.00450210
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x284]
push edx
call fcn.0045b070
add esp, 8
test al, al
jne 0x45cf8b
push str.CdmRedirector
lea ecx, [ebp - 0x2a0]
call fcn.00408780
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.00406660
push eax
call fcn.0045b070
add esp, 8
test al, al
lea ecx, [ebp - 0x32c]
sete bl
call fcn.00409ff0
lea ecx, [ebp - 0x2a0]
call fcn.00409ff0
lea ecx, [ebp - 0x284]
test bl, bl
jne 0x45cef0
push 1
push 0
lea edx, [ebp - 0x330]
mov edi, 0x5c
push edx
mov dword [ebp - 0x330], edi
call fcn.0040a0c0
cmp eax, 0xffffffff
je 0x45ceea
inc eax
lea ecx, [ebp - 0x284]
cmp eax, dword [ebp - 0x274]
je 0x45cef0
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2bc]
push eax
call fcn.00406660
push 0x4ecf50
push 4
push 0
lea ecx, [ebp - 0x24c]
call fcn.00418fa0
test eax, eax
jne 0x45cd7a
push 0xffffffffffffffff
push 4
lea ecx, [ebp - 0x32c]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00406660
push eax
lea ecx, [ebp - 0x24c]
call fcn.00405fc0
lea ecx, [ebp - 0x32c]
call fcn.00409ff0
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x2bc]
push eax
call fcn.0045b070
add esp, 8
test al, al
jne 0x45cf80
push 1
push 0
lea ecx, [ebp - 0x330]
push ecx
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x330], 0x3a
call fcn.0040a0c0
mov esi, eax
test esi, esi
je 0x45cedf
cmp esi, 0xffffffff
je 0x45cedf
cmp esi, 1
jbe 0x45cde8
lea edx, [esi - 2]
push edx
lea ecx, [ebp - 0x24c]
call fcn.00432b40
cmp word [eax], di
jne 0x45cedf
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.00432b40
push eax
lea edx, [ebp - 0xc]
push 8
push edx
call fcn.0042da68
add esp, 0x10
test eax, eax
jne 0x45cedf
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 0x45cedf
cmp eax, 0x104
je 0x45cedf
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x2d8]
call fcn.00408780
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x330], edi
call fcn.00417850
cmp eax, 0xffffffff
je 0x45ced4
inc eax
cmp dword [ebp - 0x2c8], eax
jbe 0x45ced4
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2f4]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.00406660
cmp dword [ebp - 0x2e4], 2
jb 0x45cec9
lea edx, [ebp - 0x2f4]
push edx
lea ecx, [ebp - 0x310]
call fcn.00421ee0
lea eax, [esi + 1]
cmp dword [ebp - 0x23c], eax
ja 0x45cf29
lea ecx, [ebp - 0x310]
call fcn.00409ff0
lea ecx, [ebp - 0x2f4]
call fcn.00409ff0
lea ecx, [ebp - 0x2d8]
call fcn.00409ff0
lea ecx, [ebp - 0x2bc]
call fcn.00409ff0
lea ecx, [ebp - 0x284]
call fcn.00409ff0
lea ecx, [ebp - 0x268]
call fcn.00409ff0
lea ecx, [ebp - 0x230]
call fcn.00409ff0
lea ecx, [ebp - 0x24c]
call fcn.00409ff0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
push eax
lea ecx, [ebp - 0x24c]
call fcn.00432b40
push eax
lea ecx, [ebp - 0x310]
call fcn.00421f10
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x2bc]
push ecx
call fcn.0045b070
add esp, 8
lea ecx, [ebp - 0x310]
test al, al
je 0x45cec4
call fcn.00409ff0
lea ecx, [ebp - 0x2f4]
call fcn.00409ff0
lea ecx, [ebp - 0x2d8]
call fcn.00409ff0
lea ecx, [ebp - 0x2bc]
call fcn.00409ff0
lea ecx, [ebp - 0x284]
call fcn.00409ff0
lea ecx, [ebp - 0x268]
call fcn.00409ff0
lea ecx, [ebp - 0x230]
call fcn.00409ff0
lea ecx, [ebp - 0x24c]
call fcn.00409ff0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret