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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1020a4f8
push 0x1018d616
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x10223008]
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 0x1003b40c
cmp word [ebx], 0
je 0x1003b40c
push 0x48
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003b40c
push 0x48
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1003b40c
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 0x1003b410
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 0x1003b219
push 0xe
jmp 0x1003b40e
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 0x1003b410
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 - 2]
cmp eax, 0x20a
jae 0x1003b455
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 0x1003b212
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 0x1003b410
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 0x1003b410
cmp word [ebp - 0x230], 0
je 0x1003b326
lea eax, [ebp - 0x230]
push eax
call ebx
mov dword [esi + 0x18], eax
test eax, eax
je 0x1003b212
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 0x1003b410
cmp eax, 0xffffffff
je 0x1003b410
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 0x1003b37f
mov dword [esi + 0x40], 1
jmp 0x1003b3ff
push 0x101ef9ec
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
je 0x1003b3f4
push str.FAT32
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
je 0x1003b3f4
push str.exFAT
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
jne 0x1003b3be
mov dword [esi + 0x40], 2
jmp 0x1003b3ff
push str.HPFS
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
jne 0x1003b3d9
mov dword [esi + 0x40], 6
jmp 0x1003b3ff
push str.CDFS
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
jne 0x1003b3ff
mov dword [esi + 0x40], 7
jmp 0x1003b3ff
mov ecx, esi
call fcn.1003af20
test eax, eax
je 0x1003b410
mov esi, 1
mov dword [ebp - 0x444], esi
jmp 0x1003b416
push 0x57
call edi
mov esi, dword [ebp - 0x444]
mov dword [ebp - 4], 0xfffffffe
call fcn.1003b44c
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.1018d5a4
mov esp, ebp
pop ebp
ret
call fcn.1018daa5
int3