Function at 0x45c910
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7eaf
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x511070]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x45c96d
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 1
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x45c994
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 2
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x45c9bb
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
xor esi, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x22c], esi
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [esi + 0x41]
push eax
lea eax, [ebp - 0x224]
push 0x4f58b8
push eax
call fcn.00421db0
mov ebx, dword [ebp - 0x224]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45ca30
sub eax, edx
lea ecx, [ebp - 0x228]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041ccd0
mov edi, dword [ebp - 0x228]
cmp dword [edi - 0xc], 0
je 0x45cb58
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jl 0x45cb58
push edi
push eax
call fcn.004a81de
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x45cb58
mov eax, dword [ebp + 0xc]
sub ecx, eax
sar ecx, 1
jne 0x45cb58
mov eax, dword [eax - 0xc]
lea ecx, [ebp + 0xc]
sub eax, dword [edi - 0xc]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0041c0e0
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.0041c6d0
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x230]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45cada
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x224]
lea ecx, [ebp - 0x234]
call fcn.00421dd0
add esp, 4
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.0041c6d0
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45cb26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x21c]
push 0
push esi
call fcn.004af917
add esp, 8
cmp eax, 0xffffffff
jne 0x45cc17
push 0
push 0x4ed230
lea ecx, [ebp - 0x21c]
call fcn.0041ccd0
mov esi, dword [ebp - 0x22c]
inc esi
mov dword [ebp - 0x22c], esi
cmp esi, 0x1a
jb 0x45c9e0
mov esi, dword [ebp - 0x21c]
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c670
mov ecx, dword [ebp - 0x220]
lea edx, [ebx - 0x10]
add eax, 0x10
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov dword [ecx], eax
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45cba1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x45cbbc
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45cbd4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45cbf3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
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.004a5d13
mov esp, ebp
pop ebp
ret 8
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c670
mov ecx, dword [ebp - 0x220]
lea edx, [ebx - 0x10]
add eax, 0x10
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov dword [ecx], eax
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45cc4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x45cc65
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45cc7d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45cbf3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x45cbf3