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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44968e
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x45c2c0]
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.0040a3f0
test al, al
je 0x40b24e
mov eax, dword [ebp + 8]
and eax, 0xffdf
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x40b24e
mov edx, dword [0x453ad8]
mov ecx, dword [0x453adc]
mov dword [ebp - 0x24], edx
mov edx, dword [0x453ae0]
mov dword [ebp - 0x20], ecx
movzx ecx, word [0x453ae4]
mov dword [ebp - 0x1c], edx
mov edx, dword [str..X:]
mov word [ebp - 0x18], cx
mov ecx, dword [0x453aec]
mov dword [ebp - 0x23c], edx
mov edx, dword [0x453af0]
mov dword [ebp - 0x238], ecx
movzx ecx, word [0x453af4]
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 0x40b24e
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 0x40b249
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 0x40b183
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 0x40b249
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 0x40b249
lea eax, [ebp - 0x22c]
push eax
push edi
call fcn.0040b3b0
add esp, 8
cmp eax, ebx
je 0x40b249
push ebx
push eax
lea ecx, [ebp - 0x2ac]
push ecx
mov dword [ebp - 0x2ac], ebx
call dword [0x45ff9c]
mov eax, dword [ebp - 0x2ac]
cmp eax, ebx
je 0x40b249
push ebx
push eax
lea edx, [ebp - 0x2b0]
push edx
mov dword [ebp - 0x2b0], ebx
call dword [0x45ffa0]
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.0042b321
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 [0x45ffa4]
push edi
mov ecx, esi
call fcn.00408ef0
push edi
call fcn.0042c5bd
add esp, 4
mov edi, 7
cmp dword [esi + 0x10], ebx
je 0x40b38a
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.0040ab10
test al, al
je 0x40b2eb
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x248]
push eax
mov ecx, esi
call fcn.00409cb0
cmp dword [ebp - 0x234], 8
jb 0x40b303
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.0042b3ce
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 0x40b330
mov eax, dword [ebp - 0x264]
push eax
call fcn.0042b3ce
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 0x40b35d
mov edx, dword [ebp - 0x280]
push edx
call fcn.0042b3ce
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 0x40b38a
mov ecx, dword [ebp - 0x29c]
push ecx
call fcn.0042b3ce
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.0042bdb8
mov esp, ebp
pop ebp
ret 4