Function at 0x416530
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52eada
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x234]
mov esi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x234], 0
call fcn.00403320
mov dword [ebp - 4], 0
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
call fcn.00406a00
mov eax, dword [ebp - 0x234]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
jne 0x4165aa
xor esi, esi
jmp 0x4168c1
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x22c]
movups xmmword [ebp - 0x22c], xmm0
call fcn.004f18f5
mov byte [ebp - 4], 1
mov dword [ebp - 0x230], 0
call fcn.004e817d
mov ecx, eax
test ecx, ecx
jne 0x4165ec
push 0x80004005
call fcn.00403650
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
test esi, esi
je 0x41688f
push esi
lea ecx, [ebp - 0x230]
call fcn.00418000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp - 0x230]
push dword [eax - 8]
push eax
call fcn.0050da0f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x416879
mov eax, dword [ebp - 0x230]
cmp ecx, dword [eax - 8]
jg 0x416879
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x230]
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x230]
call fcn.0049c110
mov eax, dword [ebp - 0x224]
add esp, 8
test eax, eax
je 0x41688f
xor edi, edi
mov dword [ebp - 0x240], eax
test eax, eax
jle 0x416888
test edi, edi
js 0x416883
cmp edi, eax
jge 0x416883
mov eax, dword [ebp - 0x228]
mov eax, dword [eax + edi*4]
sub eax, 0x10
push eax
call fcn.00406b00
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x238], esi
mov byte [ebp - 4], 5
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x4166d3
jmp 0x416788
lea ecx, [eax - 1]
test ecx, ecx
js 0x416879
cmp ecx, eax
jg 0x416879
cmp word [esi + ecx*2], 0x5c
jne 0x416738
push ecx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x238]
call fcn.00407b30
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x238]
push eax
call fcn.00406a00
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416732
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x238]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00509680
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp word [ebp - 0x218], 0
jne 0x41676d
jmp 0x416788
push 0
push dword [ebp - 0x234]
lea eax, [ebp - 0x218]
push eax
call fcn.004a9d90
add esp, 0xc
test eax, eax
jne 0x4167bc
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4167a4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
cmp edi, dword [ebp - 0x240]
jge 0x416888
mov eax, dword [ebp - 0x224]
jmp 0x416695
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4167c5
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00407c00
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004078f0
add esp, 0xc
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x244]
push eax
call fcn.00406a00
mov byte [ebp - 4], 0xb
or edi, 0xffffffff
mov edx, dword [ebp - 0x240]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416836
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416857
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x416872
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x416891
push 0x80070057
call fcn.00403650
call fcn.004e6c7b
xor esi, esi
or edi, 0xffffffff
jmp 0x416891
xor esi, esi
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4168b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.004f190c
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4168e3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.00507257
mov esp, ebp
pop ebp
ret