Function at 0x41a400
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470a11
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x48d000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x490c64]
mov ecx, dword [0x490c68]
cmp eax, ecx
je 0x41a460
mov edx, dword [ebp - 0x26c]
push edx
push ecx
call fcn.0041b660
mov ebx, dword [0x490c68]
add esp, 8
mov esi, eax
call fcn.0041b280
mov dword [0x490c68], esi
push 0x1680
call fcn.0041d281
add esp, 4
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x254], ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00457050
push ebx
push str..PhysicalDrive_d
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.00454ebc
add esp, 0x1c
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x258], edi
cmp edi, 0xffffffff
je 0x41a716
push 0x1680
push 0
push esi
call fcn.00457050
add esp, 0xc
push 0
lea ecx, [ebp - 0x26c]
push ecx
push 0x1680
push esi
push 0
push 0
push 0x70050
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x41a524
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41a706
xor edi, edi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], ebx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x250], ecx
lea ecx, [esi + 0x38]
mov dword [ebp - 0x24c], ecx
cmp dword [ecx + 0x10], 0
je 0x41a692
mov esi, dword [ecx]
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edx
cmp ecx, eax
jae 0x41a607
mov edx, ecx
cmp edi, edx
ja 0x41a607
mov esi, ecx
sub esi, edi
cmp eax, ebx
jne 0x41a5e2
mov edx, eax
sub edx, edi
sar edx, 4
cmp edx, 0xffffffe
ja 0x41a973
mov ecx, ebx
sub ecx, edi
inc edx
sar ecx, 4
cmp edx, ecx
jbe 0x41a5e2
mov eax, ecx
shr eax, 1
mov edi, 0xfffffff
sub edi, eax
cmp edi, ecx
jae 0x41a5bd
xor ecx, ecx
jmp 0x41a5bf
add ecx, eax
cmp ecx, edx
jae 0x41a5c5
mov ecx, edx
lea edx, [ebp - 0x268]
call fcn.0041b2c0
mov ebx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x264]
mov edi, dword [ebp - 0x268]
and esi, 0xfffffff0
add esi, edi
test eax, eax
je 0x41a683
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
jmp 0x41a683
cmp eax, ebx
jne 0x41a662
mov edx, eax
sub edx, edi
sar edx, 4
cmp edx, 0xffffffe
ja 0x41a973
mov ecx, ebx
sub ecx, edi
inc edx
sar ecx, 4
cmp edx, ecx
jbe 0x41a662
mov eax, ecx
shr eax, 1
mov edi, 0xfffffff
sub edi, eax
cmp edi, ecx
jae 0x41a63d
xor ecx, ecx
jmp 0x41a63f
add ecx, eax
cmp ecx, edx
jae 0x41a645
mov ecx, edx
lea edx, [ebp - 0x268]
call fcn.0041b2c0
mov ebx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x264]
mov edi, dword [ebp - 0x268]
test eax, eax
je 0x41a683
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x224]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x21c]
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x24c]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov edx, dword [ebp - 0x250]
inc edx
add ecx, 0x90
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x24c], ecx
cmp edx, 0x1e
jl 0x41a550
lea ecx, [ebp - 0x268]
call fcn.0041b020
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x268]
xor esi, esi
cmp eax, esi
je 0x41a6e8
push eax
call fcn.00454d68
add esp, 4
mov ebx, dword [ebp - 0x254]
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], esi
mov esi, dword [ebp - 0x270]
inc ebx
mov dword [ebp - 0x254], ebx
cmp ebx, 0x64
jl 0x41a47d
push esi
call fcn.00454d68
mov eax, dword [0x490c68]
mov edi, dword [0x490c64]
sub eax, edi
xor esi, esi
sar eax, 4
add esp, 4
mov dword [ebp - 0x258], esi
test eax, eax
je 0x41a8a9
mov eax, dword [esi + edi + 4]
sub eax, dword [esi + edi]
sar eax, 4
test eax, eax
je 0x41a886
lea edx, [eax - 1]
test edx, edx
je 0x41a886
mov eax, 1
xor ecx, ecx
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x24c], edx
nop
mov edx, dword [esi + edi + 4]
sub edx, dword [esi + edi]
mov dword [ebp - 0x250], eax
sar edx, 4
cmp eax, edx
jae 0x41a870
lea edx, [ecx + 0x10]
jmp 0x41a790
mov eax, dword [esi + edi]
mov ebx, dword [eax + ecx]
mov dword [ebp - 0x268], ebx
mov ebx, dword [eax + ecx + 4]
mov dword [ebp - 0x264], ebx
mov ebx, dword [eax + ecx + 8]
mov dword [ebp - 0x260], ebx
mov ebx, dword [eax + edx]
mov dword [ebp - 0x238], ebx
mov ebx, dword [eax + edx + 4]
mov dword [ebp - 0x234], ebx
mov ebx, dword [eax + ecx + 0xc]
cmp ebx, dword [eax + edx + 0xc]
jl 0x41a848
jg 0x41a7db
mov ebx, dword [eax + edx + 8]
cmp dword [ebp - 0x260], ebx
jbe 0x41a848
mov ebx, dword [eax + ecx + 4]
mov edi, dword [eax + ecx]
mov dword [ebp - 0x224], ebx
mov ebx, dword [eax + ecx + 8]
mov dword [ebp - 0x220], ebx
mov ebx, dword [eax + ecx + 0xc]
mov dword [ebp - 0x21c], ebx
mov ebx, dword [eax + edx]
mov dword [eax + ecx], ebx
mov ebx, dword [eax + edx + 4]
mov dword [eax + ecx + 4], ebx
mov ebx, dword [eax + edx + 8]
mov dword [eax + ecx + 8], ebx
mov ebx, dword [eax + edx + 0xc]
mov dword [eax + ecx + 0xc], ebx
mov eax, dword [0x490c64]
mov eax, dword [esi + eax]
mov dword [eax + edx], edi
mov edi, dword [ebp - 0x224]
add eax, edx
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x220]
mov dword [eax + 8], edi
mov edi, dword [ebp - 0x21c]
mov dword [eax + 0xc], edi
mov edi, dword [0x490c64]
mov ebx, dword [esi + edi + 4]
sub ebx, dword [esi + edi]
mov eax, dword [ebp - 0x250]
inc eax
sar ebx, 4
add edx, 0x10
mov dword [ebp - 0x250], eax
cmp eax, ebx
jb 0x41a790
mov eax, dword [ebp - 0x254]
inc eax
add ecx, 0x10
dec dword [ebp - 0x24c]
mov dword [ebp - 0x254], eax
jne 0x41a770
mov ecx, dword [0x490c68]
mov eax, dword [ebp - 0x258]
sub ecx, edi
inc eax
sar ecx, 4
add esi, 0x10
mov dword [ebp - 0x258], eax
cmp eax, ecx
jb 0x41a73f
mov esi, 0x43
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x258], esi
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x254], eax
mov dword [ebp - 4], 1
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x24c], eax
push esi
push 0x480ae8
lea edi, [ebp - 0x24c]
mov byte [ebp - 4], 2
call fcn.004019a0
push esi
push str.._c:
lea edi, [ebp - 0x254]
call fcn.004019a0
mov edi, dword [ebp - 0x254]
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a97d
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a964
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x10]
jmp 0x41aa93
push str.vector_T__too_long
call fcn.0041d2ae
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x41aa56
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea edx, [ebp - 0x270]
push edx
push 0x20
lea eax, [ebp - 0x248]
push eax
push 0
push 0
push 0x560000
push esi
call edi
test eax, eax
je 0x41aa56
push 0
lea ecx, [ebp - 0x270]
push ecx
push 0x90
lea edx, [ebp - 0x300]
push edx
push 0
push 0
push 0x70048
push esi
call edi
test eax, eax
je 0x41aa56
mov ecx, dword [0x490c68]
mov edx, dword [0x490c64]
mov eax, dword [ebp - 0x240]
sub ecx, edx
sar ecx, 4
cmp eax, ecx
ja 0x41aa56
shl eax, 4
add eax, edx
mov edx, dword [eax + 4]
sub edx, dword [eax]
xor ecx, ecx
sar edx, 4
test edx, edx
je 0x41aa56
mov edx, dword [eax]
add edx, 8
jmp 0x41aa20
mov edi, dword [edx]
cmp edi, dword [ebp - 0x2f8]
jne 0x41aa35
mov edi, dword [edx + 4]
cmp edi, dword [ebp - 0x2f4]
je 0x41aa47
mov edi, dword [eax + 4]
sub edi, dword [eax]
inc ecx
sar edi, 4
add edx, 0x10
cmp ecx, edi
jb 0x41aa20
jmp 0x41aa56
mov eax, dword [eax]
mov dx, word [ebp - 0x250]
add ecx, ecx
mov word [eax + ecx*8], dx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41aa83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x254]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41aaac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x250]
mov esi, dword [ebp - 0x258]
inc eax
inc esi
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x258], esi
cmp ax, 0x5a
jb 0x41a8ba
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00454d73
mov esp, ebp
pop ebp
ret