Function at 0x10066b8
Capabilities:
Get disk information

Disassembly:
mov eax, 0x100a2c0
call fcn.0100a110
sub esp, 0x8d4
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], ebx
call fcn.01006669
mov edi, dword [ebp + 0xc]
push 1
push ebx
push 1
push edi
lea ecx, [ebp - 0x8e0]
call fcn.01008127
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x10068ce
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 2
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10068ce
cmp edi, ebx
je 0x10068ce
push 2
push edi
call esi
test eax, eax
jne 0x10068ce
push 0x1001920
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x18], ebx
jne 0x100674d
mov dword [ebp - 0x10], 0x80004005
jmp 0x10068c9
lea eax, [ebp - 0x28]
push eax
push 0x104
lea eax, [ebp - 0x460]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x100679b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1006778
call esi
jmp 0x1006784
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x10068bf
mov dword [ebp - 0x10], 0x80004005
jmp 0x10068bf
mov esi, dword [sym.imp.msvcrt.dll_fprintf]
push edi
lea eax, [ebp - 0x460]
push eax
push 0x1003770
push ebx
call esi
add esp, 0x10
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x8e0]
push eax
call fcn.010085d3
test eax, eax
jne 0x10068b5
mov eax, dword [ebp - 0x248]
test eax, eax
mov edx, 0x1003764
mov dword [ebp + 8], eax
jne 0x10067e4
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x24c]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x10067f4
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0x250]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x1006804
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x258]
lea ecx, [eax + 0x20]
test ecx, ecx
mov dword [ebp - 0x24], ecx
jne 0x1006817
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x244]
test ecx, ecx
mov dword [ebp - 0x20], ecx
jne 0x1006827
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0x100375c
jne 0x100683b
mov dword [ebp - 0x14], 0x1003754
push dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push dword [ebp + 0xc]
mov edx, dword [eax + 0x10]
push dword [ebp - 0x1c]
mov esi, dword [eax + 0xc]
push dword [ebp - 0x24]
mov edi, dword [eax + 0x18]
push dword [ebp - 0x20]
mov ebx, dword [eax + 0x1c]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x14]
push ecx
push edx
push esi
call fcn.01006694
push eax
push ebx
push edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x23c]
push eax
push 0x10036b0
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x44
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x8e0]
push eax
call fcn.010082fa
test eax, eax
je 0x10067cf
lea eax, [ebp - 0x8e0]
push eax
call fcn.01008841
jmp 0x10068bf
push 0x1003694
push ebx
call esi
pop ecx
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov esi, dword [ebp - 0x10]
jmp 0x10068d3
mov esi, 0x80070057
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8e0]
call fcn.0100888d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8