Function at 0x454d60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f55e
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x6f9540]
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], 0x6e6190
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x23c], 1
call fcn.0044cea0
push 0
push 0x2200000
push 3
push 0
push 7
push 8
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0040dd20
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 0x454e1c
cmp eax, 0xffffffff
je 0x454e2e
mov eax, dword [ebp - 0x220]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x454e2e
push 4
push 2
push dword [ebp - 0x220]
call fcn.00403d20
add esp, 0xc
cmp esi, 0xffffffff
je 0x45519a
push 0x4000
call fcn.0052a452
mov esi, eax
add esp, 4
test esi, esi
jne 0x454e4f
call fcn.00425c20
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 0x454fb7
mov eax, dword [esi]
cmp eax, 0xa0000003
jne 0x454ef5
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.00420fa0
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 0x454ee1
cmp eax, 0xffffffff
je 0x454f34
mov eax, dword [ebp - 0x21c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x454f34
push 4
push 2
push dword [ebp - 0x21c]
call fcn.00403d20
add esp, 0xc
jmp 0x454f34
cmp eax, 0xa000000c
jne 0x454f34
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.00420fa0
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 0x454fb7
mov eax, dword [ecx + 0xc]
cmp word [eax + ecx], 0x5c
jne 0x454fb7
cmp word [eax + ecx + 4], 0x3f
jne 0x454fb7
cmp word [eax + ecx + 6], 0x5c
jne 0x454fb7
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.00409f90
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.00409bc0
push eax
push 0x5cd0c4
push 3
call fcn.00406600
add esp, 0xc
test al, al
je 0x454fb7
push ecx
mov eax, esp
mov ecx, 0x5c
push 3
push 0
mov word [eax], cx
mov ecx, edi
call fcn.0040b6f0
push esi
call fcn.0052a437
add esp, 4
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x6fc954]
cmp eax, 0xfffffffe
jle 0x454fdb
call fcn.004541c0
push 0x1d
push str.Volume__a_z__0_9____
mov dword [ebp - 0x244], 0x1d
call fcn.004092c0
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.0040f7c0
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x455041
cmp eax, 0xffffffff
je 0x455053
mov eax, dword [ebp - 0x21c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x455053
push 4
push 2
push dword [ebp - 0x21c]
call fcn.00403d20
add esp, 0xc
push 0
push 0
push edi
lea ecx, [ebp - 0x224]
call fcn.004148a0
test eax, eax
jne 0x45518f
lea ecx, [ebp - 0x224]
call fcn.00415d10
push eax
lea eax, [ebp - 0x254]
mov ecx, edi
push eax
call fcn.00409bc0
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], 0x593ee0
call fcn.00451430
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.0040dd20
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x455157
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00420fa0
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.00415d10
push esi
push eax
push 0
mov ecx, edi
call fcn.0040b660
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax]
test eax, eax
je 0x455145
or edx, 0xffffffff
cmp eax, edx
je 0x45515a
mov eax, dword [ebp - 0x21c]
mov ecx, edx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x45515a
push 4
push 2
push dword [ebp - 0x21c]
call fcn.00403d20
add esp, 0xc
or edx, 0xffffffff
mov eax, dword [ebp - 0x220]
mov eax, dword [eax]
test eax, eax
je 0x45517d
cmp eax, 0xffffffff
je 0x45518f
mov eax, dword [ebp - 0x220]
lock xadd dword [eax], edx
dec edx
setne al
test al, al
jne 0x45518f
push 4
push 2
push dword [ebp - 0x220]
call fcn.00403d20
add esp, 0xc
lea ecx, [ebp - 0x224]
call fcn.00410010
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.00524b20
mov esp, ebp
pop ebp
ret