Function at 0x45ad10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a766
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5c7cec]
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 ecx, edx
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ad66
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x238]
call fcn.00408740
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0
push eax
call fcn.0045a540
add esp, 4
test al, al
je 0x45ada3
mov bl, 1
jmp 0x45b00b
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 2
push eax
push esi
call fcn.0043eae0
add esp, 8
test al, al
je 0x45affe
cmp byte [0x5cbd2c], 0
je 0x45ae11
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
push 9
cmovae eax, dword [ebp - 0x250]
push str.DeviceSftVol_
push eax
call fcn.004263eb
add esp, 0xc
test eax, eax
je 0x45affa
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 0x238]
mov esi, dword [ebp - 0x238]
cmp edx, 8
mov ecx, dword [ebp - 0x228]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x45ae8b
cmp ecx, 1
jbe 0x45ae50
cmp edx, 8
lea eax, [ebp - 0x238]
cmovae eax, esi
cmp word [eax + ecx*2 - 4], 0x3a
je 0x45ae8b
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x238]
call fcn.00408d90
push eax
lea ecx, [ebp - 0x238]
call fcn.0042a225
lea ecx, [ebp - 0x268]
call fcn.00408e50
mov edx, dword [ebp - 0x224]
mov esi, dword [ebp - 0x238]
cmp edx, 8
lea ecx, [ebp - 0x238]
lea eax, [ebp - 0x250]
cmovae ecx, esi
cmp dword [ebp - 0x23c], 8
push ecx
cmovae eax, dword [ebp - 0x250]
push eax
call fcn.0040b363
add esp, 8
test eax, eax
je 0x45affa
push 0
push 0x3a
lea ecx, [ebp - 0x238]
call fcn.004278a0
mov edi, eax
test edi, edi
je 0x45affe
cmp edi, 0xffffffff
je 0x45affe
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x238]
cmp edi, 1
jbe 0x45af08
cmp ecx, 8
lea eax, [ebp - 0x238]
cmovae eax, edx
cmp word [eax + edi*2 - 4], 0x5c
jne 0x45affe
cmp ecx, 8
lea eax, [ebp - 0x238]
push 4
cmovae eax, edx
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
lea eax, [eax + edi*2]
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x18]
push 8
push eax
call fcn.0042a5a0
add esp, 0x10
test eax, eax
jne 0x45affe
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 0x45affe
cmp eax, 0x104
je 0x45affe
lea esi, [ebp - 0x220]
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45af70
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 0x45affe
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.004263eb
add esp, 0xc
test eax, eax
jne 0x45affe
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.0040b363
add esp, 8
test eax, eax
jne 0x45affe
mov bl, 1
jmp 0x45b000
xor bl, bl
lea ecx, [ebp - 0x250]
call fcn.00408e50
lea ecx, [ebp - 0x238]
call fcn.00408e50
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.0040154f
mov esp, ebp
pop ebp
ret