Function at 0x407270
Capabilities:
Get disk information via ioctl

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c0e8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xa8], esi
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x8c], eax
mov dword [esi + 0x5d05], eax
lea eax, [ebp - 0x88]
push eax
call fcn.004095e0
mov edi, eax
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x40731c
mov ecx, eax
call fcn.00403740
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [edi + 0x10]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
movq qword [ebp - 0x60], xmm0
mov word [edi], ax
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x407359
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40734f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407547
push edx
push ecx
call fcn.004153c5
add esp, 8
cmp dword [ebp - 0x60], 0
mov edi, dword [ebp - 0x70]
je 0x4074f2
cmp dword [esi + 0x1d], 0
mov dword [ebp - 0x98], 0
jle 0x4074af
lea eax, [esi + 0x5d09]
lea edi, [esi + 0x21]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x9c], edi
nop
mov eax, dword [0x45d4d4]
lea esi, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
movq xmm0, qword [str..A:]
cmovae esi, dword [ebp - 0x70]
mov dword [ebp - 0x50], eax
movzx eax, word [0x45d4d8]
push 0x32
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x4a]
push 0
push eax
movq qword [ebp - 0x58], xmm0
call fcn.0042d440
movzx eax, word [esi]
add esp, 0xc
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x58]
mov dword [ebp - 0xa0], 0xffffffff
mov dword [ebp - 0x90], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa4], eax
cmp eax, 0xffffffff
je 0x407484
push 0
lea ecx, [ebp - 0xac]
push ecx
push 0xc
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x407438
mov eax, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x90], eax
jmp 0x40743e
mov esi, dword [ebp - 0xa0]
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
js 0x407484
cmp dword [ebp - 0x90], 0
jl 0x407484
cmp dword [edi], esi
jne 0x407484
mov eax, dword [ebp - 0x94]
mov esi, edi
inc dword [ebp - 0x8c]
mov edi, eax
mov ecx, 0x129
add eax, 0x4a5
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x94], eax
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x98]
add edi, 0x4a5
mov esi, dword [ebp - 0xa8]
inc eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], edi
cmp eax, dword [esi + 0x1d]
jl 0x407390
mov edi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x8c]
mov dword [esi + 0x5d05], eax
lea eax, [esi + 0x5d0d]
cmp dword [eax + 0x14], 8
jb 0x4074c9
mov eax, dword [eax]
push eax
push dword [esi + 0x5d09]
push str._INF__CDiskManager::iGetWindowsDisk__windows_disk_num_:__d__model_:__s
call fcn.00410a90
add esp, 0xc
call fcn.00403470
cmp dword [ebp - 0x8c], 0
je 0x4074f2
mov esi, 1
jmp 0x4074f4
xor esi, esi
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x407527
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40751d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40754c
push ecx
push edi
call fcn.004153c5
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00414dec
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004375f1
call fcn.004375f1
int3