Function at 0x42b8d4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push esi
push edi
push dword [ebp + 8]
push str.GetStorageSizeString__s_...
push 3
pop ebx
push ebx
call fcn.00449e4d
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push dword [ebp + 8]
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
lea eax, [ebp - 0x264]
push eax
call fcn.00426a9d
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x44fd70
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x42bb0c
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42bb0c
push dword [ebp + 8]
push str.CreateFile__s__0_...
push ebx
call fcn.00449e4d
add esp, 0xc
push esi
push esi
push ebx
push esi
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
push str._h0x_08X
push ebx
mov dword [ebp + 8], eax
call fcn.00449e4d
add esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
je 0x42bdac
push 9
pop ecx
push str.IOCTL_DISK_GET_DRIVE_GEOMETRY_EX...
mov dword [ebp - 0x5c], esi
lea edi, [ebp - 0x58]
push ebx
rep stosd dword es:[edi], eax
call fcn.00449e4d
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x505b04]
push esi
lea eax, [ebp - 0xc]
jne 0x42b9e5
push 0x1f40
push eax
push 0x28
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 0x700a0
push dword [ebp + 8]
call fcn.004415ce
jmp 0x42b9fc
push eax
push 0x28
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 0x700a0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
cmp edi, esi
je 0x42ba04
jmp 0x42ba0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x46d2d0
cmp edi, esi
jne 0x42ba18
mov ecx, 0x46d2cc
push dword [ebp - 0xc]
mov ebx, str.__S_u_br_u
push eax
push ecx
push ebx
push 3
call fcn.00449e4d
add esp, 0x14
cmp edi, esi
je 0x42ba44
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
push ecx
jmp 0x42badf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x42baee
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.00449e4d
pop ecx
pop ecx
push esi
lea eax, [ebp - 0xc]
push eax
push 0x18
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push 0x70000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
cmp edi, esi
je 0x42ba91
jmp 0x42ba97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x46d2d0
cmp edi, esi
jne 0x42baa5
mov ecx, 0x46d2cc
push dword [ebp - 0xc]
push eax
push ecx
push ebx
push 3
call fcn.00449e4d
add esp, 0x14
cmp edi, esi
je 0x42baee
mov eax, dword [ebp - 0x1c]
mul dword [ebp - 0x18]
push esi
push dword [ebp - 0x20]
push edx
push eax
call fcn.0044c852
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edx
push eax
call fcn.0044c852
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push eax
push str._size_I64u
push 3
call fcn.00449e4d
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
cmp eax, 0x5b4
jne 0x42bd4c
call fcn.004412dd
jmp 0x42bd52
push dword [ebp + 8]
push str.CreateFile__s__0_...
push ebx
call fcn.00449e4d
add esp, 0xc
push esi
push esi
push ebx
push esi
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, 0xffffffff
jne 0x42bb3d
xor eax, eax
jmp 0x42bdac
push edi
push str._h0x_08X
push ebx
call fcn.00449e4d
push str.IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS...
push ebx
call fcn.00449e4d
add esp, 0x14
push esi
lea eax, [ebp - 0x10]
push eax
push 0xc08
push 0x503640
push esi
push esi
push 0x560000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
cmp edi, esi
je 0x42bb7c
jmp 0x42bb82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x46d2d0
cmp edi, esi
jne 0x42bb90
mov ecx, 0x46d2cc
push dword [ebp - 0x10]
mov ebx, str.__S_u_br_u
push eax
push ecx
push ebx
push 3
call fcn.00449e4d
add esp, 0x14
cmp edi, esi
je 0x42bbd4
cmp dword [ebp - 0x10], esi
je 0x42bbd4
mov ecx, dword [0x503640]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp ecx, esi
jbe 0x42bbd4
mov eax, 0x503658
mov edx, dword [eax]
add dword [ebp - 8], edx
mov edx, dword [eax + 4]
adc dword [ebp - 4], edx
add eax, 0x18
dec ecx
jne 0x42bbc3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 1
jne 0x42bd83
cmp dword [ebp - 4], esi
jne 0x42bd83
push dword [ebp + 8]
push str.CreateFile__s__r_...
push 3
pop edi
push edi
call fcn.00449e4d
add esp, 0xc
push esi
push esi
push edi
push esi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x42bb36
push eax
push str._h0x_08X
push edi
call fcn.00449e4d
xor eax, eax
push str.IOCTL_DISK_GET_LENGTH_INFO...
mov dword [ebp - 0x34], esi
lea edi, [ebp - 0x30]
push 3
stosd dword es:[edi], eax
call fcn.00449e4d
add esp, 0x14
push esi
push 0x1f40
lea eax, [ebp - 0x10]
push eax
push 8
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push 0x7405c
push dword [ebp - 0xc]
call fcn.004415ce
mov edi, eax
cmp edi, esi
je 0x42bc6e
jmp 0x42bc74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x46d2d0
cmp edi, esi
jne 0x42bc82
mov ecx, 0x46d2cc
push dword [ebp - 0x10]
push eax
push ecx
push ebx
push 3
call fcn.00449e4d
add esp, 0x14
cmp edi, esi
je 0x42bcac
cmp dword [ebp - 0x10], esi
je 0x42bcac
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
jmp 0x42bd49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x42bd49
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.00449e4d
pop ecx
pop ecx
push esi
push 0x1f40
lea eax, [ebp - 0x10]
push eax
push 0x18
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push 0x70000
push dword [ebp - 0xc]
call fcn.004415ce
mov edi, eax
cmp edi, esi
je 0x42bcfd
jmp 0x42bd03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x46d2d0
cmp edi, esi
jne 0x42bd11
mov ecx, 0x46d2cc
push dword [ebp - 0x10]
push eax
push ecx
push ebx
push 3
call fcn.00449e4d
add esp, 0x14
cmp edi, esi
je 0x42bd49
mov eax, dword [ebp - 0x1c]
mul dword [ebp - 0x18]
push esi
push dword [ebp - 0x20]
push edx
push eax
call fcn.0044c852
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edx
push eax
call fcn.0044c852
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 0x42bd83
cmp dword [ebp - 4], esi
jne 0x42bd83
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x42bd83
cmp dword [ebp - 0x14], 2
je 0x42bd79
push 5
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0x14], eax
jne 0x42bd80
mov dword [ebp - 8], 6
mov dword [ebp - 4], esi
mov edi, dword [ebp + 0xc]
push 1
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041c04e
push edi
push str.sizestr_s
push 3
call fcn.00449e4d
xor eax, eax
add esp, 0xc
cmp word [edi], si
setne al
pop edi
pop esi
pop ebx
leave
ret 8