Function at 0x459060
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549ca9
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x8870bc]
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 - 0x258], edi
mov dword [ebp - 0x23c], 0
mov dword [edi], 0x6f6ba0
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x23c], 1
call fcn.00454300
push 0
push 0x2200000
push 3
push 0
push 7
push 8
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0040bc30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], esi
mov eax, dword [eax]
test eax, eax
je 0x45911e
cmp eax, 0xffffffff
je 0x459130
mov eax, dword [ebp - 0x228]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x459130
push 4
push 2
push dword [ebp - 0x228]
call fcn.004016c0
add esp, 0xc
cmp esi, 0xffffffff
je 0x45949a
push 0x4000
call fcn.00526109
mov esi, eax
add esp, 4
test esi, esi
jne 0x459151
call fcn.00418900
push 0
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0
push eax
push 0x4000
push esi
push 0
push 0
push 0x900a8
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4592bb
mov eax, dword [esi]
cmp eax, 0xa0000003
jne 0x4591f9
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 - 0x22c]
push eax
call fcn.00457730
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 - 0x22c]
mov eax, dword [eax]
test eax, eax
je 0x4591e5
cmp eax, 0xffffffff
je 0x459238
mov eax, dword [ebp - 0x22c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x459238
push 4
push 2
push dword [ebp - 0x22c]
call fcn.004016c0
add esp, 0xc
jmp 0x459238
cmp eax, 0xa000000c
jne 0x459238
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 - 0x244]
push eax
call fcn.00457730
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 - 0x244]
call fcn.004011e0
mov eax, dword [edi]
cmp dword [eax + 4], 4
jle 0x4592bb
mov ecx, dword [eax + 0xc]
cmp word [eax + ecx], 0x5c
jne 0x4592bb
cmp word [eax + ecx + 4], 0x3f
jne 0x4592bb
cmp word [eax + ecx + 6], 0x5c
jne 0x4592bb
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x238]
mov ecx, edi
push eax
call fcn.00407990
mov ecx, dword [edi]
mov edx, eax
mov eax, dword [edx]
mov dword [edi], eax
mov dword [edx], ecx
lea ecx, [ebp - 0x238]
call fcn.004011e0
push 3
lea eax, [ebp - 0x268]
mov ecx, edi
push eax
call fcn.004075e0
push eax
push 0x771770
push 3
call fcn.00403b50
add esp, 0xc
test al, al
je 0x4592bb
push ecx
mov eax, esp
mov ecx, 0x5c
push 3
push 0
mov word [eax], cx
mov ecx, edi
call fcn.004098b0
push esi
call fcn.005260ee
add esp, 4
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x8891a8]
cmp eax, 0xfffffffe
jle 0x4592df
call fcn.004584e0
push 0x1d
push str.Volume__a_z__0_9____
call fcn.00406bb0
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.00420410
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x45933d
cmp eax, 0xffffffff
je 0x45934f
mov eax, dword [ebp - 0x21c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x45934f
push 4
push 2
push dword [ebp - 0x21c]
call fcn.004016c0
add esp, 0xc
push 0
push 0
push edi
lea ecx, [ebp - 0x224]
call fcn.00425620
test eax, eax
jne 0x45948f
lea ecx, [ebp - 0x224]
call fcn.004268c0
push eax
lea eax, [ebp - 0x274]
mov ecx, edi
push eax
call fcn.004075e0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x254], ecx
push eax
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x24c], 4
mov dword [ebp - 0x248], 0x770e4c
call fcn.004555b0
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 5
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040bc30
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x459455
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00457730
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.004268c0
push esi
push eax
push 0
mov ecx, edi
call fcn.00409820
mov eax, dword [ebp - 0x230]
mov eax, dword [eax]
test eax, eax
je 0x459443
or edx, 0xffffffff
cmp eax, edx
je 0x459458
mov eax, dword [ebp - 0x230]
mov ecx, edx
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x459458
push 4
push 2
push dword [ebp - 0x230]
call fcn.004016c0
add esp, 0xc
or edx, 0xffffffff
mov eax, dword [ebp - 0x220]
mov eax, dword [eax]
test eax, eax
je 0x45947d
cmp eax, 0xffffffff
je 0x45948f
mov eax, dword [ebp - 0x220]
lock xadd dword [eax], edx
cmp edx, 1
setne al
test al, al
jne 0x45948f
push 4
push 2
push dword [ebp - 0x220]
call fcn.004016c0
add esp, 0xc
lea ecx, [ebp - 0x224]
call fcn.00420ca0
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.00520afb
mov esp, ebp
pop ebp
ret