Function at 0x464970
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x553948]
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 0x4649b2
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x24c]
call fcn.004063e0
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.0042d6d0
add esp, 8
test al, al
jne 0x464a72
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.00462a90
add esp, 8
test al, al
jne 0x464a72
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x464a2b
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406fa9
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 0x465046
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00406fa9
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x220]
cmp ecx, edi
jbe 0x464af4
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x464a91
lea eax, [ebp - 0x230]
cmp word [eax + ecx*2 - 2], 0x5c
mov esi, 7
jne 0x464af9
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.00406a40
lea ecx, [ebp - 0x2a0]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00406360
cmp dword [ebp - 0x28c], 8
jb 0x464af9
mov edx, dword [ebp - 0x2a0]
push edx
call fcn.00406fa9
add esp, 4
jmp 0x464af9
mov esi, 7
cmp dword [ebp - 0x238], 8
mov ecx, dword [ebp - 0x24c]
jae 0x464b0e
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x464b70
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.00406a40
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00406360
cmp dword [ebp - 0x28c], 8
jb 0x464b70
mov ecx, dword [ebp - 0x2a0]
push ecx
call fcn.00406fa9
add esp, 4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x464b75
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.00407490
test eax, eax
jne 0x464bf8
mov ebx, 8
cmp dword [ebp - 0x21c], ebx
jb 0x464bb9
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406fa9
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 0x464be5
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406fa9
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
push 8
xor eax, eax
push 0x517204
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], edi
mov word [ebp - 0x268], ax
call fcn.004063e0
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x268]
mov eax, edi
cmp ebx, 8
jae 0x464c38
lea eax, [ebp - 0x268]
mov esi, dword [ebp - 0x258]
push esi
push 0
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a590
test eax, eax
je 0x464cdd
mov esi, 8
cmp ebx, esi
jb 0x464c67
push edi
call fcn.00406fa9
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 0x464c9a
mov edx, dword [ebp - 0x230]
push edx
call fcn.00406fa9
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 0x465046
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00406fa9
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.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.0040a590
mov esi, eax
cmp esi, 0xffffffff
jne 0x464d53
mov esi, 8
cmp ebx, esi
jb 0x464d15
push edi
call fcn.00406fa9
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 0x464d48
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406fa9
add esp, 4
mov dword [ebp - 0x21c], ebx
jmp 0x464a35
lea ecx, [esi + 1]
cmp ecx, dword [ebp - 0x220]
je 0x465025
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x464d77
lea eax, [ebp - 0x230]
lea edx, [ebp - 0x330]
push edx
lea ecx, [ebp - 0x230]
lea ebx, [eax + esi*2 + 2]
call fcn.00418820
mov eax, dword [eax]
push eax
push ebx
lea ecx, [ebp - 0x284]
call fcn.0045fb50
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x284]
push edx
call fcn.004407c0
add esp, 8
test al, al
jne 0x4650bb
push str.CdmRedirector
lea ecx, [ebp - 0x2a0]
call fcn.00408ac0
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.00406a00
push eax
call fcn.004407c0
add esp, 8
test al, al
lea ecx, [ebp - 0x32c]
sete bl
call fcn.0040a440
lea ecx, [ebp - 0x2a0]
call fcn.0040a440
lea ecx, [ebp - 0x284]
test bl, bl
jne 0x465020
push 1
push 0
lea edx, [ebp - 0x330]
mov edi, 0x5c
push edx
mov dword [ebp - 0x330], edi
call fcn.0040a590
cmp eax, 0xffffffff
je 0x46501a
inc eax
lea ecx, [ebp - 0x284]
cmp eax, dword [ebp - 0x274]
je 0x465020
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2bc]
push eax
call fcn.00406a00
push 0x516d60
push 4
push 0
lea ecx, [ebp - 0x24c]
call fcn.0041aae0
test eax, eax
jne 0x464eaa
push 0xffffffffffffffff
push 4
lea ecx, [ebp - 0x32c]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00406a00
push eax
lea ecx, [ebp - 0x24c]
call fcn.00406360
lea ecx, [ebp - 0x32c]
call fcn.0040a440
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x2bc]
push eax
call fcn.004407c0
add esp, 8
test al, al
jne 0x4650b0
push 1
push 0
lea ecx, [ebp - 0x330]
push ecx
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x330], 0x3a
call fcn.0040a590
mov esi, eax
test esi, esi
je 0x46500f
cmp esi, 0xffffffff
je 0x46500f
cmp esi, 1
jbe 0x464f18
lea edx, [esi - 2]
push edx
lea ecx, [ebp - 0x24c]
call fcn.004188e0
cmp word [eax], di
jne 0x46500f
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.004188e0
push eax
lea edx, [ebp - 0xc]
push 8
push edx
call fcn.0041a605
add esp, 0x10
test eax, eax
jne 0x46500f
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 0x46500f
cmp eax, 0x104
je 0x46500f
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x2d8]
call fcn.00408ac0
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x330], edi
call fcn.00429d60
cmp eax, 0xffffffff
je 0x465004
inc eax
cmp dword [ebp - 0x2c8], eax
jbe 0x465004
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2f4]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.00406a00
cmp dword [ebp - 0x2e4], 2
jb 0x464ff9
lea edx, [ebp - 0x2f4]
push edx
lea ecx, [ebp - 0x310]
call fcn.0042bef0
lea eax, [esi + 1]
cmp dword [ebp - 0x23c], eax
ja 0x465059
lea ecx, [ebp - 0x310]
call fcn.0040a440
lea ecx, [ebp - 0x2f4]
call fcn.0040a440
lea ecx, [ebp - 0x2d8]
call fcn.0040a440
lea ecx, [ebp - 0x2bc]
call fcn.0040a440
lea ecx, [ebp - 0x284]
call fcn.0040a440
lea ecx, [ebp - 0x268]
call fcn.0040a440
lea ecx, [ebp - 0x230]
call fcn.0040a440
lea ecx, [ebp - 0x24c]
call fcn.0040a440
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
push eax
lea ecx, [ebp - 0x24c]
call fcn.004188e0
push eax
lea ecx, [ebp - 0x310]
call fcn.0042bf20
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x2bc]
push ecx
call fcn.004407c0
add esp, 8
lea ecx, [ebp - 0x310]
test al, al
je 0x464ff4
call fcn.0040a440
lea ecx, [ebp - 0x2f4]
call fcn.0040a440
lea ecx, [ebp - 0x2d8]
call fcn.0040a440
lea ecx, [ebp - 0x2bc]
call fcn.0040a440
lea ecx, [ebp - 0x284]
call fcn.0040a440
lea ecx, [ebp - 0x268]
call fcn.0040a440
lea ecx, [ebp - 0x230]
call fcn.0040a440
lea ecx, [ebp - 0x24c]
call fcn.0040a440
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret