Function at 0x45c970
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x5256a8]
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 0x45c9b2
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x24c]
call fcn.00406030
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 0x45ca72
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.0045b3f0
add esp, 8
test al, al
jne 0x45ca72
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x45ca2b
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406cf9
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 0x45d046
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00406cf9
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 0x45caf4
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x45ca91
lea eax, [ebp - 0x230]
cmp word [eax + ecx*2 - 2], 0x5c
mov esi, 7
jne 0x45caf9
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.00406690
lea ecx, [ebp - 0x2a0]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00405fb0
cmp dword [ebp - 0x28c], 8
jb 0x45caf9
mov edx, dword [ebp - 0x2a0]
push edx
call fcn.00406cf9
add esp, 4
jmp 0x45caf9
mov esi, 7
cmp dword [ebp - 0x238], 8
mov ecx, dword [ebp - 0x24c]
jae 0x45cb0e
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x45cb70
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.00406690
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00405fb0
cmp dword [ebp - 0x28c], 8
jb 0x45cb70
mov ecx, dword [ebp - 0x2a0]
push ecx
call fcn.00406cf9
add esp, 4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45cb75
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.004071e0
test eax, eax
jne 0x45cbf8
mov ebx, 8
cmp dword [ebp - 0x21c], ebx
jb 0x45cbb9
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406cf9
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 0x45cbe5
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406cf9
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.00406030
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x268]
mov eax, edi
cmp ebx, 8
jae 0x45cc38
lea eax, [ebp - 0x268]
mov esi, dword [ebp - 0x258]
push esi
push 0
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a0b0
test eax, eax
je 0x45ccdd
mov esi, 8
cmp ebx, esi
jb 0x45cc67
push edi
call fcn.00406cf9
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 0x45cc9a
mov edx, dword [ebp - 0x230]
push edx
call fcn.00406cf9
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 0x45d046
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00406cf9
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.0040a0b0
mov esi, eax
cmp esi, 0xffffffff
jne 0x45cd53
mov esi, 8
cmp ebx, esi
jb 0x45cd15
push edi
call fcn.00406cf9
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 0x45cd48
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406cf9
add esp, 4
mov dword [ebp - 0x21c], ebx
jmp 0x45ca35
lea ecx, [esi + 1]
cmp ecx, dword [ebp - 0x220]
je 0x45d025
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x45cd77
lea eax, [ebp - 0x230]
lea edx, [ebp - 0x330]
push edx
lea ecx, [ebp - 0x230]
lea ebx, [eax + esi*2 + 2]
call fcn.00445830
mov eax, dword [eax]
push eax
push ebx
lea ecx, [ebp - 0x284]
call fcn.00450310
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x284]
push edx
call fcn.0045b1d0
add esp, 8
test al, al
jne 0x45d0bb
push str.CdmRedirector
lea ecx, [ebp - 0x2a0]
call fcn.00408770
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.00406650
push eax
call fcn.0045b1d0
add esp, 8
test al, al
lea ecx, [ebp - 0x32c]
sete bl
call fcn.00409fe0
lea ecx, [ebp - 0x2a0]
call fcn.00409fe0
lea ecx, [ebp - 0x284]
test bl, bl
jne 0x45d020
push 1
push 0
lea edx, [ebp - 0x330]
mov edi, 0x5c
push edx
mov dword [ebp - 0x330], edi
call fcn.0040a0b0
cmp eax, 0xffffffff
je 0x45d01a
inc eax
lea ecx, [ebp - 0x284]
cmp eax, dword [ebp - 0x274]
je 0x45d020
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2bc]
push eax
call fcn.00406650
push 0x4edf50
push 4
push 0
lea ecx, [ebp - 0x24c]
call fcn.00418fa0
test eax, eax
jne 0x45ceaa
push 0xffffffffffffffff
push 4
lea ecx, [ebp - 0x32c]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00406650
push eax
lea ecx, [ebp - 0x24c]
call fcn.00405fb0
lea ecx, [ebp - 0x32c]
call fcn.00409fe0
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x2bc]
push eax
call fcn.0045b1d0
add esp, 8
test al, al
jne 0x45d0b0
push 1
push 0
lea ecx, [ebp - 0x330]
push ecx
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x330], 0x3a
call fcn.0040a0b0
mov esi, eax
test esi, esi
je 0x45d00f
cmp esi, 0xffffffff
je 0x45d00f
cmp esi, 1
jbe 0x45cf18
lea edx, [esi - 2]
push edx
lea ecx, [ebp - 0x24c]
call fcn.00432b40
cmp word [eax], di
jne 0x45d00f
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 0x45d00f
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 0x45d00f
cmp eax, 0x104
je 0x45d00f
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x2d8]
call fcn.00408770
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 0x45d004
inc eax
cmp dword [ebp - 0x2c8], eax
jbe 0x45d004
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2f4]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.00406650
cmp dword [ebp - 0x2e4], 2
jb 0x45cff9
lea edx, [ebp - 0x2f4]
push edx
lea ecx, [ebp - 0x310]
call fcn.00421ee0
lea eax, [esi + 1]
cmp dword [ebp - 0x23c], eax
ja 0x45d059
lea ecx, [ebp - 0x310]
call fcn.00409fe0
lea ecx, [ebp - 0x2f4]
call fcn.00409fe0
lea ecx, [ebp - 0x2d8]
call fcn.00409fe0
lea ecx, [ebp - 0x2bc]
call fcn.00409fe0
lea ecx, [ebp - 0x284]
call fcn.00409fe0
lea ecx, [ebp - 0x268]
call fcn.00409fe0
lea ecx, [ebp - 0x230]
call fcn.00409fe0
lea ecx, [ebp - 0x24c]
call fcn.00409fe0
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.0045b1d0
add esp, 8
lea ecx, [ebp - 0x310]
test al, al
je 0x45cff4
call fcn.00409fe0
lea ecx, [ebp - 0x2f4]
call fcn.00409fe0
lea ecx, [ebp - 0x2d8]
call fcn.00409fe0
lea ecx, [ebp - 0x2bc]
call fcn.00409fe0
lea ecx, [ebp - 0x284]
call fcn.00409fe0
lea ecx, [ebp - 0x268]
call fcn.00409fe0
lea ecx, [ebp - 0x230]
call fcn.00409fe0
lea ecx, [ebp - 0x24c]
call fcn.00409fe0
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