Function at 0x46bd20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50882e
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
cmp word [esi], ax
jne 0x46bd84
xor ecx, ecx
jmp 0x46bd9f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46bd90
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x254]
call fcn.004073d0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 2
push eax
push edi
call fcn.0042c8d0
add esp, 8
test al, al
jne 0x46be03
lea eax, [ebp - 0x23c]
push eax
push edi
call fcn.00469d50
add esp, 8
test al, al
jne 0x46be03
xor bl, bl
jmp 0x46c402
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
je 0x46bea8
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x46bea8
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00407940
mov edi, eax
lea eax, [ebp - 0x23c]
cmp eax, edi
je 0x46be91
cmp dword [ebp - 0x228], 8
jb 0x46be68
push dword [ebp - 0x23c]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x228], 7
push edi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
call fcn.00407ae0
cmp dword [ebp - 0x2e8], 8
jb 0x46bea8
push dword [ebp - 0x2fc]
call fcn.0040823e
add esp, 4
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
mov ecx, dword [ebp - 0x244]
cmovae eax, dword [ebp - 0x254]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x46bf45
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x254]
call fcn.00407940
mov edi, eax
lea eax, [ebp - 0x254]
cmp eax, edi
je 0x46bf2e
cmp dword [ebp - 0x240], 8
jb 0x46bf05
push dword [ebp - 0x254]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x240], 7
push edi
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
call fcn.00407ae0
cmp dword [ebp - 0x2e8], 8
jb 0x46bf45
push dword [ebp - 0x2fc]
call fcn.0040823e
add esp, 4
cmp word [esi], 0
jne 0x46bf4f
xor ecx, ecx
jmp 0x46bf63
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46bf54
sub ecx, edx
sar ecx, 1
push ecx
push esi
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x23c]
push 0
call fcn.00408670
test eax, eax
jne 0x46bf83
mov bl, 1
jmp 0x46c402
push 0x5172cc
lea ecx, [ebp - 0x26c]
call fcn.00407370
cmp dword [ebp - 0x258], 8
lea eax, [ebp - 0x26c]
mov edi, dword [ebp - 0x25c]
lea ecx, [ebp - 0x23c]
mov esi, dword [ebp - 0x26c]
cmovae eax, esi
push edi
push 0
push eax
mov byte [ebp - 4], 3
call fcn.0040b680
test eax, eax
jne 0x46c3d1
push 1
push edi
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x5c
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040b680
mov edi, eax
cmp edi, 0xffffffff
je 0x46c3d1
lea ecx, [edi + 1]
cmp ecx, dword [ebp - 0x22c]
je 0x46c3d1
cmp dword [ebp - 0x228], 8
lea esi, [ebp - 0x23c]
lea eax, [ebp - 0x300]
cmovae esi, dword [ebp - 0x23c]
lea ecx, [ebp - 0x23c]
add esi, 2
push eax
lea esi, [esi + edi*2]
call fcn.0041b510
lea ecx, [ebp - 0x284]
push dword [eax]
push esi
call fcn.00465840
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00441880
add esp, 8
test al, al
je 0x46c073
lea ecx, [ebp - 0x284]
mov bl, 1
call fcn.00408450
mov esi, dword [ebp - 0x26c]
jmp 0x46c3d3
push str.CdmRedirector
lea ecx, [ebp - 0x2fc]
call fcn.00407370
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x23c]
sub edi, eax
mov byte [ebp - 4], 5
push edi
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.00407940
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 6
push ecx
push eax
call fcn.00441880
add esp, 8
lea ecx, [ebp - 0x318]
test al, al
sete bl
call fcn.00408450
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 4
call fcn.00408450
test bl, bl
je 0x46c0f2
lea ecx, [ebp - 0x284]
xor bl, bl
call fcn.00408450
mov esi, dword [ebp - 0x26c]
jmp 0x46c3d3
push 1
push 0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x5c
push eax
lea ecx, [ebp - 0x284]
call fcn.0040b680
cmp eax, 0xffffffff
jne 0x46c12f
lea ecx, [ebp - 0x284]
xor bl, bl
call fcn.00408450
mov esi, dword [ebp - 0x26c]
jmp 0x46c3d3
inc eax
cmp eax, dword [ebp - 0x274]
jne 0x46c150
lea ecx, [ebp - 0x284]
xor bl, bl
call fcn.00408450
mov esi, dword [ebp - 0x26c]
jmp 0x46c3d3
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x284]
call fcn.00407940
push 0x517008
push 4
push 0
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 7
call fcn.0041ebb0
test eax, eax
jne 0x46c1ae
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x254]
call fcn.00407940
push eax
lea ecx, [ebp - 0x254]
call fcn.00407aa0
lea ecx, [ebp - 0x318]
call fcn.00408450
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x2b4]
push eax
call fcn.00441880
add esp, 8
test al, al
je 0x46c1cf
mov bl, 1
jmp 0x46c3b3
push 1
push 0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x3a
push eax
lea ecx, [ebp - 0x254]
call fcn.0040b680
mov esi, eax
test esi, esi
je 0x46c3b1
cmp esi, 0xffffffff
je 0x46c3b1
mov ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x254]
cmp esi, 1
jbe 0x46c22b
cmp ecx, 8
lea eax, [ebp - 0x254]
cmovae eax, edx
cmp word [eax + esi*2 - 4], 0x5c
jne 0x46c3b1
xor eax, eax
cmp ecx, 8
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x254]
cmovae eax, edx
push 4
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x18]
push 8
push eax
call fcn.0041e67e
add esp, 0x10
test eax, eax
jne 0x46c3b1
push 0x104
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x46c3b1
cmp eax, 0x104
je 0x46c3b1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00407370
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x224], 0x5c
call fcn.00429030
cmp eax, 0xffffffff
je 0x46c3a2
inc eax
cmp dword [ebp - 0x28c], eax
jbe 0x46c3a2
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00407940
cmp dword [ebp - 0x2bc], 2
mov byte [ebp - 4], 9
jae 0x46c318
lea ecx, [ebp - 0x2cc]
xor bl, bl
call fcn.00408450
lea ecx, [ebp - 0x29c]
call fcn.00408450
jmp 0x46c3b3
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00408420
lea eax, [esi + 1]
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x244], eax
jbe 0x46c37d
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
lea ecx, [ebp - 0x2e4]
cmovae eax, dword [ebp - 0x254]
lea eax, [eax + esi*2]
add eax, 2
push eax
call fcn.0042b180
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2b4]
push eax
call fcn.00441880
add esp, 8
test al, al
je 0x46c37d
mov bl, 1
jmp 0x46c37f
xor bl, bl
lea ecx, [ebp - 0x2e4]
call fcn.00408450
lea ecx, [ebp - 0x2cc]
call fcn.00408450
lea ecx, [ebp - 0x29c]
call fcn.00408450
jmp 0x46c3b3
lea ecx, [ebp - 0x29c]
xor bl, bl
call fcn.00408450
jmp 0x46c3b3
xor bl, bl
lea ecx, [ebp - 0x2b4]
call fcn.00408450
lea ecx, [ebp - 0x284]
call fcn.00408450
mov esi, dword [ebp - 0x26c]
jmp 0x46c3d3
xor bl, bl
cmp dword [ebp - 0x258], 8
jb 0x46c3e5
push esi
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], 0
mov word [ebp - 0x26c], ax
cmp dword [ebp - 0x228], 8
jb 0x46c419
push dword [ebp - 0x23c]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x228], 7
cmp dword [ebp - 0x240], 8
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
jb 0x46c44d
push dword [ebp - 0x254]
call fcn.0040823e
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret