Function at 0x42eba5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push str.GetStorageSize__s_...
push 3
call fcn.00451479
add esp, 0xc
push edi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
lea eax, [ebp - 0x260]
push eax
call fcn.004290f7
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x456ee8
xor esi, esi
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
call ebx
test eax, eax
jne 0x42edcf
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
push edi
call ebx
test eax, eax
jne 0x42edcf
push edi
push str.CreateFile__s__0_...
push 3
call fcn.00451479
add esp, 0xc
push esi
push esi
push 3
push esi
push 3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push ebx
push str._h0x_08X
push 3
mov dword [ebp - 0xc], ebx
call fcn.00451479
add esp, 0xc
cmp ebx, 0xffffffff
je 0x42f024
push 9
pop ecx
xor eax, eax
push str.IOCTL_DISK_GET_DRIVE_GEOMETRY_EX...
mov dword [ebp - 0x58], esi
lea edi, [ebp - 0x54]
push 3
rep stosd dword es:[edi], eax
mov dword [ebp + 8], esi
call fcn.00451479
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x510564]
push esi
lea eax, [ebp + 8]
jne 0x42ecaa
push 0x1f40
push eax
push 0x28
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x700a0
push ebx
call fcn.00448484
jmp 0x42ecbf
push eax
push 0x28
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x700a0
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
cmp edi, esi
je 0x42ecc7
jmp 0x42eccd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x457de4
cmp edi, esi
jne 0x42ecdb
mov ecx, 0x457de0
push dword [ebp + 8]
mov ebx, str.__S_u_br_u
push eax
push ecx
push ebx
push 3
call fcn.00451479
add esp, 0x14
cmp edi, esi
je 0x42ed07
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
push ecx
jmp 0x42eda2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x42edb1
mov dword [ebp - 0x2c], esi
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.IOCTL_DISK_GET_DRIVE_GEOMETRY...
push 3
stosd dword es:[edi], eax
call fcn.00451479
pop ecx
pop ecx
push esi
lea eax, [ebp + 8]
push eax
push 0x18
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push 0x70000
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
cmp edi, esi
je 0x42ed54
jmp 0x42ed5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x457de4
cmp edi, esi
jne 0x42ed68
mov ecx, 0x457de0
push dword [ebp + 8]
push eax
push ecx
push ebx
push 3
call fcn.00451479
add esp, 0x14
cmp edi, esi
je 0x42edb1
mov eax, dword [ebp - 0x1c]
mul dword [ebp - 0x18]
push esi
push dword [ebp - 0x20]
push edx
push eax
call fcn.00453ea3
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edx
push eax
call fcn.00453ea3
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push eax
push str._size_I64u
push 3
call fcn.00451479
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xc]
cmp eax, 0x5b4
jne 0x42f013
call fcn.00448146
jmp 0x42f019
push edi
push str.CreateFile__s__0_...
push 3
call fcn.00451479
add esp, 0xc
push esi
push esi
push 3
push esi
push 3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
je 0x42f024
push ebx
push str._h0x_08X
push 3
call fcn.00451479
push str.IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS...
push 3
call fcn.00451479
add esp, 0x14
push esi
lea eax, [ebp + 8]
push eax
push 0xc08
push 0x50df30
push esi
push esi
push 0x560000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, eax
mov dword [ebp - 0x10], ebx
cmp ebx, esi
je 0x42ee40
jmp 0x42ee46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x457de4
cmp ebx, esi
jne 0x42ee54
mov ecx, 0x457de0
push dword [ebp + 8]
mov ebx, str.__S_u_br_u
push eax
push ecx
push ebx
push 3
call fcn.00451479
add esp, 0x14
cmp dword [ebp - 0x10], esi
je 0x42ee9e
cmp dword [ebp + 8], esi
je 0x42ee9e
mov ecx, dword [0x50df30]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp ecx, esi
jbe 0x42ee9e
mov eax, 0x50df48
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
add dword [ebp - 8], ecx
mov ecx, dword [eax + 4]
adc dword [ebp - 4], ecx
add eax, 0x18
dec dword [ebp - 0x10]
jne 0x42ee8b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 1
jne 0x42f03a
cmp dword [ebp - 4], esi
jne 0x42f03a
push edi
push str.CreateFile__s__r_...
push 3
call fcn.00451479
add esp, 0xc
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x42f024
push eax
push str._h0x_08X
push 3
call fcn.00451479
xor eax, eax
push str.IOCTL_DISK_GET_LENGTH_INFO...
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
push 3
stosd dword es:[edi], eax
call fcn.00451479
add esp, 0x14
push esi
push 0x1f40
lea eax, [ebp + 8]
push eax
push 8
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x7405c
push dword [ebp - 0xc]
call fcn.00448484
mov edi, eax
cmp edi, esi
je 0x42ef35
jmp 0x42ef3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x457de4
cmp edi, esi
jne 0x42ef49
mov ecx, 0x457de0
push dword [ebp + 8]
push eax
push ecx
push ebx
push 3
call fcn.00451479
add esp, 0x14
cmp edi, esi
je 0x42ef73
cmp dword [ebp + 8], esi
je 0x42ef73
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x42f010
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x42f010
mov dword [ebp - 0x2c], esi
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.IOCTL_DISK_GET_DRIVE_GEOMETRY...
push 3
stosd dword es:[edi], eax
call fcn.00451479
pop ecx
pop ecx
push esi
push 0x1f40
lea eax, [ebp + 8]
push eax
push 0x18
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push 0x70000
push dword [ebp - 0xc]
call fcn.00448484
mov edi, eax
cmp edi, esi
je 0x42efc4
jmp 0x42efca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x457de4
cmp edi, esi
jne 0x42efd8
mov ecx, 0x457de0
push dword [ebp + 8]
push eax
push ecx
push ebx
push 3
call fcn.00451479
add esp, 0x14
cmp edi, esi
je 0x42f010
mov eax, dword [ebp - 0x1c]
mul dword [ebp - 0x18]
push esi
push dword [ebp - 0x20]
push edx
push eax
call fcn.00453ea3
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edx
push eax
call fcn.00453ea3
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 1
jne 0x42f03a
cmp dword [ebp - 4], esi
jne 0x42f03a
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042eb4b
cdq
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push dword [ebp - 4]
push dword [ebp - 8]
push str.size_I64i
push 3
call fcn.00451479
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret 4