Function at 0x42e325
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push esi
push edi
push dword [ebp + 8]
push str.GetStorageSizeStrings__s_...
push 3
pop ebx
push ebx
call fcn.0044fe2e
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 - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
lea eax, [ebp - 0x260]
push eax
call fcn.004288a1
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x455eb8
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x42e569
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42e569
push dword [ebp + 8]
push str.CreateFile__s__0_...
push ebx
call fcn.0044fe2e
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.0044fe2e
add esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
je 0x42e81c
push 9
pop ecx
push str.IOCTL_DISK_GET_DRIVE_GEOMETRY_EX...
mov dword [ebp - 0x58], esi
lea edi, [ebp - 0x54]
push ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 4], esi
call fcn.0044fe2e
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x50e544]
push esi
lea eax, [ebp - 4]
jne 0x42e442
push 0x1f40
push eax
push 0x28
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x700a0
push dword [ebp + 8]
call fcn.00446f9e
jmp 0x42e459
push eax
push 0x28
lea eax, [ebp - 0x58]
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 0x42e461
jmp 0x42e467
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x456d8c
cmp edi, esi
jne 0x42e475
mov ecx, 0x456d88
push dword [ebp - 4]
mov ebx, str.__S_u_br_u
push eax
push ecx
push ebx
push 3
call fcn.0044fe2e
add esp, 0x14
cmp edi, esi
je 0x42e4a1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
push ecx
jmp 0x42e53c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x42e54b
mov dword [ebp - 0x28], esi
xor eax, eax
lea edi, [ebp - 0x24]
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.0044fe2e
pop ecx
pop ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x28]
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 0x42e4ee
jmp 0x42e4f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x456d8c
cmp edi, esi
jne 0x42e502
mov ecx, 0x456d88
push dword [ebp - 4]
push eax
push ecx
push ebx
push 3
call fcn.0044fe2e
add esp, 0x14
cmp edi, esi
je 0x42e54b
mov eax, dword [ebp - 0x18]
mul dword [ebp - 0x14]
push esi
push dword [ebp - 0x1c]
push edx
push eax
call fcn.0045284f
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push edx
push eax
call fcn.0045284f
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push eax
push str._size_I64u
push 3
call fcn.0044fe2e
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
cmp eax, 0x5b4
jne 0x42e7a9
call fcn.00446c60
jmp 0x42e7af
push dword [ebp + 8]
push str.CreateFile__s__0_...
push ebx
call fcn.0044fe2e
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 0x42e59a
xor eax, eax
jmp 0x42e81c
push edi
push str._h0x_08X
push ebx
call fcn.0044fe2e
push str.IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS...
push ebx
call fcn.0044fe2e
add esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0xc08
push 0x50bf10
push esi
push esi
push 0x560000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
cmp edi, esi
je 0x42e5d9
jmp 0x42e5df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x456d8c
cmp edi, esi
jne 0x42e5ed
mov ecx, 0x456d88
push dword [ebp - 4]
mov ebx, str.__S_u_br_u
push eax
push ecx
push ebx
push 3
call fcn.0044fe2e
add esp, 0x14
cmp edi, esi
je 0x42e631
cmp dword [ebp - 4], esi
je 0x42e631
mov ecx, dword [0x50bf10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
cmp ecx, esi
jbe 0x42e631
mov eax, 0x50bf28
mov edx, dword [eax]
add dword [ebp - 0xc], edx
mov edx, dword [eax + 4]
adc dword [ebp - 8], edx
add eax, 0x18
dec ecx
jne 0x42e620
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 1
jne 0x42e7cf
cmp dword [ebp - 8], esi
jne 0x42e7cf
push dword [ebp + 8]
push str.CreateFile__s__r_...
push 3
pop edi
push edi
call fcn.0044fe2e
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 0x42e593
push eax
push str._h0x_08X
push edi
call fcn.0044fe2e
xor eax, eax
push str.IOCTL_DISK_GET_LENGTH_INFO...
mov dword [ebp - 0x30], esi
lea edi, [ebp - 0x2c]
push 3
stosd dword es:[edi], eax
call fcn.0044fe2e
add esp, 0x14
push esi
push 0x1f40
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push 0x7405c
push dword [ebp - 0x10]
call fcn.00446f9e
mov edi, eax
cmp edi, esi
je 0x42e6cb
jmp 0x42e6d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x456d8c
cmp edi, esi
jne 0x42e6df
mov ecx, 0x456d88
push dword [ebp - 4]
push eax
push ecx
push ebx
push 3
call fcn.0044fe2e
add esp, 0x14
cmp edi, esi
je 0x42e709
cmp dword [ebp - 4], esi
je 0x42e709
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
jmp 0x42e7a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x42e7a6
mov dword [ebp - 0x28], esi
xor eax, eax
lea edi, [ebp - 0x24]
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.0044fe2e
pop ecx
pop ecx
push esi
push 0x1f40
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push 0x70000
push dword [ebp - 0x10]
call fcn.00446f9e
mov edi, eax
cmp edi, esi
je 0x42e75a
jmp 0x42e760
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x456d8c
cmp edi, esi
jne 0x42e76e
mov ecx, 0x456d88
push dword [ebp - 4]
push eax
push ecx
push ebx
push 3
call fcn.0044fe2e
add esp, 0x14
cmp edi, esi
je 0x42e7a6
mov eax, dword [ebp - 0x18]
mul dword [ebp - 0x14]
push esi
push dword [ebp - 0x1c]
push edx
push eax
call fcn.0045284f
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push edx
push eax
call fcn.0045284f
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 1
jne 0x42e7cf
cmp dword [ebp - 8], esi
jne 0x42e7cf
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042e2cb
cdq
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov edi, dword [ebp + 0xc]
push 1
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0041db8b
push 1
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0041ddbe
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0042e214
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push str.sizestr_s____s____s
push 3
call fcn.0044fe2e
xor eax, eax
add esp, 0x14
cmp word [edi], si
setne al
pop edi
pop esi
pop ebx
leave
ret 0x10