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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10208350
push 0x1018b766
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x10221008]
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 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 0x1003b3ac
cmp word [ebx], 0
je 0x1003b3ac
push 0x48
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003b3ac
push 0x48
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1003b3ac
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 0x1003b3b0
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 0x1003b1b9
push 0xe
jmp 0x1003b3ae
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 0x1003b3b0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 - 2]
cmp eax, 0x20a
jae 0x1003b3f5
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 0x1003b1b2
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 0x1003b3b0
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 0x1003b3b0
cmp word [ebp - 0x230], 0
je 0x1003b2c6
lea eax, [ebp - 0x230]
push eax
call ebx
mov dword [esi + 0x18], eax
test eax, eax
je 0x1003b1b2
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 0x1003b3b0
cmp eax, 0xffffffff
je 0x1003b3b0
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 0x1003b31f
mov dword [esi + 0x40], 1
jmp 0x1003b39f
push 0x101ed9ec
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
je 0x1003b394
push str.FAT32
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
je 0x1003b394
push str.exFAT
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
jne 0x1003b35e
mov dword [esi + 0x40], 2
jmp 0x1003b39f
push str.HPFS
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
jne 0x1003b379
mov dword [esi + 0x40], 6
jmp 0x1003b39f
push str.CDFS
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
jne 0x1003b39f
mov dword [esi + 0x40], 7
jmp 0x1003b39f
mov ecx, esi
call fcn.1003aec0
test eax, eax
je 0x1003b3b0
mov esi, 1
mov dword [ebp - 0x444], esi
jmp 0x1003b3b6
push 0x57
call edi
mov esi, dword [ebp - 0x444]
mov dword [ebp - 4], 0xfffffffe
call fcn.1003b3ec
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.1018b6f4
mov esp, ebp
pop ebp
ret
call fcn.1018bbf5
int3