Function at 0x45b7a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x522638]
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 0x45b7e2
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x24c]
call fcn.00405fe0
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.00429130
add esp, 8
test al, al
jne 0x45b8a2
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.0045a200
add esp, 8
test al, al
jne 0x45b8a2
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x45b85b
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406ca9
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 0x45be76
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00406ca9
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 0x45b924
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x45b8c1
lea eax, [ebp - 0x230]
cmp word [eax + ecx*2 - 2], 0x5c
mov esi, 7
jne 0x45b929
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.00406640
lea ecx, [ebp - 0x2a0]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00405f60
cmp dword [ebp - 0x28c], 8
jb 0x45b929
mov edx, dword [ebp - 0x2a0]
push edx
call fcn.00406ca9
add esp, 4
jmp 0x45b929
mov esi, 7
cmp dword [ebp - 0x238], 8
mov ecx, dword [ebp - 0x24c]
jae 0x45b93e
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x45b9a0
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.00406640
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00405f60
cmp dword [ebp - 0x28c], 8
jb 0x45b9a0
mov ecx, dword [ebp - 0x2a0]
push ecx
call fcn.00406ca9
add esp, 4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45b9a5
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.00407190
test eax, eax
jne 0x45ba28
mov ebx, 8
cmp dword [ebp - 0x21c], ebx
jb 0x45b9e9
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406ca9
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 0x45ba15
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406ca9
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 0x4eaff4
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], edi
mov word [ebp - 0x268], ax
call fcn.00405fe0
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x268]
mov eax, edi
cmp ebx, 8
jae 0x45ba68
lea eax, [ebp - 0x268]
mov esi, dword [ebp - 0x258]
push esi
push 0
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a060
test eax, eax
je 0x45bb0d
mov esi, 8
cmp ebx, esi
jb 0x45ba97
push edi
call fcn.00406ca9
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 0x45baca
mov edx, dword [ebp - 0x230]
push edx
call fcn.00406ca9
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 0x45be76
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00406ca9
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.0040a060
mov esi, eax
cmp esi, 0xffffffff
jne 0x45bb83
mov esi, 8
cmp ebx, esi
jb 0x45bb45
push edi
call fcn.00406ca9
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 0x45bb78
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406ca9
add esp, 4
mov dword [ebp - 0x21c], ebx
jmp 0x45b865
lea ecx, [esi + 1]
cmp ecx, dword [ebp - 0x220]
je 0x45be55
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x45bba7
lea eax, [ebp - 0x230]
lea edx, [ebp - 0x330]
push edx
lea ecx, [ebp - 0x230]
lea ebx, [eax + esi*2 + 2]
call fcn.00459ff0
mov eax, dword [eax]
push eax
push ebx
lea ecx, [ebp - 0x284]
call fcn.00456600
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x284]
push edx
call fcn.00459fb0
add esp, 8
test al, al
jne 0x45beeb
push str.CdmRedirector
lea ecx, [ebp - 0x2a0]
call fcn.00408720
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.00406600
push eax
call fcn.00459fb0
add esp, 8
test al, al
lea ecx, [ebp - 0x32c]
sete bl
call fcn.00409f90
lea ecx, [ebp - 0x2a0]
call fcn.00409f90
lea ecx, [ebp - 0x284]
test bl, bl
jne 0x45be50
push 1
push 0
lea edx, [ebp - 0x330]
mov edi, 0x5c
push edx
mov dword [ebp - 0x330], edi
call fcn.0040a060
cmp eax, 0xffffffff
je 0x45be4a
inc eax
lea ecx, [ebp - 0x284]
cmp eax, dword [ebp - 0x274]
je 0x45be50
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2bc]
push eax
call fcn.00406600
push 0x4eaee0
push 4
push 0
lea ecx, [ebp - 0x24c]
call fcn.00421400
test eax, eax
jne 0x45bcda
push 0xffffffffffffffff
push 4
lea ecx, [ebp - 0x32c]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00406600
push eax
lea ecx, [ebp - 0x24c]
call fcn.00405f60
lea ecx, [ebp - 0x32c]
call fcn.00409f90
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x2bc]
push eax
call fcn.00459fb0
add esp, 8
test al, al
jne 0x45bee0
push 1
push 0
lea ecx, [ebp - 0x330]
push ecx
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x330], 0x3a
call fcn.0040a060
mov esi, eax
test esi, esi
je 0x45be3f
cmp esi, 0xffffffff
je 0x45be3f
cmp esi, 1
jbe 0x45bd48
lea edx, [esi - 2]
push edx
lea ecx, [ebp - 0x24c]
call fcn.00439440
cmp word [eax], di
jne 0x45be3f
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.00439440
push eax
lea edx, [ebp - 0xc]
push 8
push edx
call fcn.00433d88
add esp, 0x10
test eax, eax
jne 0x45be3f
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 0x45be3f
cmp eax, 0x104
je 0x45be3f
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x2d8]
call fcn.00408720
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x330], edi
call fcn.0041fb70
cmp eax, 0xffffffff
je 0x45be34
inc eax
cmp dword [ebp - 0x2c8], eax
jbe 0x45be34
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2f4]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.00406600
cmp dword [ebp - 0x2e4], 2
jb 0x45be29
lea edx, [ebp - 0x2f4]
push edx
lea ecx, [ebp - 0x310]
call fcn.00428860
lea eax, [esi + 1]
cmp dword [ebp - 0x23c], eax
ja 0x45be89
lea ecx, [ebp - 0x310]
call fcn.00409f90
lea ecx, [ebp - 0x2f4]
call fcn.00409f90
lea ecx, [ebp - 0x2d8]
call fcn.00409f90
lea ecx, [ebp - 0x2bc]
call fcn.00409f90
lea ecx, [ebp - 0x284]
call fcn.00409f90
lea ecx, [ebp - 0x268]
call fcn.00409f90
lea ecx, [ebp - 0x230]
call fcn.00409f90
lea ecx, [ebp - 0x24c]
call fcn.00409f90
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.00439440
push eax
lea ecx, [ebp - 0x310]
call fcn.00428890
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x2bc]
push ecx
call fcn.00459fb0
add esp, 8
lea ecx, [ebp - 0x310]
test al, al
je 0x45be24
call fcn.00409f90
lea ecx, [ebp - 0x2f4]
call fcn.00409f90
lea ecx, [ebp - 0x2d8]
call fcn.00409f90
lea ecx, [ebp - 0x2bc]
call fcn.00409f90
lea ecx, [ebp - 0x284]
call fcn.00409f90
lea ecx, [ebp - 0x268]
call fcn.00409f90
lea ecx, [ebp - 0x230]
call fcn.00409f90
lea ecx, [ebp - 0x24c]
call fcn.00409f90
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