Function at 0x4ad5f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a420e
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xor eax, eax
mov esi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ad645
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x250]
call fcn.00409db0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 1
push eax
push esi
call fcn.00433a80
add esp, 8
test al, al
jne 0x4ad6bc
lea eax, [ebp - 0x238]
push eax
push esi
call fcn.004aa1b0
add esp, 8
test al, al
jne 0x4ad6bc
mov byte [ebp - 0x2e5], al
jmp 0x4ad97a
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x4ad7a0
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x4ad7a0
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x238]
call fcn.00410b80
mov esi, eax
lea eax, [ebp - 0x238]
cmp eax, esi
je 0x4ad771
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x4ad730
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.0040a5e0
mov dword [ebp - 0x228], 0
xor eax, eax
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x228], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, dword [ebp - 0x254]
mov byte [ebp - 4], 5
cmp eax, 8
jb 0x4ad793
inc eax
lea ecx, [ebp - 0x268]
push eax
push dword [ebp - 0x268]
call fcn.0040a5e0
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x268], ax
mov edx, dword [ebp - 0x23c]
lea eax, [ebp - 0x250]
mov esi, dword [ebp - 0x240]
cmp edx, 8
cmovae eax, dword [ebp - 0x250]
cmp word [eax + esi*2 - 2], 0x5c
jne 0x4ad877
xor eax, eax
mov dword [ebp - 0x258], 0
lea ecx, [esi - 1]
mov word [ebp - 0x268], ax
cmp esi, ecx
mov dword [ebp - 0x26c], ecx
lea eax, [ebp - 0x250]
mov dword [ebp - 0x254], 7
cmovb ecx, esi
mov dword [ebp - 0x26c], esi
cmp edx, 8
push ecx
cmovae eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x268]
push eax
call fcn.00409db0
mov eax, dword [ebp - 0x23c]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x4ad838
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.0040a5e0
movups xmm0, xmmword [ebp - 0x268]
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [ebp - 0x258]
movq qword [ebp - 0x240], xmm0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x268], ax
push edi
lea ecx, [ebp - 0x238]
call fcn.0045e90a
test eax, eax
jne 0x4ad893
mov byte [ebp - 0x2e5], 1
jmp 0x4ad97a
push 8
xor eax, eax
mov dword [ebp - 0x258], 0
push 0x5c4980
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
call fcn.00409db0
mov eax, dword [ebp - 0x254]
lea edi, [ebp - 0x268]
mov esi, dword [ebp - 0x258]
lea ecx, [ebp - 0x238]
mov edx, dword [ebp - 0x228]
cmp eax, 8
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x268]
cmovae edi, eax
cmp dword [ebp - 0x224], 8
mov byte [ebp - 4], 0xa
cmovae ecx, dword [ebp - 0x238]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x2f0], edi
mov dword [ebp - 0x2ec], ecx
cmp esi, edx
ja 0x4ad951
test esi, esi
je 0x4ada3c
mov eax, edx
sub eax, esi
inc eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0x2f4], eax
sub eax, ecx
sar eax, 1
je 0x4ad951
movzx edx, word [edi]
nop dword [eax]
cmp word [ecx], dx
je 0x4ada03
add ecx, 2
sub eax, 1
jne 0x4ad940
mov byte [ebp - 0x2e5], 0
mov eax, dword [ebp - 0x2f8]
mov byte [ebp - 4], 0x42
cmp eax, 8
jb 0x4ad97a
inc eax
lea ecx, [ebp - 0x268]
push eax
push dword [ebp - 0x26c]
call fcn.0040a5e0
mov edi, dword [ebp - 0x224]
mov byte [ebp - 4], 0x43
cmp edi, 8
jb 0x4ad99e
lea eax, [edi + 1]
push eax
push dword [ebp - 0x238]
lea ecx, [ebp - 0x238]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 4], 0x44
cmp edx, 8
jb 0x4ad9e2
lea ecx, [edx + 1]
push ecx
push dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
call fcn.0040a5e0
mov al, byte [ebp - 0x2e5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call int.004016cd
mov esp, ebp
pop ebp
ret
mov edx, edi
test esi, esi
je 0x4ada22
mov edi, ecx
sub edi, dword [ebp - 0x2f0]
mov ax, word [edx + edi]
cmp ax, word [edx]
jne 0x4ada78
add edx, 2
sub esi, 1
jne 0x4ada11
sub ecx, dword [ebp - 0x2ec]
sar ecx, 1
jne 0x4ad951
mov esi, dword [ebp - 0x258]
mov edx, dword [ebp - 0x228]
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
cmovae ecx, dword [ebp - 0x238]
cmp esi, edx
jae 0x4ad951
mov eax, edx
sub eax, esi
lea esi, [ecx + esi*2]
je 0x4ad951
cmp word [esi], 0x5c
je 0x4ada92
add esi, 2
sub eax, 1
jne 0x4ada65
jmp 0x4ad951
mov edi, dword [ebp - 0x2f0]
add ecx, 2
mov esi, dword [ebp - 0x258]
mov eax, dword [ebp - 0x2f4]
jmp 0x4ad930
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4ad951
lea eax, [esi + 1]
cmp eax, edx
je 0x4ad951
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
mov ecx, dword [ebp - 0x228]
lea edx, [ebp - 0x2e5]
cmovae eax, dword [ebp - 0x238]
push edx
lea ecx, [eax + ecx*2]
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x29c]
lea eax, [eax + esi*2]
add eax, 2
push eax
call fcn.004a6bd0
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.00461390
add esp, 8
test al, al
je 0x4adb23
lea ecx, [ebp - 0x29c]
mov byte [ebp - 0x2e5], 1
call fcn.0040a580
jmp 0x4ad958
push str.CdmRedirector
lea ecx, [ebp - 0x284]
call fcn.004102c0
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x238]
sub esi, eax
mov byte [ebp - 4], 0x18
push esi
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.00410b80
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0x19
push ecx
push eax
call fcn.00461390
add esp, 8
mov byte [ebp - 0x2e5], al
lea ecx, [ebp - 0x310]
call fcn.0040a580
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0x14
call fcn.0040a580
cmp byte [ebp - 0x2e5], 0
jne 0x4adba7
lea ecx, [ebp - 0x29c]
mov byte [ebp - 0x2e5], 0
call fcn.0040a580
jmp 0x4ad958
push 0
push 0x5c
lea ecx, [ebp - 0x29c]
call fcn.00431d40
cmp eax, 0xffffffff
jne 0x4adbd2
lea ecx, [ebp - 0x29c]
mov byte [ebp - 0x2e5], 0
call fcn.0040a580
jmp 0x4ad958
inc eax
cmp eax, dword [ebp - 0x28c]
jne 0x4adbf2
lea ecx, [ebp - 0x29c]
mov byte [ebp - 0x2e5], 0
call fcn.0040a580
jmp 0x4ad958
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00410b80
push 0x5c45d0
push 4
push 0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x23
call fcn.0042ef80
test eax, eax
jne 0x4adc50
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x250]
call fcn.00410b80
push eax
lea ecx, [ebp - 0x250]
call fcn.00410e40
lea ecx, [ebp - 0x310]
call fcn.0040a580
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x2e4]
push eax
call fcn.00461390
add esp, 8
test al, al
je 0x4adc76
mov byte [ebp - 0x2e5], 1
jmp 0x4ade74
mov edx, dword [ebp - 0x23c]
lea ecx, [ebp - 0x250]
mov edi, dword [ebp - 0x250]
cmp edx, 8
mov eax, dword [ebp - 0x240]
cmovae ecx, edi
test eax, eax
je 0x4ade6d
mov esi, ecx
nop
cmp word [esi], 0x3a
je 0x4adcb3
add esi, 2
sub eax, 1
jne 0x4adca0
jmp 0x4ade6d
sub esi, ecx
sar esi, 1
je 0x4ade6d
cmp esi, 0xffffffff
je 0x4ade6d
cmp esi, 1
jbe 0x4adce3
cmp edx, 8
lea eax, [ebp - 0x250]
cmovae eax, edi
cmp word [eax + esi*2 - 4], 0x5c
jne 0x4ade6d
cmp edx, 8
lea eax, [ebp - 0x250]
xorps xmm0, xmm0
cmovae eax, edi
movlpd qword [ebp - 0x18], xmm0
lea eax, [eax + esi*2]
add eax, 0xfffffffe
je 0x4ade5d
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x4ade6d
cmp eax, 0x104
je 0x4ade6d
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.004102c0
push 0xffffffffffffffff
push 0x5c
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 0x33
call fcn.0049d300
cmp eax, 0xffffffff
je 0x4ade49
inc eax
cmp dword [ebp - 0x2a4], eax
jbe 0x4ade49
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x2b4]
lfence
call fcn.00410b80
cmp dword [ebp - 0x274], 2
mov byte [ebp - 4], 0x37
jae 0x4addb4
lea ecx, [ebp - 0x284]
mov byte [ebp - 0x2e5], 0
call fcn.0040a580
lea ecx, [ebp - 0x2b4]
call fcn.0040a580
jmp 0x4ade74
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.0040b170
lea eax, [esi + 1]
mov byte [ebp - 4], 0x3b
cmp dword [ebp - 0x240], eax
jbe 0x4ade1f
lfence
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x2cc]
cmovae eax, dword [ebp - 0x250]
lea eax, [eax + esi*2]
add eax, 2
push eax
call fcn.00475ae1
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x2e4]
push eax
call fcn.00461390
add esp, 8
mov byte [ebp - 0x2e5], 1
test al, al
jne 0x4ade26
mov byte [ebp - 0x2e5], 0
lea ecx, [ebp - 0x2cc]
call fcn.0040a580
lea ecx, [ebp - 0x284]
call fcn.0040a580
lea ecx, [ebp - 0x2b4]
call fcn.0040a580
jmp 0x4ade74
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 0x2e5], 0
call fcn.0040a580
jmp 0x4ade74
call fcn.00413006
mov dword [eax], 0x16
call fcn.0056e2cb
mov byte [ebp - 0x2e5], 0
lea ecx, [ebp - 0x2e4]
call fcn.0040a580
lea ecx, [ebp - 0x29c]
call fcn.0040a580
jmp 0x4ad958