Function at 0x407f41
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1002c
call fcn.004238d0
mov eax, dword [0x43b028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x1002c]
push ecx
push 0x10000
lea ecx, [ebp - 0x10008]
push ecx
push edi
push edi
push 0x70050
push eax
mov dword [ebp - 0x10020], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4081f3
mov dword [ebp - 0x10018], edi
cmp dword [ebp - 0x10004], edi
jbe 0x4081f0
mov ebx, dword [sym.imp.MSVCR90.dll_wcscpy_s]
lea edi, [ebp - 0xffb8]
xor ecx, ecx
mov dword [ebp - 0x1000c], ecx
cmp dword [edi - 0x20], ecx
jne 0x4081d2
mov al, byte [edi]
cmp al, 5
je 0x4081d2
cmp al, 0xf
je 0x4081d2
test al, al
je 0x4081d2
lea eax, [esi + 0x580]
mov dword [ebp - 0x10010], ecx
mov dword [ebp - 0x10014], eax
cmp dword [ebp - 0x10010], 0x16400
jae 0x408051
mov eax, dword [ebp - 0x10014]
mov eax, dword [eax]
cmp eax, dword [edi - 8]
jne 0x408035
xor eax, eax
jmp 0x40802d
cmp eax, 0x20
jae 0x408035
mov ecx, dword [ebp - 0x10010]
mov edx, dword [ebp + 0xc]
add ecx, eax
cmp dword [esi + ecx*4 + 4], edx
jne 0x40802a
mov dword [ebp - 0x1000c], 1
inc eax
xor ecx, ecx
cmp dword [ebp - 0x1000c], ecx
je 0x40800a
add dword [ebp - 0x10014], 0x590
add dword [ebp - 0x10010], 0x164
cmp dword [ebp - 0x1000c], ecx
je 0x407fed
cmp dword [ebp - 0x1000c], 1
je 0x4081d2
mov dword [ebp - 0x1000c], ecx
mov eax, esi
cmp dword [eax], 0xffffffff
je 0x408087
inc dword [ebp - 0x1000c]
add eax, 0x590
cmp dword [ebp - 0x1000c], 0x100
jb 0x408066
jmp 0x4081d2
mov eax, dword [ebp - 0x1000c]
imul eax, eax, 0x590
add esi, eax
mov eax, dword [edi - 0x18]
mov ecx, dword [edi - 0x10]
mov edx, dword [edi - 0xc]
mov dword [esi + 0x570], eax
mov eax, dword [edi - 0x14]
mov dword [esi + 0x574], eax
mov eax, dword [edi - 8]
mov dword [esi + 0x580], eax
movzx eax, byte [edi + 1]
mov dword [esi + 0x584], eax
mov al, byte [edi]
mov byte [esi + 0x588], al
lea eax, [esi + 0x90]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, edx
mov dword [esi + 0x8c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1000c]
push 0x20
mov dword [esi], eax
lea eax, [esi + 0x4a8]
push eax
push 0x400
push edx
push ecx
mov dword [esi + 0x578], ecx
mov dword [esi + 0x57c], edx
mov dword [esi + 0x88], ecx
call dword [sym.imp.ASOHelper.dll_int___cdecl_BytesToString_unsigned_long_long_unsigned___int64___unsigned_int__wchar_t___unsigned_int_]
push 0x42a474
lea eax, [ebp - 0x1001c]
push str.IDS_NA
push eax
call dword [sym.imp.ASOHelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_STLoadStringFromMainINI_wchar_t_const___wchar_t_const__]
push dword [eax]
lea eax, [esi + 0x98]
push 0x104
push eax
call ebx
add esp, 0x2c
lea ecx, [ebp - 0x1001c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0x42a474
lea eax, [ebp - 0x10024]
push str.IDS_NA
push eax
call dword [sym.imp.ASOHelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_STLoadStringFromMainINI_wchar_t_const___wchar_t_const__]
push dword [eax]
lea eax, [esi + 0x2a0]
push 0x104
push eax
call ebx
add esp, 0x18
lea ecx, [ebp - 0x10024]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0x42a474
lea eax, [ebp - 0x10028]
push str.IDS_NA
push eax
call dword [sym.imp.ASOHelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_STLoadStringFromMainINI_wchar_t_const___wchar_t_const__]
push dword [eax]
lea eax, [esi + 0x4e8]
push 0x20
push eax
call ebx
add esp, 0x18
lea ecx, [ebp - 0x10028]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
movzx eax, byte [esi + 0x588]
push eax
call fcn.00407e5e
push eax
add esi, 0x528
push 0x20
push esi
call ebx
mov esi, dword [ebp - 0x10020]
add esp, 0x10
inc dword [ebp - 0x10018]
mov eax, dword [ebp - 0x10018]
add edi, 0x90
cmp eax, dword [ebp - 0x10004]
jb 0x407fb0
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423038
leave
ret