Function at 0x404271
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
push ebx
push esi
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 8], esi
push edi
cmp dword [esi + 0x30], ebx
lea edi, [esi + 0x38]
sete al
push eax
push dword [edi]
mov dword [esi + 0x30], eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esi + 4]
mov dword [ebp - 0x78], eax
mov eax, dword [esi + 4]
push 0x3ea
push eax
cmp dword [esi + 0x30], ebx
je 0x4046a5
mov dword [ebp - 0x28], 0x96
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x48ff64
mov esi, eax
call sym.Dismx86.exe_DismMultiLanguage
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
push ebx
push 0x1009
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.0044c804
call fcn.0043d5bb
push eax
lea ecx, [ebp - 0x14]
call fcn.0043bbe8
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
cmp eax, ecx
mov dword [ebp - 0x74], ecx
jmp 0x404687
mov ecx, dword [eax]
call fcn.0044c5df
mov esi, eax
mov dword [ebp - 0x70], esi
cmp esi, 0xffffffff
je 0x404676
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.0044c656
test eax, eax
jne 0x404676
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0xc
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404676
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x40436e
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0043bb69
mov edi, dword [ebp - 0x14]
mov ecx, ebx
mov byte [ebp - 1], bl
mov dword [ebp - 0x30], ecx
cmp dword [edi + 4], ebx
je 0x404676
lea esi, [edi + 0x50]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 0x10]
or eax, dword [esi - 0xc]
je 0x404660
xor eax, eax
mov word [ebp - 0x288], ax
cmp dword [esi - 0x20], eax
jne 0x4043c1
mov al, byte [esi]
cmp al, 5
je 0x4043b8
cmp al, 0xf
je 0x4043b8
mov dword [ebp - 0x2c], 0x48ff6c
jmp 0x40443a
mov byte [ebp - 1], 1
jmp 0x404660
cmp dword [esi - 0x20], 1
jne 0x404660
push 0x10
push 0x4883a0
push esi
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x4043e9
push 8
push 0x48f880
jmp 0x404423
push 0x10
push 0x488390
push esi
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x404407
push 8
push 0x48ff74
jmp 0x404423
push 0x10
push 0x488380
push esi
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x404433
push 0x12
push str.Recovery
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
mov dword [ebp - 0x2c], 0x490094
push dword [esi - 8]
lea eax, [ebp - 0x50]
push dword [ebp - 0x3c]
push str._GLOBALROOTDeviceHarddisk_uPartition_u
push eax
call fcn.0044af44
mov esi, dword [ebp - 0x50]
add esp, 0x10
xor eax, eax
mov word [ebp - 0x498], ax
lea eax, [ebp - 0x498]
push 0x105
push eax
push esi
call dword [sym.imp.FLTLIB.DLL_FilterGetDosName]
mov eax, dword [ebp - 8]
push ebx
push ebx
push 0x1004
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx - 8]
cmp word [ebp - 0x498], bx
je 0x4044cd
lea ecx, [ebp - 0x498]
push ecx
push eax
push dword [ebp - 0x3c]
push 0x48fcd0
call sym.Dismx86.exe_DismMultiLanguage
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0044af44
add esp, 0x10
push dword [eax]
push ecx
mov ecx, dword [ebp - 8]
push dword [ebp - 0xc]
lea ecx, [ecx + 0x38]
call fcn.00431911
mov ecx, dword [ebp - 0x54]
jmp 0x4044fc
push eax
push dword [ebp - 0x3c]
push 0x48fdf0
call sym.Dismx86.exe_DismMultiLanguage
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0044af44
add esp, 0xc
push dword [eax]
push ecx
mov ecx, dword [ebp - 8]
push dword [ebp - 0xc]
lea ecx, [ecx + 0x38]
call fcn.00431911
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.0043d912
cmp byte [ebp - 1], bl
je 0x40450e
or ecx, 0xffffffff
jmp 0x40451a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x3c]
shl ecx, 0x10
or ecx, dword [eax - 8]
push ecx
mov ecx, dword [ebp - 8]
sub esp, 0xc
push ebx
push 4
push ebx
push dword [ebp - 0xc]
lea ecx, [ecx + 0x38]
call fcn.00432904
cmp word [ebp - 0x288], bx
jne 0x4045e6
xor eax, eax
mov ecx, esi
mov word [ebp - 0x498], ax
call fcn.0044c5df
push 0x104
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x5c], eax
push ecx
push ebx
push ebx
push ebx
push 0x105
lea ecx, [ebp - 0x498]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationByHandleW]
lea ecx, [ebp - 0x5c]
call fcn.0043bb32
lea eax, [ebp - 0x288]
push eax
push 0x49009c
lea eax, [ebp - 0x498]
push eax
lea ecx, [ebp - 0x68]
call fcn.0043c2b8
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.0043baed
pop ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.0043baed
pop ecx
mov ecx, dword [ebp - 8]
push ebx
sub esp, 0xc
lea ecx, [ecx + 0x38]
push dword [eax]
push 1
push 1
push dword [ebp - 0xc]
call fcn.00432904
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.0043d912
jmp 0x404603
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x288]
push ebx
sub esp, 0xc
lea ecx, [ecx + 0x38]
push eax
push 1
push 1
push dword [ebp - 0xc]
call fcn.00432904
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x6c]
push dword [eax - 0xc]
push dword [eax - 0x10]
call fcn.0044afe7
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
push ebx
sub esp, 0xc
lea ecx, [ecx + 0x38]
push dword [eax]
push 1
push 2
push dword [ebp - 0xc]
call fcn.00432904
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov ecx, dword [ebp - 8]
push ebx
sub esp, 0xc
lea ecx, [ecx + 0x38]
push dword [ebp - 0x2c]
push 1
push 3
push dword [ebp - 0xc]
call fcn.00432904
lea ecx, [esi - 0x10]
call fcn.0043d912
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
inc ecx
add esi, 0x90
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], esi
cmp ecx, dword [edi + 4]
jne 0x404388
lea ecx, [ebp - 0x70]
call fcn.0043bb32
mov eax, dword [ebp - 0x34]
add eax, 4
cmp eax, dword [ebp - 0x74]
mov dword [ebp - 0x34], eax
jne 0x404312
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [ebp - 0x4c]
call fcn.004316fe
jmp 0x4046c6
mov dword [ebp - 0x28], 0xffffff6a
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4900a0
mov esi, eax
call sym.Dismx86.exe_DismMultiLanguage
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [ebp - 0x78]
lea eax, [ebp - 0x24]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push ecx
push eax
mov ecx, edi
call fcn.0043d3ec
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], 0x3ea
push dword [ebp + ebx*4 - 0x40]
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x20], eax
add dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x40473a
lea eax, [ebp - 0x1c]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push 1
push eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
inc ebx
cmp ebx, 3
jne 0x4046fc
mov ecx, dword [ebp - 8]
call fcn.0040408f
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10