Function at 0x454b20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f3ce
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x6fb4c0]
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 + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], 0
mov dword [edi], 0x6e80cc
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x23c], 1
call fcn.0044cc70
push 0
push 0x2200000
push 3
push 0
push 7
push 8
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0040d690
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x22c], esi
mov eax, dword [eax]
test eax, eax
je 0x454bdc
cmp eax, 0xffffffff
je 0x454bee
mov eax, dword [ebp - 0x220]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x454bee
push 4
push 2
push dword [ebp - 0x220]
call fcn.00403690
add esp, 0xc
cmp esi, 0xffffffff
je 0x454f5a
push 0x4000
call fcn.0052a232
mov esi, eax
add esp, 4
test esi, esi
jne 0x454c0f
call fcn.00425c40
push 0
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
push 0x4000
push esi
push 0
push 0
push 0x900a8
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x454d77
mov eax, dword [esi]
cmp eax, 0xa0000003
jne 0x454cb5
movzx eax, word [esi + 8]
movzx ecx, word [esi + 0xa]
shr eax, 1
add eax, 8
shr ecx, 1
push ecx
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00420d90
mov ecx, dword [edi]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [edi], eax
mov dword [edx], ecx
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax]
test eax, eax
je 0x454ca1
cmp eax, 0xffffffff
je 0x454cf4
mov eax, dword [ebp - 0x21c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x454cf4
push 4
push 2
push dword [ebp - 0x21c]
call fcn.00403690
add esp, 0xc
jmp 0x454cf4
cmp eax, 0xa000000c
jne 0x454cf4
movzx eax, word [esi + 8]
movzx ecx, word [esi + 0xa]
shr eax, 1
add eax, 0xa
shr ecx, 1
push ecx
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00420d90
mov ecx, dword [edi]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [edi], eax
mov dword [edx], ecx
lea ecx, [ebp - 0x21c]
call fcn.00401a70
mov ecx, dword [edi]
cmp dword [ecx + 4], 4
jle 0x454d77
mov eax, dword [ecx + 0xc]
cmp word [eax + ecx], 0x5c
jne 0x454d77
cmp word [eax + ecx + 4], 0x3f
jne 0x454d77
cmp word [eax + ecx + 6], 0x5c
jne 0x454d77
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.00409900
mov ecx, dword [edi]
mov edx, eax
mov eax, dword [edx]
mov dword [edi], eax
mov dword [edx], ecx
lea ecx, [ebp - 0x21c]
call fcn.00401a70
push 3
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.00409530
push eax
push 0x5cd2b4
push 3
call fcn.00405f70
add esp, 0xc
test al, al
je 0x454d77
push ecx
mov eax, esp
mov ecx, 0x5c
push 3
push 0
mov word [eax], cx
mov ecx, edi
call fcn.0040b060
push esi
call fcn.0052a217
add esp, 4
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x6fe8d4]
cmp eax, 0xfffffffe
jle 0x454d9b
call fcn.00453f80
push 0x1d
push str.Volume__a_z__0_9____
mov dword [ebp - 0x244], 0x1d
call fcn.00408c30
add esp, 8
mov dword [ebp - 0x21c], eax
push 0
push 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x224]
call fcn.0040f1e0
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x454e01
cmp eax, 0xffffffff
je 0x454e13
mov eax, dword [ebp - 0x21c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x454e13
push 4
push 2
push dword [ebp - 0x21c]
call fcn.00403690
add esp, 0xc
push 0
push 0
push edi
lea ecx, [ebp - 0x224]
call fcn.004142c0
test eax, eax
jne 0x454f4f
lea ecx, [ebp - 0x224]
call fcn.00415730
push eax
lea eax, [ebp - 0x254]
mov ecx, edi
push eax
call fcn.00409530
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x244], ecx
push eax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x230], 4
mov dword [ebp - 0x22c], 0x5940d0
call fcn.00451200
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 5
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040d690
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x454f17
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00420d90
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.00415730
push esi
push eax
push 0
mov ecx, edi
call fcn.0040afd0
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax]
test eax, eax
je 0x454f05
or edx, 0xffffffff
cmp eax, edx
je 0x454f1a
mov eax, dword [ebp - 0x21c]
mov ecx, edx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x454f1a
push 4
push 2
push dword [ebp - 0x21c]
call fcn.00403690
add esp, 0xc
or edx, 0xffffffff
mov eax, dword [ebp - 0x220]
mov eax, dword [eax]
test eax, eax
je 0x454f3d
cmp eax, 0xffffffff
je 0x454f4f
mov eax, dword [ebp - 0x220]
lock xadd dword [eax], edx
dec edx
setne al
test al, al
jne 0x454f4f
push 4
push 2
push dword [ebp - 0x220]
call fcn.00403690
add esp, 0xc
lea ecx, [ebp - 0x224]
call fcn.0040fa30
mov eax, edi
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.00524900
mov esp, ebp
pop ebp
ret