Function at 0x45a950
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d634f
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.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x45a9ad
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 1
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x45a9d4
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 2
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x45a9fb
push 0x80004005
call fcn.0041ce60
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.004a73c0
add esp, 0xc
lea eax, [esi + 0x41]
push eax
lea eax, [ebp - 0x224]
push 0x4f4e08
push eax
call fcn.00422000
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 0x45aa70
sub eax, edx
lea ecx, [ebp - 0x228]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041cd40
mov edi, dword [ebp - 0x228]
cmp dword [edi - 0xc], 0
je 0x45ab98
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jl 0x45ab98
push edi
push eax
call fcn.004a6c3e
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x45ab98
mov eax, dword [ebp + 0xc]
sub ecx, eax
sar ecx, 1
jne 0x45ab98
mov eax, dword [eax - 0xc]
lea ecx, [ebp + 0xc]
sub eax, dword [edi - 0xc]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0041c100
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.0041c740
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 0x45ab1a
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.00422020
add esp, 4
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.0041c740
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 0x45ab66
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.004ae3cc
add esp, 8
cmp eax, 0xffffffff
jne 0x45ac57
push 0
push 0x4ec230
lea ecx, [ebp - 0x21c]
call fcn.0041cd40
mov esi, dword [ebp - 0x22c]
inc esi
mov dword [ebp - 0x22c], esi
cmp esi, 0x1a
jb 0x45aa20
mov esi, dword [ebp - 0x21c]
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c6e0
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 0x45abe1
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 0x45abfc
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 0x45ac14
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 0x45ac33
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.004a474b
mov esp, ebp
pop ebp
ret 8
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c6e0
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 0x45ac8a
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 0x45aca5
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 0x45acbd
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 0x45ac33
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x45ac33