Function at 0x440560
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5057a6
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
cmp word [edx], ax
jne 0x4405c4
xor ecx, ecx
jmp 0x4405df
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4405d0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x238]
call fcn.004073d0
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0
push eax
call fcn.0043f8f0
add esp, 4
test al, al
je 0x44060d
mov bl, 1
jmp 0x4408a7
xor eax, eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 2
push eax
push esi
call fcn.0042c8d0
add esp, 8
test al, al
je 0x440871
cmp byte [0x55a336], 0
je 0x44067e
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
push 9
cmovae eax, dword [ebp - 0x250]
push str.DeviceSftVol_
push eax
call fcn.0041abf5
add esp, 0xc
test eax, eax
jne 0x44067e
mov bl, 1
jmp 0x440873
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
mov ecx, dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x4406db
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x238]
call fcn.00407940
push eax
lea ecx, [ebp - 0x238]
call fcn.00407aa0
cmp dword [ebp - 0x258], 8
jb 0x4406db
push dword [ebp - 0x26c]
call fcn.0040823e
add esp, 4
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
lea eax, [ebp - 0x250]
cmovae ecx, dword [ebp - 0x238]
cmp dword [ebp - 0x23c], 8
push ecx
cmovae eax, dword [ebp - 0x250]
push eax
call fcn.004099a7
add esp, 8
test eax, eax
jne 0x440718
mov bl, 1
jmp 0x440873
push 1
push 0
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x3a
push eax
lea ecx, [ebp - 0x238]
call fcn.0040b680
mov edi, eax
test edi, edi
je 0x440871
cmp edi, 0xffffffff
je 0x440871
cmp edi, 1
jbe 0x440770
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
cmp word [eax + edi*2 - 4], 0x5c
jne 0x440871
xor eax, eax
cmp dword [ebp - 0x224], 8
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push 4
lea eax, [eax + edi*2]
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x18]
push 8
push eax
call fcn.0041e67e
add esp, 0x10
test eax, eax
jne 0x440871
push 0x104
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x440871
cmp eax, 0x104
je 0x440871
lea esi, [ebp - 0x220]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4407e3
mov eax, dword [ebp - 0x228]
sub esi, ecx
sub eax, edi
sar esi, 1
dec eax
add eax, esi
cmp eax, dword [ebp - 0x240]
jne 0x440871
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x220]
push esi
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push ecx
push eax
call fcn.0041abf5
add esp, 0xc
test eax, eax
jne 0x440871
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x250]
cmovae eax, dword [ebp - 0x238]
cmp dword [ebp - 0x23c], 8
cmovae ecx, dword [ebp - 0x250]
lea eax, [eax + edi*2]
add eax, 2
push eax
lea eax, [ecx + esi*2]
push eax
call fcn.004099a7
add esp, 8
test eax, eax
jne 0x440871
mov bl, 1
jmp 0x440873
xor bl, bl
cmp dword [ebp - 0x23c], 8
jb 0x44088a
push dword [ebp - 0x250]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
cmp dword [ebp - 0x224], 8
jb 0x4408be
push dword [ebp - 0x238]
call fcn.0040823e
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret