Function at 0x40e760
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44af02
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x463074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xac], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x98], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00409960
mov dword [esi], eax
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0xac], 1
mov dword [ebp - 0x94], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
test edx, edx
je 0x40e802
test dl, 1
lea eax, [esi + 1]
mov ecx, edx
cmove eax, esi
shr edx, 1
mov esi, eax
cmp ecx, 2
jae 0x40e7e8
mov dword [ebp - 0x94], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427b8f
add esp, 4
mov dword [ebp - 0xa8], eax
push eax
push esi
call edi
cmp dword [ebp - 0x94], 0
mov eax, dword [ebp - 0xa8]
mov esi, eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], 0
jle 0x40eba6
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, eax
mov dword [ebp - 0x2c], str.DRIVE_UNKNOWN
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x28], str.DRIVE_NO_ROOT_DIR
push eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x24], str.DRIVE_REMOVABLE
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x20], str.DRIVE_FIXED
push eax
push esi
mov dword [ebp - 0x1c], str.DRIVE_REMOTE
mov dword [ebp - 0x18], str.DRIVE_CDROM
mov dword [ebp - 0x14], str.DRIVE_RAMDISK
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, esi
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e8c7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x5c]
call fcn.004032f0
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00410050
add esp, 8
mov edx, dword [ebp - 0x48]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40e935
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e92b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ebd4
push edx
push ecx
call fcn.0042730e
add esp, 8
movsd xmm1, qword [0x44f0b0]
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0x7c], xmm0
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0xb8]
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
shr eax, 0x1f
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
addsd xmm0, qword [eax*8 + 0x44f0d0]
mov eax, dword [ebp - 0xb4]
shl eax, 2
mulsd xmm0, xmm1
mulsd xmm0, xmm1
mulsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x44f0d0]
addsd xmm0, xmm1
mulsd xmm0, qword [0x44f0c0]
call fcn.00427e30
movsd xmm1, qword [0x44f0b0]
xorps xmm0, xmm0
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x88], edx
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x44f0d0]
mov eax, dword [ebp - 0xbc]
shl eax, 2
mulsd xmm0, xmm1
mulsd xmm0, xmm1
mulsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x44f0d0]
addsd xmm0, xmm1
mulsd xmm0, qword [0x44f0c0]
call fcn.00427e30
mov dword [ebp - 0x80], edx
mov edx, dword [ebp + edi*4 - 0x2c]
mov ecx, edx
mov dword [ebp - 0x84], eax
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ea32
sub ecx, esi
mov eax, 0x20
cmp ecx, 0x20
cmovb ecx, eax
lea eax, [ebp - 0x7c]
push ecx
push edx
push eax
call fcn.00430800
mov eax, dword [ebp - 0x98]
add esp, 0xc
mov edx, dword [ebp - 0x30]
mov eax, dword [eax]
mov esi, eax
mov dword [ebp - 0x9c], eax
mov edi, dword [esi + 4]
cmp byte [edi + 0xd], 0
jne 0x40eaaf
cmp edx, 0x10
lea ecx, [ebp - 0x44]
lea edx, [edi + 0x10]
cmovae ecx, dword [ebp - 0x44]
cmp dword [edi + 0x24], 0x10
jb 0x40ea86
mov edx, dword [edi + 0x10]
push dword [ebp - 0x34]
push ecx
push dword [edi + 0x20]
push edx
call fcn.00408460
shr eax, 0x1f
add esp, 0x10
test al, al
je 0x40eaa2
mov edi, dword [edi + 8]
jmp 0x40eaa6
mov esi, edi
mov edi, dword [edi]
cmp byte [edi + 0xd], 0
mov edx, dword [ebp - 0x30]
je 0x40ea70
cmp esi, dword [ebp - 0x9c]
je 0x40eae4
cmp dword [esi + 0x24], 0x10
lea edi, [esi + 0x10]
jb 0x40eac3
mov edi, dword [esi + 0x10]
push dword [esi + 0x20]
cmp edx, 0x10
lea eax, [ebp - 0x44]
push edi
cmovae eax, dword [ebp - 0x44]
push dword [ebp - 0x34]
push eax
call fcn.00408460
shr eax, 0x1f
add esp, 0x10
test al, al
je 0x40eb29
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x8d]
push eax
lea eax, [ebp - 0x9c]
push eax
push 0x44e924
call fcn.00405770
mov ecx, dword [ebp - 0x98]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0xb0]
push eax
call fcn.00407100
mov esi, dword [ebp - 0xb0]
movups xmm0, xmmword [ebp - 0x8c]
mov byte [ebp - 4], 0
movups xmmword [esi + 0x28], xmm0
movups xmm0, xmmword [ebp - 0x7c]
movups xmmword [esi + 0x38], xmm0
movups xmm0, xmmword [ebp - 0x6c]
movups xmmword [esi + 0x48], xmm0
mov esi, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x30]
add esi, 8
mov dword [ebp - 0xa0], esi
cmp edx, 0x10
jb 0x40eb87
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eb7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ebd4
push edx
push ecx
call fcn.0042730e
add esp, 8
mov eax, dword [ebp - 0xa4]
inc eax
mov dword [ebp - 0xa4], eax
cmp eax, dword [ebp - 0x94]
jl 0x40e858
mov eax, dword [ebp - 0xa8]
push 2
push eax
call fcn.0042730e
mov eax, dword [ebp - 0x98]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042784a
mov esp, ebp
pop ebp
ret 4
call fcn.0042c719
int3