Function at 0x42d4e8
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.0044def7
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.00427c74
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x453e70
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 0x42d72f
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42d72f
push dword [ebp + 8]
push str.CreateFile__s__0_...
push ebx
call fcn.0044def7
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.0044def7
add esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
je 0x42d9f3
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.0044def7
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x50b0f4]
push esi
lea eax, [ebp - 0xc]
jne 0x42d608
push 0x1f40
push eax
push 0x28
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 0x700a0
push dword [ebp + 8]
call fcn.00445535
jmp 0x42d61f
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 0x42d627
jmp 0x42d62d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x454d34
cmp edi, esi
jne 0x42d63b
mov ecx, 0x454d30
push dword [ebp - 0xc]
mov ebx, str.__S_u_br_u
push eax
push ecx
push ebx
push 3
call fcn.0044def7
add esp, 0x14
cmp edi, esi
je 0x42d667
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 0x42d702
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x42d711
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.0044def7
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 0x42d6b4
jmp 0x42d6ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x454d34
cmp edi, esi
jne 0x42d6c8
mov ecx, 0x454d30
push dword [ebp - 0xc]
push eax
push ecx
push ebx
push 3
call fcn.0044def7
add esp, 0x14
cmp edi, esi
je 0x42d711
mov eax, dword [ebp - 0x1c]
mul dword [ebp - 0x18]
push esi
push dword [ebp - 0x20]
push edx
push eax
call fcn.004508fd
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edx
push eax
call fcn.004508fd
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push eax
push str._size_I64u
push 3
call fcn.0044def7
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
cmp eax, 0x5b4
jne 0x42d96f
call fcn.004451f7
jmp 0x42d975
push dword [ebp + 8]
push str.CreateFile__s__0_...
push ebx
call fcn.0044def7
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 0x42d760
xor eax, eax
jmp 0x42d9f3
push edi
push str._h0x_08X
push ebx
call fcn.0044def7
push str.IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS...
push ebx
call fcn.0044def7
add esp, 0x14
push esi
lea eax, [ebp - 0xc]
push eax
push 0xc08
push 0x508ad0
push esi
push esi
push 0x560000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
cmp edi, esi
je 0x42d79f
jmp 0x42d7a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x454d34
cmp edi, esi
jne 0x42d7b3
mov ecx, 0x454d30
push dword [ebp - 0xc]
mov ebx, str.__S_u_br_u
push eax
push ecx
push ebx
push 3
call fcn.0044def7
add esp, 0x14
cmp edi, esi
je 0x42d7f7
cmp dword [ebp - 0xc], esi
je 0x42d7f7
mov ecx, dword [0x508ad0]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp ecx, esi
jbe 0x42d7f7
mov eax, 0x508ae8
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 0x42d7e6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 1
jne 0x42d9a6
cmp dword [ebp - 4], esi
jne 0x42d9a6
push dword [ebp + 8]
push str.CreateFile__s__r_...
push 3
pop edi
push edi
call fcn.0044def7
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 0x42d759
push eax
push str._h0x_08X
push edi
call fcn.0044def7
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.0044def7
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.00445535
mov edi, eax
cmp edi, esi
je 0x42d891
jmp 0x42d897
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x454d34
cmp edi, esi
jne 0x42d8a5
mov ecx, 0x454d30
push dword [ebp - 0xc]
push eax
push ecx
push ebx
push 3
call fcn.0044def7
add esp, 0x14
cmp edi, esi
je 0x42d8cf
cmp dword [ebp - 0xc], esi
je 0x42d8cf
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
jmp 0x42d96c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x42d96c
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.0044def7
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.00445535
mov edi, eax
cmp edi, esi
je 0x42d920
jmp 0x42d926
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x454d34
cmp edi, esi
jne 0x42d934
mov ecx, 0x454d30
push dword [ebp - 0xc]
push eax
push ecx
push ebx
push 3
call fcn.0044def7
add esp, 0x14
cmp edi, esi
je 0x42d96c
mov eax, dword [ebp - 0x1c]
mul dword [ebp - 0x18]
push esi
push dword [ebp - 0x20]
push edx
push eax
call fcn.004508fd
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edx
push eax
call fcn.004508fd
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 0x42d9a6
cmp dword [ebp - 4], esi
jne 0x42d9a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x42d9a6
cmp dword [ebp - 0x14], 2
je 0x42d99c
push 5
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0x14], eax
jne 0x42d9a3
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.0041cf63
push 1
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041d196
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042d431
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push str.sizestr_s____s____s
push 3
call fcn.0044def7
xor eax, eax
add esp, 0x14
cmp word [edi], si
setne al
pop edi
pop esi
pop ebx
leave
ret 0x10