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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040ac30
xor eax, eax
push ebp
push 0x665a44
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040af2c
mov dword [ebp - 0x34], 0xff
mov eax, dword [ebp - 0x34]
call fcn.00428cd4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
call fcn.00428cd4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
call fcn.00428cd4
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0042f530
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
call fcn.00428a8c
xor eax, eax
push ebp
push 0x665a13
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
xor edx, edx
mov word [eax + 8], dx
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 6
ja case.default.0x66564d
jmp dword [eax*4 + 0x665654]
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 4], edx
jmp case.default.0x66564d
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 1
jmp case.default.0x66564d
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 2
jmp case.default.0x66564d
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 3
jmp case.default.0x66564d
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 4
jmp case.default.0x66564d
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 5
jmp case.default.0x66564d
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 6
mov eax, dword [ebp - 4]
call fcn.006654bc
test al, al
je 0x665980
mov eax, dword [ebp - 0xc]
add eax, 0x18
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x14
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x10
push eax
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceW
xor eax, eax
push ebp
push 0x665754
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 8
call fcn.004071c4
mov ebx, eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [0x807c24]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x2c], edx
mov eax, ebx
call fcn.004071e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x66579a
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x6659eb
mov eax, dword [ebp - 0xc]
add eax, 0x30
mov edx, dword [ebp - 0x28]
call fcn.0040ba50
mov eax, dword [ebp - 0xc]
add eax, 0x38
mov edx, dword [ebp - 0x2c]
call fcn.0040ba50
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
xor edx, edx
push edx
push eax
lea edx, [ebp - 8]
mov eax, 8
call fcn.00427a14
lea eax, [ebp - 0x40]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040be24
push dword [ebp - 0x40]
push 0x665a60
lea eax, [ebp - 0x44]
push eax
mov ecx, 4
mov edx, 5
mov eax, dword [ebp - 8]
call fcn.0040be24
push dword [ebp - 0x44]
mov eax, dword [ebp - 0xc]
add eax, 0x34
mov edx, 3
call fcn.0040bcdc
mov eax, dword [ebp - 0x38]
and eax, 1
cmp eax, 1
jne 0x66585d
mov eax, dword [ebp - 0xc]
movzx edx, word [0x665a64]
or word [eax + 8], dx
mov eax, dword [ebp - 0x38]
and eax, 2
cmp eax, 2
jne 0x665876
mov eax, dword [ebp - 0xc]
movzx edx, word [0x665a68]
or word [eax + 8], dx
mov eax, dword [ebp - 0x38]
and eax, 4
cmp eax, 4
jne 0x66588f
mov eax, dword [ebp - 0xc]
movzx edx, word [0x665a6c]
or word [eax + 8], dx
mov eax, dword [ebp - 0x38]
and eax, 8
cmp eax, 8
jne 0x6658a8
mov eax, dword [ebp - 0xc]
movzx edx, word [0x665a70]
or word [eax + 8], dx
mov eax, dword [ebp - 0x38]
and eax, 0x8000
cmp eax, 0x8000
jne 0x6658c5
mov eax, dword [ebp - 0xc]
movzx edx, word [0x665a74]
or word [eax + 8], dx
mov eax, dword [ebp - 0x38]
and eax, 0x10
cmp eax, 0x10
jne 0x6658de
mov eax, dword [ebp - 0xc]
movzx edx, word [0x665a78]
or word [eax + 8], dx
cmp dword [ebp - 0x30], 0xff
jne 0x6658f5
mov eax, dword [ebp - 0xc]
movzx edx, word [0x665a7c]
or word [eax + 8], dx
mov eax, dword [ebp - 0x38]
and eax, 0x20000
cmp eax, 0x20000
jne 0x665912
mov eax, dword [ebp - 0xc]
movzx edx, word [0x665a80]
or word [eax + 8], dx
mov eax, dword [ebp - 0x38]
and eax, 0x10000
cmp eax, 0x10000
jne 0x66592f
mov eax, dword [ebp - 0xc]
movzx edx, word [0x665a84]
or word [eax + 8], dx
mov eax, dword [ebp - 0x38]
and eax, 0x80
cmp eax, 0x80
jne 0x66594c
mov eax, dword [ebp - 0xc]
movzx edx, word [0x665a88]
or word [eax + 8], dx
mov eax, dword [ebp - 0x38]
and eax, 0x40
cmp eax, 0x40
jne 0x665965
mov eax, dword [ebp - 0xc]
movzx edx, word [0x665a8c]
or word [eax + 8], dx
mov eax, dword [ebp - 0x38]
and eax, 0x20
cmp eax, 0x20
jne 0x6659eb
mov eax, dword [ebp - 0xc]
movzx edx, word [0x665a90]
or word [eax + 8], dx
jmp 0x6659eb
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 0xc]
add eax, 0x30
call fcn.0040ab4c
mov eax, dword [ebp - 0xc]
add eax, 0x34
call fcn.0040ab4c
mov eax, dword [ebp - 0xc]
add eax, 0x38
call fcn.0040ab4c
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x1c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x665a1a
mov eax, dword [ebp - 0x28]
call fcn.00428d14
mov eax, dword [ebp - 0x2c]
call fcn.00428d14
mov eax, dword [ebp - 0x24]
call fcn.00428d14
pop eax
jmp eax