Function at 0x42cd50
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.0044c79b
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.004276a4
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x451e48
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 0x42cf97
push str.53f5630d_b6bf_11d0_94f2_00a0c91efb8b
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42cf97
push dword [ebp + 8]
push str.CreateFile__s__0_...
push ebx
call fcn.0044c79b
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.0044c79b
add esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
je 0x42d25b
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.0044c79b
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x508bfc]
push esi
lea eax, [ebp - 0xc]
jne 0x42ce70
push 0x1f40
push eax
push 0x28
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 0x700a0
push dword [ebp + 8]
call fcn.00443dca
jmp 0x42ce87
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 0x42ce8f
jmp 0x42ce95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x452d0c
cmp edi, esi
jne 0x42cea3
mov ecx, 0x452d08
push dword [ebp - 0xc]
mov ebx, str.__S_u_br_u
push eax
push ecx
push ebx
push 3
call fcn.0044c79b
add esp, 0x14
cmp edi, esi
je 0x42cecf
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 0x42cf6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x42cf79
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.0044c79b
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 0x42cf1c
jmp 0x42cf22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x452d0c
cmp edi, esi
jne 0x42cf30
mov ecx, 0x452d08
push dword [ebp - 0xc]
push eax
push ecx
push ebx
push 3
call fcn.0044c79b
add esp, 0x14
cmp edi, esi
je 0x42cf79
mov eax, dword [ebp - 0x1c]
mul dword [ebp - 0x18]
push esi
push dword [ebp - 0x20]
push edx
push eax
call fcn.0044f1a2
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edx
push eax
call fcn.0044f1a2
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push eax
push str._size_I64u
push 3
call fcn.0044c79b
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
cmp eax, 0x5b4
jne 0x42d1d7
call fcn.00443a8c
jmp 0x42d1dd
push dword [ebp + 8]
push str.CreateFile__s__0_...
push ebx
call fcn.0044c79b
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 0x42cfc8
xor eax, eax
jmp 0x42d25b
push edi
push str._h0x_08X
push ebx
call fcn.0044c79b
push str.IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS...
push ebx
call fcn.0044c79b
add esp, 0x14
push esi
lea eax, [ebp - 0xc]
push eax
push 0xc08
push 0x506680
push esi
push esi
push 0x560000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
cmp edi, esi
je 0x42d007
jmp 0x42d00d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x452d0c
cmp edi, esi
jne 0x42d01b
mov ecx, 0x452d08
push dword [ebp - 0xc]
mov ebx, str.__S_u_br_u
push eax
push ecx
push ebx
push 3
call fcn.0044c79b
add esp, 0x14
cmp edi, esi
je 0x42d05f
cmp dword [ebp - 0xc], esi
je 0x42d05f
mov ecx, dword [0x506680]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp ecx, esi
jbe 0x42d05f
mov eax, 0x506698
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 0x42d04e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 1
jne 0x42d20e
cmp dword [ebp - 4], esi
jne 0x42d20e
push dword [ebp + 8]
push str.CreateFile__s__r_...
push 3
pop edi
push edi
call fcn.0044c79b
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 0x42cfc1
push eax
push str._h0x_08X
push edi
call fcn.0044c79b
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.0044c79b
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.00443dca
mov edi, eax
cmp edi, esi
je 0x42d0f9
jmp 0x42d0ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x452d0c
cmp edi, esi
jne 0x42d10d
mov ecx, 0x452d08
push dword [ebp - 0xc]
push eax
push ecx
push ebx
push 3
call fcn.0044c79b
add esp, 0x14
cmp edi, esi
je 0x42d137
cmp dword [ebp - 0xc], esi
je 0x42d137
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
jmp 0x42d1d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
jne 0x42d1d4
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.0044c79b
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.00443dca
mov edi, eax
cmp edi, esi
je 0x42d188
jmp 0x42d18e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x452d0c
cmp edi, esi
jne 0x42d19c
mov ecx, 0x452d08
push dword [ebp - 0xc]
push eax
push ecx
push ebx
push 3
call fcn.0044c79b
add esp, 0x14
cmp edi, esi
je 0x42d1d4
mov eax, dword [ebp - 0x1c]
mul dword [ebp - 0x18]
push esi
push dword [ebp - 0x20]
push edx
push eax
call fcn.0044f1a2
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edx
push eax
call fcn.0044f1a2
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 0x42d20e
cmp dword [ebp - 4], esi
jne 0x42d20e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x42d20e
cmp dword [ebp - 0x14], 2
je 0x42d204
push 5
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0x14], eax
jne 0x42d20b
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.0041ca5b
push 1
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041cc8e
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042cc99
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push str.sizestr_s____s____s
push 3
call fcn.0044c79b
xor eax, eax
add esp, 0x14
cmp word [edi], si
setne al
pop edi
pop esi
pop ebx
leave
ret 0x10