Function at 0x42d293
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.GetStorageSizeStrings__s_...
push 3
pop ebx
push ebx
call fcn.0044d31e
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov ecx, dword [ebp + 0x14]
add esp, 0xc
push dword [ebp + 8]
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.00427a8d
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x452e70
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 0x42d4da
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42d4da
push dword [ebp + 8]
push str.CreateFile__s__0_...
push ebx
call fcn.0044d31e
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.0044d31e
add esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
je 0x42d79e
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
mov dword [ebp - 0xc], esi
call fcn.0044d31e
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x50a00c]
push esi
lea eax, [ebp - 0xc]
jne 0x42d3b3
push 0x1f40
push eax
push 0x28
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 0x700a0
push dword [ebp + 8]
call fcn.00444a1c
jmp 0x42d3ca
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 0x42d3d2
jmp 0x42d3d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x453d34
cmp edi, esi
jne 0x42d3e6
mov ecx, 0x453d30
push dword [ebp - 0xc]
mov ebx, str.__S_u_br_u
push eax
push ecx
push ebx
push 3
call fcn.0044d31e
add esp, 0x14
cmp edi, esi
je 0x42d412
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 0x42d4ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x42d4bc
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.0044d31e
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 0x42d45f
jmp 0x42d465
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x453d34
cmp edi, esi
jne 0x42d473
mov ecx, 0x453d30
push dword [ebp - 0xc]
push eax
push ecx
push ebx
push 3
call fcn.0044d31e
add esp, 0x14
cmp edi, esi
je 0x42d4bc
mov eax, dword [ebp - 0x1c]
mul dword [ebp - 0x18]
push esi
push dword [ebp - 0x20]
push edx
push eax
call fcn.0044fd26
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edx
push eax
call fcn.0044fd26
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push eax
push str._size_I64u
push 3
call fcn.0044d31e
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
cmp eax, 0x5b4
jne 0x42d71a
call fcn.004446de
jmp 0x42d720
push dword [ebp + 8]
push str.CreateFile__s__0_...
push ebx
call fcn.0044d31e
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 - 0x10], edi
cmp edi, 0xffffffff
jne 0x42d50b
xor eax, eax
jmp 0x42d79e
push edi
push str._h0x_08X
push ebx
call fcn.0044d31e
push str.IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS...
push ebx
call fcn.0044d31e
add esp, 0x14
push esi
lea eax, [ebp - 0xc]
push eax
push 0xc08
push 0x507a90
push esi
push esi
push 0x560000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
cmp edi, esi
je 0x42d54a
jmp 0x42d550
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x453d34
cmp edi, esi
jne 0x42d55e
mov ecx, 0x453d30
push dword [ebp - 0xc]
mov ebx, str.__S_u_br_u
push eax
push ecx
push ebx
push 3
call fcn.0044d31e
add esp, 0x14
cmp edi, esi
je 0x42d5a2
cmp dword [ebp - 0xc], esi
je 0x42d5a2
mov ecx, dword [0x507a90]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp ecx, esi
jbe 0x42d5a2
mov eax, 0x507aa8
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 0x42d591
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 1
jne 0x42d751
cmp dword [ebp - 4], esi
jne 0x42d751
push dword [ebp + 8]
push str.CreateFile__s__r_...
push 3
pop edi
push edi
call fcn.0044d31e
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 - 0x10], eax
cmp eax, 0xffffffff
je 0x42d504
push eax
push str._h0x_08X
push edi
call fcn.0044d31e
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.0044d31e
add esp, 0x14
push esi
push 0x1f40
lea eax, [ebp - 0xc]
push eax
push 8
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push 0x7405c
push dword [ebp - 0x10]
call fcn.00444a1c
mov edi, eax
cmp edi, esi
je 0x42d63c
jmp 0x42d642
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x453d34
cmp edi, esi
jne 0x42d650
mov ecx, 0x453d30
push dword [ebp - 0xc]
push eax
push ecx
push ebx
push 3
call fcn.0044d31e
add esp, 0x14
cmp edi, esi
je 0x42d67a
cmp dword [ebp - 0xc], esi
je 0x42d67a
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
jmp 0x42d717
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x42d717
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.0044d31e
pop ecx
pop ecx
push esi
push 0x1f40
lea eax, [ebp - 0xc]
push eax
push 0x18
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push 0x70000
push dword [ebp - 0x10]
call fcn.00444a1c
mov edi, eax
cmp edi, esi
je 0x42d6cb
jmp 0x42d6d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x453d34
cmp edi, esi
jne 0x42d6df
mov ecx, 0x453d30
push dword [ebp - 0xc]
push eax
push ecx
push ebx
push 3
call fcn.0044d31e
add esp, 0x14
cmp edi, esi
je 0x42d717
mov eax, dword [ebp - 0x1c]
mul dword [ebp - 0x18]
push esi
push dword [ebp - 0x20]
push edx
push eax
call fcn.0044fd26
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edx
push eax
call fcn.0044fd26
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 1
jne 0x42d751
cmp dword [ebp - 4], esi
jne 0x42d751
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x42d751
cmp dword [ebp - 0x14], 2
je 0x42d747
push 5
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0x14], eax
jne 0x42d74e
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.0041cd82
push 1
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041cfb5
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042d1dc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push str.sizestr_s____s____s
push 3
call fcn.0044d31e
xor eax, eax
add esp, 0x14
cmp word [edi], si
setne al
pop edi
pop esi
pop ebx
leave
ret 0x10