Function at 0x401f3d
Capabilities:
Get disk information via ioctl

Disassembly:
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call edi
test eax, eax
je 0x40207c
push 0xf00
lea eax, [esp + 0x34c]
push 0
push eax
call fcn.004168c0
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xf00
lea edx, [esp + 0x354]
push edx
push 0
push 0
push 0x70050
push esi
call edi
test eax, eax
je 0x40207c
mov edi, dword [esp + 0x34c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ebx
push edi
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
push str.ds:0x_I64Xcy:_dmt:_dtpcy:_dspt:_dbps:_dpc:_d
push 0x200
push ebp
mov dword [esp + 0x50], edi
call fcn.00416cf2
add esp, 0x30
xor ebx, ebx
test edi, edi
jle 0x402074
lea ebp, [esp + 0x37c]
nop
cmp dword [ebp + 0x18], 0
je 0x402065
mov edx, dword [ebp]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
push ebx
push eax
push ecx
push ebx
push str.ps__d:0x_I64Xpsl__d:_d
lea edx, [esp + 0xa4]
push 0x100
push edx
call fcn.00416cf2
lea eax, [esp + 0xac]
add esp, 0x20
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402037
mov edi, dword [esp + 0x10]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402047
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
inc ebx
add ebp, 0xc0
cmp ebx, edi
jl 0x402000
mov ebp, dword [esp + 0x10]
push esi
call dword [0x42f0e0]
pop ebx
pop edi
lea eax, [esp + 0x50]
push eax
call dword [0x42f0d8]
lea ecx, [esp + 0x74]
push ecx
call dword [0x42f0d0]
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x78]
push eax
call dword [0x42f114]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
push 0
sub ecx, 0xd53e8000
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
call fcn.00416df0
movzx ecx, word [esp + 0x70]
mov esi, eax
mov eax, dword [esp + 0x50]
push eax
push ecx
mov ecx, dword [esp + 0x5c]
movzx edx, ax
mov eax, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x70]
push eax
push ecx
push edx
push ebp
lea eax, [esp + 0xe0]
push eax
push 0x5d
push esi
lea ecx, [esp + 0x1ec]
push str.key0x_.8xo_did_svol_sid2np:_dps:_dpt:_dpa:_dpl:_doi:_d
push ecx
mov edx, 0x400
call fcn.00401a60
mov al, byte [esp + 0x1f4]
add esp, 0x30
xor ecx, ecx
test al, al
je 0x40212c
lea edx, [esp + 0x1c4]
nop
movsx eax, al
inc edx
add ecx, eax
mov al, byte [edx]
test al, al
jne 0x402120
imul ecx, esi
mov esi, dword [esp + 0x1248]
lea edx, [esp + 0x1c4]
push edx
mov edx, dword [esp + 0x1250]
push ecx
push str.kid_.8x_s
push esi
call fcn.00401a60
add esp, 0x10
cmp byte [esi], 0
je 0x4021ac
lea esp, [esp]
mov al, byte [esi]
lea ecx, [eax - 0x30]
cmp cl, 5
ja 0x40216e
add al, 4
jmp 0x4021a4
lea edx, [eax - 0x36]
cmp dl, 3
ja 0x40217a
sub al, 6
jmp 0x4021a4
lea ecx, [eax - 0x61]
cmp cl, 0x15
ja 0x402186
add al, 4
jmp 0x4021a4
lea edx, [eax - 0x77]
cmp dl, 3
jbe 0x4021a2
lea ecx, [eax - 0x41]
cmp cl, 0x15
ja 0x40219a
add al, 4
jmp 0x4021a4
lea edx, [eax - 0x57]
cmp dl, 3
ja 0x4021a4
sub al, 0x16
mov byte [esi], al
inc esi
cmp byte [esi], 0
jne 0x402160
pop esi
pop ebp
add esp, 0x123c
ret