Function at 0x462d1e
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
xor eax, eax
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov byte [ebp - 1], 0
setge al
mov byte [ebp - 2], 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x462d76
xor ecx, ecx
mov cx, word [eax]
cmp cx, di
je 0x462d76
cmp word [eax + 2], 0x3a
mov byte [ebp - 1], 1
jne 0x462d60
mov dword [ebp - 0x1c], ecx
jmp 0x462d76
push 1
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0045369d
add esp, 0xc
mov byte [ebp - 2], 2
push 0x20c84c
lea ecx, [ebp - 0x28]
call fcn.004448b9
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], edi
push dword [ebp + 8]
mov ebx, dword [ebp - 0x28]
push str..PhysicalDrive_d
lea esi, [ebx + 0x20c010]
push esi
mov dword [ebp - 8], edi
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0xc
push edi
push 0x22000000
push 3
push edi
push 3
push 0x80000000
push esi
lea ecx, [ebp - 8]
call fcn.00405a2a
cmp dword [ebp - 8], edi
je 0x463042
push edi
lea eax, [ebp - 0x2c]
push eax
push 0xc
add esi, 0x820
push esi
push edi
push edi
push 0x2d1080
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x462df0
mov dword [esi], edi
push 0x200
push dword [ebp - 8]
call fcn.00441d1c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], edi
call fcn.004420fa
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x463042
cmp dword [esi], 1
sete byte [ebp + 0x13]
cmp byte [ebp + 0x13], 0
je 0x462e48
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x10]
lea eax, [ebx + 0x200010]
push dword [esi + 0x28]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004496a4
add esp, 0x24
add esi, 0x30
xor ebx, ebx
cmp dword [ebp - 0xc], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x14], edi
jle 0x463042
add esi, 0x20
mov al, byte [ebp + 0x13]
test al, al
jne 0x462e7d
cmp byte [esi], 0x42
je 0x462f17
jmp 0x462eea
push 0x10
push 0x4c68f4
push esi
call fcn.0043e4f6
add esp, 0xc
test eax, eax
jne 0x462eb1
mov eax, dword [ebp - 0x10]
mov edi, dword [esi - 0x18]
mov ebx, dword [esi - 0x14]
mov ecx, dword [esi - 0x10]
cdq
add edi, eax
adc ebx, edx
sub ecx, eax
mov eax, dword [esi - 0xc]
sbb eax, edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
jmp 0x462edc
push 0x10
push 0x4c6904
push esi
call fcn.0043e4f6
add esp, 0xc
test eax, eax
jne 0x462edc
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
push dword [esi - 0x14]
push dword [esi - 0x18]
call fcn.004acfc0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, edi
or eax, ebx
je 0x462eea
mov eax, dword [ebp - 0x38]
or eax, dword [ebp - 0x34]
jne 0x462f04
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add esi, 0x90
cmp eax, dword [ebp - 0xc]
jl 0x462e6b
jmp 0x463040
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 4], ecx
xor eax, eax
mov al, byte [ebp + 0x13]
push dword [ebp - 0x34]
and eax, 1
push dword [ebp - 0x38]
or eax, dword [ebp - 0x10]
push ebx
push edi
push eax
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.00449959
mov edi, eax
add esp, 0x1c
test edi, edi
mov dword [ebp - 0xc], edi
jle 0x463040
mov esi, dword [ebp - 0x20]
imul eax, eax, 0xb4
mov ebx, dword [ebp + 0xc]
lea eax, [eax + esi + 0x80]
push eax
mov ecx, ebx
call fcn.004448de
mov ebx, dword [ebx]
and dword [ebp + 0x10], 0
add ebx, esi
test edi, edi
mov dword [ebp - 0x14], ebx
mov esi, ebx
jle 0x46303b
mov edi, dword [ebp - 0x18]
add edi, 0x40
cmp byte [ebp - 1], 0
je 0x462faa
mov eax, dword [ebp - 0x1c]
test ax, ax
je 0x462f8a
cmp ax, word [edi]
je 0x462faa
cmp byte [ebp - 2], 0
je 0x463026
push 0x10
lea eax, [edi - 0x10]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0043e4f6
add esp, 0xc
test eax, eax
jne 0x463026
movzx eax, byte [edi - 0x20]
mov dword [ebp - 0x18], eax
mov ax, word [edi]
test ax, ax
je 0x462fbe
movzx eax, ax
jmp 0x462fc1
push 0x2a
pop eax
push 4
pop ebx
mov dword [esi], eax
push 0x10
lea eax, [edi - 0x10]
push eax
add esi, ebx
push esi
call fcn.004143a0
mov eax, dword [ebp + 8]
add esi, 0x10
mov dword [esi], eax
mov eax, dword [edi - 0x28]
add esi, ebx
mov dword [esi], eax
mov eax, dword [ebp - 0x28]
add eax, 0x20c830
mov eax, dword [eax]
add esi, ebx
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
add esi, ebx
mov dword [esi], eax
mov eax, dword [edi - 0x38]
add esi, ebx
mov dword [esi], eax
mov eax, dword [edi - 0x34]
mov dword [esi + 4], eax
mov eax, dword [edi - 0x30]
add esi, 8
mov dword [esi], eax
mov eax, dword [edi - 0x2c]
add esp, 0xc
mov dword [esi + 4], eax
add esi, 8
inc dword [ebp - 0x24]
cmp word [ebp - 0x1c], 0
jne 0x463060
mov ebx, dword [ebp - 0x14]
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
add edi, 0x90
cmp eax, dword [ebp - 0xc]
jl 0x462f77
sub esi, ebx
add dword [ebp - 0x20], esi
xor edi, edi
cmp dword [ebp - 0x30], edi
lea ecx, [ebp - 8]
jne 0x46306d
inc dword [ebp + 8]
call fcn.00402cb5
cmp dword [ebp + 8], 0x3e80
jge 0x463072
jmp 0x462d8c
lea ecx, [ebp - 8]
call fcn.00402cb5
xor esi, esi
inc esi
jmp 0x463075
call fcn.00402cb5
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
call fcn.0043e48d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret