Function at 0x10006581
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7a0
mov dword [ebp - 0x7a0], ecx
push str.GetVolumeInformationA
push 0x10022c0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x634], eax
push str.GetLogicalDriveStringsA
push 0x10022c34
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x60c], eax
push str.GetDriveTypeA
push 0x10022c54
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x630], eax
push str.lstrlenA
push 0x10022c70
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x620], 0
mov byte [ebp - 0x400], 0x67
lea eax, [ebp - 0x500]
push eax
push 0x100
call dword [ebp - 0x60c]
lea ecx, [ebp - 0x500]
mov dword [ebp - 0x620], ecx
mov dword [ebp - 0x618], 0
mov dword [ebp - 0x614], 0
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x504], 0
mov dword [ebp - 0x610], 0
mov dword [ebp - 0x61c], 1
jmp 0x10006698
mov edx, dword [ebp - 0x620]
push edx
call dword [ebp - 0x624]
mov ecx, dword [ebp - 0x620]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x620], edx
mov eax, dword [ebp - 0x620]
movsx ecx, byte [eax]
test ecx, ecx
je 0x100068c6
push 0x104
push 0
lea edx, [ebp - 0x608]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x608]
push eax
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x620]
push ecx
call dword [ebp - 0x634]
push 0x410
push 0x160
lea edx, [ebp - 0x794]
push edx
push 0x80
mov eax, dword [ebp - 0x620]
push eax
call dword [0x10025dac]
lea ecx, [ebp - 0x684]
push ecx
call dword [ebp - 0x624]
add eax, 1
mov dword [ebp - 0x79c], eax
lea edx, [ebp - 0x608]
push edx
call dword [ebp - 0x624]
add eax, 1
mov dword [ebp - 0x798], eax
mov eax, dword [ebp - 0x620]
movsx ecx, byte [eax]
cmp ecx, 0x41
je 0x100067d0
mov edx, dword [ebp - 0x620]
movsx eax, byte [edx]
cmp eax, 0x42
je 0x100067d0
push 0
lea ecx, [ebp - 0x618]
push ecx
lea edx, [ebp - 0x62c]
push edx
mov eax, dword [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x100067d0
push 0
push 0x400
mov ecx, dword [ebp - 0x614]
push ecx
mov edx, dword [ebp - 0x618]
push edx
call fcn.1001c5d0
push 0
push 0x400
push edx
push eax
call fcn.1001c5d0
mov dword [ebp - 0x504], eax
push 0
push 0x400
mov eax, dword [ebp - 0x628]
push eax
mov ecx, dword [ebp - 0x62c]
push ecx
call fcn.1001c5d0
push 0
push 0x400
push edx
push eax
call fcn.1001c5d0
mov dword [ebp - 0x610], eax
jmp 0x100067e4
mov dword [ebp - 0x504], 0
mov dword [ebp - 0x610], 0
mov edx, dword [ebp - 0x61c]
mov eax, dword [ebp - 0x620]
mov cl, byte [eax]
mov byte [ebp + edx - 0x400], cl
mov edx, dword [ebp - 0x620]
push edx
call dword [ebp - 0x630]
mov ecx, dword [ebp - 0x61c]
mov byte [ebp + ecx - 0x3ff], al
push 4
lea edx, [ebp - 0x504]
push edx
mov eax, dword [ebp - 0x61c]
lea ecx, [ebp + eax - 0x3fe]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 4
lea edx, [ebp - 0x610]
push edx
mov eax, dword [ebp - 0x61c]
lea ecx, [ebp + eax - 0x3fa]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x79c]
push edx
lea eax, [ebp - 0x684]
push eax
mov ecx, dword [ebp - 0x61c]
lea edx, [ebp + ecx - 0x3f6]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x798]
push eax
lea ecx, [ebp - 0x608]
push ecx
mov edx, dword [ebp - 0x61c]
lea eax, [ebp + edx - 0x400]
mov ecx, dword [ebp - 0x79c]
lea edx, [eax + ecx + 0xa]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x798]
mov ecx, dword [ebp - 0x79c]
lea edx, [ecx + eax + 0xa]
mov eax, dword [ebp - 0x61c]
add eax, edx
mov dword [ebp - 0x61c], eax
jmp 0x1000667b
mov ecx, dword [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x400]
push edx
mov ecx, dword [ebp - 0x7a0]
call fcn.1000de40
mov esp, ebp
pop ebp
ret