Function at 0x559af0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571441
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5cf004]
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 dword [ebp - 0x230], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 4], 2
call fcn.00407579
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x559b5d
push 0x80004005
call fcn.004027b0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x559b72
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x559b74
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x214], esi
mov byte [ebp - 4], 3
call fcn.00407579
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x559b9d
push 0x80004005
call fcn.004027b0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x559bb2
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x559bb4
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x218], edi
mov ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x220]
push eax
push 0x5a0b44
mov byte [ebp - 4], 4
push dword [ebp + 8]
call fcn.00406157
test eax, eax
jns 0x559c7d
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x559c2a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x559c26
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x559c26
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call ebx
jmp 0x559c30
mov ecx, edx
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x559c6c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x559c6a
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x559c6a
push 0
push dword [ecx + 4]
call ebx
jmp 0x559c6c
call edx
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 5
jmp 0x55a0c0
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00536380
add esp, 0xc
mov dword [ebp - 0x22c], 0
lea eax, [ebp - 0x210]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0x54
push str._select_name_TestDrive__id_TestDrive__title_Test_Drive__onChange_this.click_____n
lea ecx, [ebp - 0x218]
call fcn.004025d0
cmp word [ebp - 0x210], 0
je 0x559fb0
lea ebx, [ebp - 0x210]
push ebx
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, ebx
mov ecx, eax
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x559d20
sub edi, edx
sar edi, 1
mov dword [ebp - 0x21c], edi
cmp ecx, 3
je 0x559d4d
cmp ecx, 4
je 0x559d4d
cmp ecx, 2
je 0x559d4d
cmp ecx, 6
jne 0x559f9e
xor eax, eax
mov word [ebx + 2], ax
movzx eax, word [ebx]
push eax
lea eax, [ebp - 0x214]
push str._C:
push eax
call fcn.00402f90
mov esi, dword [ebp - 0x214]
lea eax, [ebp - 0x238]
add esp, 0xc
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x559f9e
push 0xf
push str._option_value_
lea ecx, [ebp - 0x214]
call fcn.004025d0
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x559db0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x214]
call fcn.00402cc0
push 2
push 0x5a8318
lea ecx, [ebp - 0x214]
call fcn.00402cc0
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x218]
push dword [eax - 0xc]
push eax
call fcn.00402cc0
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x228]
cmp edx, 2
ja 0x559ea9
jb 0x559e12
test eax, eax
jae 0x559ea9
mov edi, eax
mov esi, edx
sub edi, dword [ebp - 0x238]
mov ecx, eax
sbb esi, dword [ebp - 0x234]
shrd ecx, edx, 0xa
shr edx, 0xa
call fcn.00562cb0
mulsd xmm0, qword [0x5ae898]
sub esp, 8
mov ecx, edi
mov edx, esi
shrd ecx, edx, 0xa
shr edx, 0xa
movsd qword [esp], xmm0
call fcn.00562cb0
mulsd xmm0, qword [0x5ae898]
sub esp, 8
mov edx, esi
mov ecx, edi
movsd qword [esp], xmm0
call fcn.00562cb0
mov edx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
movsd qword [ebp - 0x244], xmm0
call fcn.00562cb0
movsd xmm1, qword [ebp - 0x244]
sub esp, 8
divsd xmm1, xmm0
mulsd xmm1, qword [0x5ae8c8]
movsd qword [esp], xmm1
push ebx
push str._s:__.0f_____.0f__.0fMiB__r_n
jmp 0x559f3b
mov edi, eax
mov esi, edx
sub edi, dword [ebp - 0x238]
mov ecx, eax
sbb esi, dword [ebp - 0x234]
shrd ecx, edx, 0x14
shr edx, 0x14
call fcn.00562cb0
mulsd xmm0, qword [0x5ae898]
sub esp, 8
mov ecx, edi
mov edx, esi
shrd ecx, edx, 0x14
shr edx, 0x14
movsd qword [esp], xmm0
call fcn.00562cb0
mulsd xmm0, qword [0x5ae898]
sub esp, 8
mov edx, esi
mov ecx, edi
movsd qword [esp], xmm0
call fcn.00562cb0
mov edx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
movsd qword [ebp - 0x244], xmm0
call fcn.00562cb0
movsd xmm1, qword [ebp - 0x244]
sub esp, 8
divsd xmm1, xmm0
mulsd xmm1, qword [0x5ae8c8]
movsd qword [esp], xmm1
push ebx
push str._s:__.0f_____.0f__.0fGiB__r_n
lea eax, [ebp - 0x214]
push eax
call fcn.00402f90
mov esi, dword [ebp - 0x214]
lea ecx, [ebp - 0x218]
add esp, 0x24
push dword [esi - 0xc]
push esi
call fcn.00402cc0
push 0xa
push str.__option__n
lea ecx, [ebp - 0x218]
call fcn.00402cc0
mov ecx, dword [ebp - 0x230]
movzx eax, word [ebx]
sub eax, 0x41
cmp dword [ecx + 0x464], eax
mov eax, dword [ebp - 0x22c]
jne 0x559f91
mov dword [ecx + 0x468], eax
mov edi, dword [ebp - 0x21c]
inc eax
mov dword [ebp - 0x22c], eax
lea ebx, [ebx + edi*2]
add ebx, 2
cmp word [ebx], 0
jne 0x559cd5
xor ebx, ebx
push 9
push str.__select_
lea ecx, [ebp - 0x218]
call fcn.00402cc0
mov edi, dword [ebp - 0x218]
test edi, edi
je 0x559ff1
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
mov dword [ebp - 0x23c], ebx
test ebx, ebx
jne 0x559ff1
push 0x8007000e
call fcn.004027b0
mov eax, dword [ebp - 0x220]
push ebx
push eax
mov edx, dword [eax]
call dword [edx + 0xf4]
mov ecx, dword [ebp - 0x230]
push 0
call fcn.0040de0e
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x55a075
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [ebp - 0x21c], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x55a06d
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x21c], esi
mov esi, dword [ebp - 0x214]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x55a063
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x55a075
mov ecx, edx
call dword [ebp - 0x21c]
jmp 0x55a075
mov ecx, edx
call dword [ebp - 0x21c]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x55a0b5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x55a0b3
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x55a0b3
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x55a0b5
call edx
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x55a0d0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x55a116
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x55a112
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x55a112
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x55a116
mov ecx, edx
call esi
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.00531d62
mov esp, ebp
pop ebp
ret 4