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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x413cc0
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x413f57
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004130dc
mov eax, dword [ebp - 4]
add eax, 0xc
mov dl, 1
call fcn.00413020
xor eax, eax
push ebp
push 0x413f2d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
call fcn.0040a680
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x413f6c
call fcn.004046e8
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
dec eax
test eax, eax
jl 0x413f14
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
call fcn.00407d6c
mov eax, dword [ebp - 0x14]
call fcn.0040489c
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
push 0x413f7c
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
call fcn.0040a680
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.0040475c
mov ecx, dword [ebp - 0x3c]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
mov eax, dword [ebp - 0x10]
sub eax, 2
je 0x413da9
sub eax, 3
jne 0x413f08
mov edx, dword [0x412cfc]
mov eax, 0xc
call fcn.00405204
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00404420
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 8], edx
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x14]
mov edx, 0x413f8c
call fcn.004046e8
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.004048f4
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov edx, 0x413f9c
call fcn.004046e8
mov eax, dword [ebp - 0x48]
call fcn.0040489c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x413f01
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x413f8c
push dword [ebp - 0x14]
push 0x413fac
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.0040475c
mov ecx, dword [ebp - 0x50]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xc
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x413edc
push dword [ebp - 0x14]
push 0x413fbc
mov eax, dword [ebp - 0x28]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x58]
call fcn.0040a784
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.0040475c
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
call fcn.00407b88
jmp 0x413eea
mov edx, dword [0x412cfc]
mov eax, dword [ebp - 0xc]
call fcn.00405218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413f08
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
inc dword [ebp - 8]
dec dword [ebp - 0x20]
jne 0x413d46
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413f34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00407eb8
ret