Function at 0x5d72c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6171d6
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x7f206c]
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 edi, edx
mov dword [ebp - 0xac], edi
mov esi, ecx
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0
call fcn.005012d0
mov ecx, edi
call fcn.00403a20
cmp dword [edi + 4], 0
je 0x5d734b
push dword [edi]
call fcn.004c2bdc
add esp, 4
mov dword [edi], 0
mov eax, dword [ebp - 0xc0]
or ebx, 0xffffffff
mov dword [edi + 4], 0
mov edx, 1
mov dword [ebp - 0x94], eax
test eax, eax
jle 0x5d7795
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb0], eax
jmp 0x5d7385
mov edx, 1
mov esi, dword [eax]
mov dword [ebp - 0x98], esi
lea ecx, [esi - 8]
cmp ecx, 0x7a1354
je 0x5d73a4
mov eax, edx
lock xadd dword [ecx], eax
mov esi, dword [ebp - 0x98]
lea ecx, [esi - 8]
mov byte [ebp - 4], 1
cmp ecx, 0x7a1354
je 0x5d73b9
mov eax, edx
lock xadd dword [ecx], eax
mov ecx, dword [edi + 8]
lea edx, [ecx + 1]
cmp edx, dword [edi + 4]
jle 0x5d73e2
mov eax, edx
test eax, eax
jns 0x5d73cd
add eax, 1
sar eax, 1
add edx, 8
mov ecx, edi
add eax, edx
and eax, 0xfffffff8
push eax
call fcn.0041acc0
mov ecx, dword [edi + 8]
lea eax, [ecx + 1]
mov dword [edi + 8], eax
mov eax, dword [edi]
mov dword [eax + ecx*4], esi
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x5d7423
call fcn.00502390
cmp eax, 2
je 0x5d741d
cmp eax, 5
je 0x5d741d
cmp eax, 4
je 0x5d741d
cmp eax, 1
je 0x5d741d
mov ecx, dword [ebp - 0xb0]
mov al, 1
jmp 0x5d7425
mov ecx, dword [ebp - 0xb0]
xor al, al
test al, al
je 0x5d75f7
push ecx
mov ecx, dword [ecx]
mov eax, esp
mov dword [eax], ecx
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d7448
mov eax, 1
lock xadd dword [ecx], eax
lea ecx, [ebp - 0xcc]
call fcn.00502430
add esp, 4
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
call fcn.00418480
push 0
push 0
push 0
push 0
push 0
push 0x40
lea ecx, [ebp - 0x90]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xcc]
sete byte [ebp - 0x9d]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d74b3
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d74b3
push ecx
call fcn.004a8172
add esp, 4
cmp byte [ebp - 0x9d], 0
je 0x5d74c5
xor eax, eax
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0041d400
add esp, 4
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0xbc]
cmp byte [esi], 0
jne 0x5d7529
mov edx, str.Hard_Drive
lea ecx, [ebp - 0xd0]
call fcn.0051a1d0
mov ecx, esi
mov esi, dword [eax]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xd0]
add ecx, 0xfffffff8
mov dword [ebp - 0xbc], esi
cmp ecx, 0x7a1354
je 0x5d7529
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d7529
push ecx
call fcn.004a8172
add esp, 4
mov edi, dword [ebp - 0x98]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x5d7532
sub edi, ecx
lea ecx, [ebp - 0x98]
lea eax, [edi + 2]
push eax
call fcn.0051a030
mov ecx, dword [ebp - 0x98]
mov ax, word [0x7a7178]
mov word [ecx + edi], ax
lea eax, [ebp - 0xbc]
mov byte [ecx + edi + 2], 0
lea ecx, [ebp - 0x98]
push eax
call fcn.00529ba0
mov ecx, eax
mov word [ebp - 0xa4], 0x5d
lea ebx, [ebp - 0xa4]
mov dword [ebp - 0xb8], ecx
lea edx, [ebx + 1]
nop dword [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x5d7590
sub ebx, edx
test ebx, ebx
jle 0x5d75d1
mov edi, dword [ecx]
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x5d75a2
sub edi, edx
lea eax, [edi + ebx]
push eax
call fcn.0051a030
mov ecx, dword [ebp - 0xb8]
lea eax, [ebp - 0xa4]
push ebx
push eax
add edi, dword [ecx]
push edi
call fcn.004bf740
add esp, 0xc
mov byte [edi + ebx], 0
add esi, 0xfffffff8
or ebx, 0xffffffff
cmp esi, 0x7a1354
je 0x5d76e3
mov eax, ebx
lock xadd dword [esi], eax
test eax, eax
jne 0x5d76e3
push esi
jmp 0x5d76db
call fcn.00502390
cmp eax, 5
jne 0x5d76e9
mov esi, dword [ebp - 0x98]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x5d7610
sub esi, ecx
lea ecx, [ebp - 0x98]
lea eax, [esi + 2]
push eax
call fcn.0051a030
mov ecx, dword [ebp - 0x98]
mov edx, str.CD_DVD_drive
mov ax, word [0x7a71ac]
mov word [ecx + esi], ax
mov byte [ecx + esi + 2], 0
lea ecx, [ebp - 0x9c]
call fcn.0051a1d0
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.00529ba0
mov ecx, eax
mov word [ebp - 0xa8], 0x5d
lea edi, [ebp - 0xa8]
mov dword [ebp - 0xb8], ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x5d7677
sub edi, edx
test edi, edi
jle 0x5d76bf
mov esi, dword [ecx]
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x5d7690
sub esi, edx
lea eax, [esi + edi]
push eax
call fcn.0051a030
mov ecx, dword [ebp - 0xb8]
lea eax, [ebp - 0xa8]
push edi
push eax
add esi, dword [ecx]
push esi
call fcn.004bf740
add esp, 0xc
mov byte [esi + edi], 0
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d76e3
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d76e3
push ecx
call fcn.004a8172
add esp, 4
mov edi, dword [ebp - 0xac]
mov esi, dword [ebp - 0x98]
lea ecx, [esi - 8]
cmp ecx, 0x7a1354
je 0x5d7703
mov eax, 1
lock xadd dword [ecx], eax
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax + 8]
lea edx, [ecx + 1]
cmp edx, dword [eax + 4]
jle 0x5d773e
mov eax, edx
test eax, eax
jns 0x5d771d
add eax, 1
sar eax, 1
mov ecx, dword [ebp - 0xb4]
add edx, 8
add eax, edx
and eax, 0xfffffff8
push eax
call fcn.0041acc0
mov edx, dword [ebp - 0xb4]
mov ecx, dword [edx + 8]
jmp 0x5d7740
mov edx, eax
lea eax, [ecx + 1]
mov dword [edx + 8], eax
mov eax, dword [edx]
mov byte [ebp - 4], 0
mov dword [eax + ecx*4], esi
mov ecx, dword [ebp - 0x98]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d7773
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d7773
push ecx
call fcn.004a8172
add esp, 4
mov eax, dword [ebp - 0xb0]
add eax, 4
sub dword [ebp - 0x94], 1
mov dword [ebp - 0xb0], eax
jne 0x5d7380
mov esi, dword [ebp - 0xb4]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x7a135c
push eax
mov ecx, edi
call fcn.004191e0
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d77d1
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d77d1
push ecx
call fcn.004a8172
add esp, 4
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x7a135c
push eax
mov ecx, esi
call fcn.004191e0
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d780d
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d780d
push ecx
call fcn.004a8172
add esp, 4
mov edx, 1
lea ecx, [ebp - 0x9c]
call fcn.005279a0
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x5d7839
mov eax, 1
lock xadd dword [ecx], eax
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
call fcn.004191e0
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d786b
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d786b
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d788f
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d788f
push ecx
call fcn.004a8172
add esp, 4
mov edx, str.Documents
lea ecx, [ebp - 0x94]
call fcn.0051a1d0
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.004191e0
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d78d1
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d78d1
push ecx
call fcn.004a8172
add esp, 4
mov edx, 3
lea ecx, [ebp - 0x9c]
call fcn.005279a0
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x5d78fd
mov eax, 1
lock xadd dword [ecx], eax
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
call fcn.004191e0
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d792f
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d792f
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d7953
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d7953
push ecx
call fcn.004a8172
add esp, 4
mov edx, str.Music
lea ecx, [ebp - 0x94]
call fcn.0051a1d0
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.004191e0
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d7995
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d7995
push ecx
call fcn.004a8172
add esp, 4
mov edx, 5
lea ecx, [ebp - 0x9c]
call fcn.005279a0
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x5d79c1
mov eax, 1
lock xadd dword [ecx], eax
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
call fcn.004191e0
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d79f3
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d79f3
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d7a17
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d7a17
push ecx
call fcn.004a8172
add esp, 4
mov edx, str.Pictures
lea ecx, [ebp - 0x94]
call fcn.0051a1d0
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.004191e0
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d7a59
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d7a59
push ecx
call fcn.004a8172
add esp, 4
mov edx, 2
lea ecx, [ebp - 0x9c]
call fcn.005279a0
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
add eax, 0xfffffff8
cmp eax, 0x7a1354
je 0x5d7a84
mov ecx, 1
lock xadd dword [eax], ecx
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
call fcn.004191e0
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d7ab6
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d7ab6
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x5d7ada
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x5d7ada
push ecx
call fcn.004a8172
add esp, 4
mov edx, str.Desktop
lea ecx, [ebp - 0x94]
call fcn.0051a1d0
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.004191e0
mov eax, dword [ebp - 0x94]
add eax, 0xfffffff8
cmp eax, 0x7a1354
je 0x5d7b19
lock xadd dword [eax], ebx
test ebx, ebx
jne 0x5d7b19
push eax
call fcn.004a8172
add esp, 4
lea ecx, [ebp - 0xc8]
call fcn.00403a20
push dword [ebp - 0xc8]
call fcn.004c2bdc
add esp, 4
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.004a7e5e
mov esp, ebp
pop ebp
ret