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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10121ab8
push 0x100e1924
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x10142008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov ecx, 0x1014614a
call fcn.100e3445
mov dword [ebp - 0x444], 0
push 0x20a
push 0
lea eax, [ebp - 0x230]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x20a
push 0
lea eax, [ebp - 0x440]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
push 0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
test ebx, ebx
je 0x1002a696
cmp word [ebx], 0
je 0x1002a696
push 0x48
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002a696
push 0x48
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1002a696
push 0x48
push eax
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x105
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x1002a69a
lea eax, [ebp - 0x230]
push eax
mov ebx, dword [sym.imp.SHLWAPI.dll_StrDupW]
call ebx
mov dword [esi + 0x10], eax
test eax, eax
jne 0x1002a4a3
push 0xe
jmp 0x1002a698
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esi + 0x24], eax
push 0x105
lea eax, [ebp - 0x230]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x1002a69a
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 - 2]
cmp eax, 0x20a
jae 0x1002a6df
xor ecx, ecx
mov word [ebp + eax - 0x230], cx
lea eax, [ebp - 0x230]
push eax
call ebx
mov dword [esi + 0x14], eax
test eax, eax
je 0x1002a49c
lea eax, [esi + 0x34]
lea ecx, [esi + 0x38]
lea edx, [esi + 0x2c]
push eax
push ecx
push edx
lea eax, [esi + 0x28]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
je 0x1002a69a
mov eax, dword [esi + 0x28]
imul eax, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x34]
sub eax, dword [esi + 0x38]
mov dword [esi + 0x3c], eax
push 0x20a
push 0
lea eax, [ebp - 0x230]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x82
lea eax, [ebp - 0x440]
push eax
lea eax, [esi + 0x44]
push eax
push 0
lea eax, [esi + 0x1c]
push eax
push 0x82
lea eax, [ebp - 0x230]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1002a69a
cmp word [ebp - 0x230], 0
je 0x1002a5b0
lea eax, [ebp - 0x230]
push eax
call ebx
mov dword [esi + 0x18], eax
test eax, eax
je 0x1002a49c
push 0
push 0x20000000
push 3
push 0
push 7
push 0x80000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
test eax, eax
je 0x1002a69a
cmp eax, 0xffffffff
je 0x1002a69a
mov dword [esi + 0x40], 0
push str.NTFS
lea eax, [ebp - 0x440]
push eax
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
call ebx
test eax, eax
jne 0x1002a609
mov dword [esi + 0x40], 1
jmp 0x1002a689
push 0x1010dda0
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
je 0x1002a67e
push str.FAT32
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
je 0x1002a67e
push str.exFAT
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
jne 0x1002a648
mov dword [esi + 0x40], 2
jmp 0x1002a689
push str.HPFS
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
jne 0x1002a663
mov dword [esi + 0x40], 6
jmp 0x1002a689
push str.CDFS
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
jne 0x1002a689
mov dword [esi + 0x40], 7
jmp 0x1002a689
mov ecx, esi
call fcn.1002a1a0
test eax, eax
je 0x1002a69a
mov esi, 1
mov dword [ebp - 0x444], esi
jmp 0x1002a6a0
push 0x57
call edi
mov esi, dword [ebp - 0x444]
mov dword [ebp - 4], 0xfffffffe
call fcn.1002a6d6
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100e0d24
mov esp, ebp
pop ebp
ret
call fcn.100e1736
int3