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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44969e
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x2b8], ebx
mov edi, 7
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x2bc], esi
mov word [esi], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2b8], 1
call fcn.0040a430
test al, al
je 0x40b28e
mov eax, dword [ebp + 8]
and eax, 0xffdf
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x40b28e
mov edx, dword [0x453dc8]
mov ecx, dword [0x453dcc]
mov dword [ebp - 0x24], edx
mov edx, dword [0x453dd0]
mov dword [ebp - 0x20], ecx
movzx ecx, word [0x453dd4]
mov dword [ebp - 0x1c], edx
mov edx, dword [str..X:]
mov word [ebp - 0x18], cx
mov ecx, dword [0x453ddc]
mov dword [ebp - 0x23c], edx
mov edx, dword [0x453de0]
mov dword [ebp - 0x238], ecx
movzx ecx, word [0x453de4]
mov dword [ebp - 0x234], edx
lea edx, [ebp - 0x24]
push edx
mov word [ebp - 0x24], ax
mov word [ebp - 0x1c], ax
mov word [ebp - 0x230], cx
mov word [ebp - 0x234], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x40b28e
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b289
push ebx
lea ecx, [ebp - 0x2b4]
push ecx
push 0xc
lea edx, [ebp - 0x2a8]
push edx
push ebx
push ebx
push 0x2d1080
push edi
mov dword [ebp - 0x2ac], 0xffffffff
mov dword [ebp - 0x2b4], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x40b1c3
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x2ac], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x2ac]
cmp edi, 0xffffffff
je 0x40b289
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, ebx
je 0x40b289
lea eax, [ebp - 0x22c]
push eax
push edi
call fcn.0040b3f0
add esp, 8
cmp eax, ebx
je 0x40b289
push ebx
push eax
lea ecx, [ebp - 0x2ac]
push ecx
mov dword [ebp - 0x2ac], ebx
call dword [0x460ffc]
mov eax, dword [ebp - 0x2ac]
cmp eax, ebx
je 0x40b289
push ebx
push eax
lea edx, [ebp - 0x2b0]
push edx
mov dword [ebp - 0x2b0], ebx
call dword [0x461000]
mov eax, dword [ebp - 0x2b0]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042b301
mov ecx, dword [ebp - 0x2ac]
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x2b0]
push ebx
inc eax
push eax
push edi
push ecx
call dword [0x461004]
push edi
mov ecx, esi
call fcn.00408f20
push edi
call fcn.0042c59d
add esp, 4
mov edi, 7
cmp dword [esi + 0x10], ebx
je 0x40b3ca
xor edx, edx
mov dword [ebp - 0x288], edi
mov dword [ebp - 0x28c], ebx
mov word [ebp - 0x29c], dx
mov dword [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x270], ebx
mov word [ebp - 0x280], ax
xor ecx, ecx
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x254], ebx
mov word [ebp - 0x264], cx
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], dx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x280]
push ecx
lea edx, [ebp - 0x29c]
push edx
lea ecx, [ebp - 0x248]
mov edx, esi
mov byte [ebp - 4], 4
call fcn.0040ab50
test al, al
je 0x40b32b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x248]
push eax
mov ecx, esi
call fcn.00409cf0
cmp dword [ebp - 0x234], 8
jb 0x40b343
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.0042b3ae
add esp, 4
xor edx, edx
cmp dword [ebp - 0x250], 8
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], dx
jb 0x40b370
mov eax, dword [ebp - 0x264]
push eax
call fcn.0042b3ae
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x26c], 8
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x254], ebx
mov word [ebp - 0x264], cx
jb 0x40b39d
mov edx, dword [ebp - 0x280]
push edx
call fcn.0042b3ae
add esp, 4
xor eax, eax
cmp dword [ebp - 0x288], 8
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x270], ebx
mov word [ebp - 0x280], ax
jb 0x40b3ca
mov ecx, dword [ebp - 0x29c]
push ecx
call fcn.0042b3ae
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042bd98
mov esp, ebp
pop ebp
ret 4