Function at 0x479890
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52398e
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x579630]
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 0x4798f4
xor ecx, ecx
jmp 0x47990f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479900
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x254]
call fcn.00407750
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.00430460
add esp, 8
test al, al
jne 0x479973
lea eax, [ebp - 0x23c]
push eax
push edi
call fcn.00476600
add esp, 8
test al, al
jne 0x479973
xor bl, bl
jmp 0x479f72
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
je 0x479a18
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x479a18
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00407cc0
mov edi, eax
lea eax, [ebp - 0x23c]
cmp eax, edi
je 0x479a01
cmp dword [ebp - 0x228], 8
jb 0x4799d8
push dword [ebp - 0x23c]
call fcn.004085be
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.00407e60
cmp dword [ebp - 0x2e8], 8
jb 0x479a18
push dword [ebp - 0x2fc]
call fcn.004085be
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 0x479ab5
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x254]
call fcn.00407cc0
mov edi, eax
lea eax, [ebp - 0x254]
cmp eax, edi
je 0x479a9e
cmp dword [ebp - 0x240], 8
jb 0x479a75
push dword [ebp - 0x254]
call fcn.004085be
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.00407e60
cmp dword [ebp - 0x2e8], 8
jb 0x479ab5
push dword [ebp - 0x2fc]
call fcn.004085be
add esp, 4
cmp word [esi], 0
jne 0x479abf
xor ecx, ecx
jmp 0x479ad3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479ac4
sub ecx, edx
sar ecx, 1
push ecx
push esi
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x23c]
push 0
call fcn.004089f0
test eax, eax
jne 0x479af3
mov bl, 1
jmp 0x479f72
push 0x533f24
lea ecx, [ebp - 0x26c]
call fcn.004076f0
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.0040cdd0
test eax, eax
jne 0x479f41
push 1
push edi
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x5c
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040cdd0
mov edi, eax
cmp edi, 0xffffffff
je 0x479f41
lea ecx, [edi + 1]
cmp ecx, dword [ebp - 0x22c]
je 0x479f41
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.004216e0
lea ecx, [ebp - 0x284]
push dword [eax]
push esi
call fcn.00471800
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00445c30
add esp, 8
test al, al
je 0x479be3
lea ecx, [ebp - 0x284]
mov bl, 1
call fcn.004087d0
mov esi, dword [ebp - 0x26c]
jmp 0x479f43
push str.CdmRedirector
lea ecx, [ebp - 0x2fc]
call fcn.004076f0
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.00407cc0
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 6
push ecx
push eax
call fcn.00445c30
add esp, 8
lea ecx, [ebp - 0x318]
test al, al
sete bl
call fcn.004087d0
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 4
call fcn.004087d0
test bl, bl
je 0x479c62
lea ecx, [ebp - 0x284]
xor bl, bl
call fcn.004087d0
mov esi, dword [ebp - 0x26c]
jmp 0x479f43
push 1
push 0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x5c
push eax
lea ecx, [ebp - 0x284]
call fcn.0040cdd0
cmp eax, 0xffffffff
jne 0x479c9f
lea ecx, [ebp - 0x284]
xor bl, bl
call fcn.004087d0
mov esi, dword [ebp - 0x26c]
jmp 0x479f43
inc eax
cmp eax, dword [ebp - 0x274]
jne 0x479cc0
lea ecx, [ebp - 0x284]
xor bl, bl
call fcn.004087d0
mov esi, dword [ebp - 0x26c]
jmp 0x479f43
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x284]
call fcn.00407cc0
push 0x533c18
push 4
push 0
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 7
call fcn.004247d0
test eax, eax
jne 0x479d1e
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x254]
call fcn.00407cc0
push eax
lea ecx, [ebp - 0x254]
call fcn.00407e20
lea ecx, [ebp - 0x318]
call fcn.004087d0
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x2b4]
push eax
call fcn.00445c30
add esp, 8
test al, al
je 0x479d3f
mov bl, 1
jmp 0x479f23
push 1
push 0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x3a
push eax
lea ecx, [ebp - 0x254]
call fcn.0040cdd0
mov esi, eax
test esi, esi
je 0x479f21
cmp esi, 0xffffffff
je 0x479f21
mov ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x254]
cmp esi, 1
jbe 0x479d9b
cmp ecx, 8
lea eax, [ebp - 0x254]
cmovae eax, edx
cmp word [eax + esi*2 - 4], 0x5c
jne 0x479f21
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.004241e2
add esp, 0x10
test eax, eax
jne 0x479f21
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 0x479f21
cmp eax, 0x104
je 0x479f21
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x29c]
call fcn.004076f0
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.0042c9f0
cmp eax, 0xffffffff
je 0x479f12
inc eax
cmp dword [ebp - 0x28c], eax
jbe 0x479f12
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00407cc0
cmp dword [ebp - 0x2bc], 2
mov byte [ebp - 4], 9
jae 0x479e88
lea ecx, [ebp - 0x2cc]
xor bl, bl
call fcn.004087d0
lea ecx, [ebp - 0x29c]
call fcn.004087d0
jmp 0x479f23
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004087a0
lea eax, [esi + 1]
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x244], eax
jbe 0x479eed
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.0042ec80
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2b4]
push eax
call fcn.00445c30
add esp, 8
test al, al
je 0x479eed
mov bl, 1
jmp 0x479eef
xor bl, bl
lea ecx, [ebp - 0x2e4]
call fcn.004087d0
lea ecx, [ebp - 0x2cc]
call fcn.004087d0
lea ecx, [ebp - 0x29c]
call fcn.004087d0
jmp 0x479f23
lea ecx, [ebp - 0x29c]
xor bl, bl
call fcn.004087d0
jmp 0x479f23
xor bl, bl
lea ecx, [ebp - 0x2b4]
call fcn.004087d0
lea ecx, [ebp - 0x284]
call fcn.004087d0
mov esi, dword [ebp - 0x26c]
jmp 0x479f43
xor bl, bl
cmp dword [ebp - 0x258], 8
jb 0x479f55
push esi
call fcn.004085be
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 0x479f89
push dword [ebp - 0x23c]
call fcn.004085be
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 0x479fbd
push dword [ebp - 0x254]
call fcn.004085be
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.00401590
mov esp, ebp
pop ebp
ret