Function at 0x4a2050
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57615e
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x5edd38]
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 - 0x254], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a20b0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x250]
call fcn.00408f30
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], 2
push eax
push esi
call fcn.004304a0
add esp, 8
test al, al
jne 0x4a2127
lea eax, [ebp - 0x238]
push eax
push esi
call fcn.0049ede0
add esp, 8
test al, al
jne 0x4a2127
mov byte [ebp - 0x2e5], al
jmp 0x4a23ea
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x4a220b
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x4a220b
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x238]
call fcn.00409610
mov esi, eax
lea eax, [ebp - 0x238]
cmp eax, esi
je 0x4a21dc
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 5
cmp eax, 8
jb 0x4a219b
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.0040a2e0
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 - 0x258]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x4a21fe
inc eax
lea ecx, [ebp - 0x26c]
push eax
push dword [ebp - 0x26c]
call fcn.0040a2e0
xor eax, eax
mov byte [ebp - 4], 2
mov word [ebp - 0x26c], 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 0x4a22e2
xor eax, eax
mov dword [ebp - 0x25c], 0
lea ecx, [esi - 1]
mov word [ebp - 0x26c], ax
cmp esi, ecx
mov dword [ebp - 0x254], ecx
lea eax, [ebp - 0x250]
mov dword [ebp - 0x258], 7
cmovb ecx, esi
mov dword [ebp - 0x254], esi
cmp edx, 8
push ecx
cmovae eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x26c]
push eax
call fcn.00408f30
mov eax, dword [ebp - 0x23c]
mov byte [ebp - 4], 7
cmp eax, 8
jb 0x4a22a3
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.0040a2e0
movups xmm0, xmmword [ebp - 0x26c]
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [ebp - 0x25c]
movq qword [ebp - 0x240], xmm0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 7
xor eax, eax
mov byte [ebp - 4], 2
mov word [ebp - 0x26c], ax
push edi
lea ecx, [ebp - 0x238]
call fcn.0045628a
test eax, eax
jne 0x4a22fe
mov byte [ebp - 0x2e5], 1
jmp 0x4a23ea
push 8
xor eax, eax
mov dword [ebp - 0x25c], 0
push 0x59237c
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
call fcn.00408f30
mov eax, dword [ebp - 0x258]
lea edi, [ebp - 0x26c]
mov esi, dword [ebp - 0x25c]
lea ecx, [ebp - 0x238]
mov edx, dword [ebp - 0x228]
cmp eax, 8
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x26c]
cmovae edi, eax
cmp dword [ebp - 0x224], 8
mov byte [ebp - 4], 0xb
cmovae ecx, dword [ebp - 0x238]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x2f0], edi
mov dword [ebp - 0x2ec], ecx
cmp esi, edx
ja 0x4a23c1
test esi, esi
je 0x4a24ac
mov eax, edx
sub eax, esi
inc eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0x2f4], eax
nop dword [eax + eax]
sub eax, ecx
sar eax, 1
je 0x4a23c1
movzx edx, word [edi]
nop dword [eax]
cmp word [ecx], dx
je 0x4a2473
add ecx, 2
sub eax, 1
jne 0x4a23b0
mov byte [ebp - 0x2e5], 0
mov eax, dword [ebp - 0x2f8]
mov byte [ebp - 4], 0x43
cmp eax, 8
jb 0x4a23ea
inc eax
lea ecx, [ebp - 0x26c]
push eax
push dword [ebp - 0x254]
call fcn.0040a2e0
mov edi, dword [ebp - 0x224]
mov byte [ebp - 4], 0x44
cmp edi, 8
jb 0x4a240e
lea eax, [edi + 1]
push eax
push dword [ebp - 0x238]
lea ecx, [ebp - 0x238]
call fcn.0040a2e0
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], 0x45
cmp edx, 8
jb 0x4a2452
lea ecx, [edx + 1]
push ecx
push dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
call fcn.0040a2e0
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 fcn.00401682
mov esp, ebp
pop ebp
ret
mov edx, edi
test esi, esi
je 0x4a2492
mov edi, ecx
sub edi, dword [ebp - 0x2f0]
mov ax, word [edx + edi]
cmp ax, word [edx]
jne 0x4a24e8
add edx, 2
sub esi, 1
jne 0x4a2481
sub ecx, dword [ebp - 0x2ec]
sar ecx, 1
jne 0x4a23c1
mov esi, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x228]
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
cmovae ecx, dword [ebp - 0x238]
cmp esi, edx
jae 0x4a23c1
mov eax, edx
sub eax, esi
lea esi, [ecx + esi*2]
je 0x4a23c1
cmp word [esi], 0x5c
je 0x4a2502
add esi, 2
sub eax, 1
jne 0x4a24d5
jmp 0x4a23c1
mov edi, dword [ebp - 0x2f0]
add ecx, 2
mov esi, dword [ebp - 0x25c]
mov eax, dword [ebp - 0x2f4]
jmp 0x4a23a0
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4a23c1
lea eax, [esi + 1]
cmp eax, edx
je 0x4a23c1
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.0049b540
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.00459270
add esp, 8
test al, al
je 0x4a2593
lea ecx, [ebp - 0x29c]
mov byte [ebp - 0x2e5], 1
call fcn.0040a280
jmp 0x4a23c8
push str.CdmRedirector
lea ecx, [ebp - 0x284]
call fcn.0040e610
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x238]
sub esi, eax
mov byte [ebp - 4], 0x19
push esi
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.00409610
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0x1a
push ecx
push eax
call fcn.00459270
add esp, 8
mov byte [ebp - 0x2e5], al
lea ecx, [ebp - 0x310]
call fcn.0040a280
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0x15
call fcn.0040a280
cmp byte [ebp - 0x2e5], 0
jne 0x4a2617
lea ecx, [ebp - 0x29c]
mov byte [ebp - 0x2e5], 0
call fcn.0040a280
jmp 0x4a23c8
push 0
push 0x5c
lea ecx, [ebp - 0x29c]
call fcn.0042d150
cmp eax, 0xffffffff
jne 0x4a2642
lea ecx, [ebp - 0x29c]
mov byte [ebp - 0x2e5], 0
call fcn.0040a280
jmp 0x4a23c8
inc eax
cmp eax, dword [ebp - 0x28c]
jne 0x4a2662
lea ecx, [ebp - 0x29c]
mov byte [ebp - 0x2e5], 0
call fcn.0040a280
jmp 0x4a23c8
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00409610
push 0x591fe0
push 4
push 0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x24
call fcn.0042a8a0
test eax, eax
jne 0x4a26c0
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x250]
call fcn.00409610
push eax
lea ecx, [ebp - 0x250]
call fcn.0040f610
lea ecx, [ebp - 0x310]
call fcn.0040a280
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x2e4]
push eax
call fcn.00459270
add esp, 8
test al, al
je 0x4a26e6
mov byte [ebp - 0x2e5], 1
jmp 0x4a28e4
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 0x4a28dd
mov esi, ecx
nop
cmp word [esi], 0x3a
je 0x4a2723
add esi, 2
sub eax, 1
jne 0x4a2710
jmp 0x4a28dd
sub esi, ecx
sar esi, 1
je 0x4a28dd
cmp esi, 0xffffffff
je 0x4a28dd
cmp esi, 1
jbe 0x4a2753
cmp edx, 8
lea eax, [ebp - 0x250]
cmovae eax, edi
cmp word [eax + esi*2 - 4], 0x5c
jne 0x4a28dd
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 0x4a28cd
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 0x4a28dd
cmp eax, 0x104
je 0x4a28dd
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.0040e610
push 0xffffffffffffffff
push 0x5c
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 0x34
call fcn.004982b0
cmp eax, 0xffffffff
je 0x4a28b9
inc eax
cmp dword [ebp - 0x2a4], eax
jbe 0x4a28b9
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x2b4]
lfence
call fcn.00409610
cmp dword [ebp - 0x274], 2
mov byte [ebp - 4], 0x38
jae 0x4a2824
lea ecx, [ebp - 0x284]
mov byte [ebp - 0x2e5], 0
call fcn.0040a280
lea ecx, [ebp - 0x2b4]
call fcn.0040a280
jmp 0x4a28e4
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.0040a1e0
lea eax, [esi + 1]
mov byte [ebp - 4], 0x3c
cmp dword [ebp - 0x240], eax
jbe 0x4a288f
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.0046cbc1
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x2e4]
push eax
call fcn.00459270
add esp, 8
mov byte [ebp - 0x2e5], 1
test al, al
jne 0x4a2896
mov byte [ebp - 0x2e5], 0
lea ecx, [ebp - 0x2cc]
call fcn.0040a280
lea ecx, [ebp - 0x284]
call fcn.0040a280
lea ecx, [ebp - 0x2b4]
call fcn.0040a280
jmp 0x4a28e4
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 0x2e5], 0
call fcn.0040a280
jmp 0x4a28e4
call fcn.004116f6
mov dword [eax], 0x16
call fcn.0054222b
mov byte [ebp - 0x2e5], 0
lea ecx, [ebp - 0x2e4]
call fcn.0040a280
lea ecx, [ebp - 0x29c]
call fcn.0040a280
jmp 0x4a23c8