Function at 0x1008f480
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029f4b6
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10373f78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
xor edx, edx
mov dword [ebp - 0x58], edx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
cmp esi, eax
je 0x1008f6b8
nop word [eax + eax]
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 0
lea eax, [esi + 0x10]
or edx, 1
mov dword [ebp - 0x24], 7
xorps xmm0, xmm0
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], edx
mov edx, dword [esi + 0x24]
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
cmp edx, 8
jb 0x1008f50d
mov eax, dword [esi + 0x10]
movzx eax, word [eax]
mov word [ebp - 0x38], ax
xor eax, eax
mov word [ebp - 0x36], ax
lea eax, [esi + 0x10]
mov dword [ebp - 0x28], 1
cmp edx, 8
jb 0x1008f52c
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1008f55b
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
jmp 0x1008f5d8
call fcn.10048fd0
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.100882e0
mov eax, dword [ebp - 0x54]
or eax, 2
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x50]
push eax
lea eax, [esi + 0x10]
mov byte [ebp - 4], 2
push eax
push str.Cant_access_to_drive___0_._Error:__1_.
push 2
call fcn.10051390
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x1008f5d8
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008f5ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008f6d7
push edx
push ecx
call fcn.1026505f
add esp, 8
mov edx, dword [edi + 4]
cmp edx, dword [edi + 8]
je 0x1008f61a
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [edx], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [edx + 0x10], xmm0
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edx + 0x20], eax
mov eax, 7
mov dword [edx + 0x24], ecx
add dword [edi + 4], 0x28
jmp 0x1008f629
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
push edx
call fcn.10090f50
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x54]
and edx, 0xfffffffe
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x54], edx
cmp eax, 8
jb 0x1008f66f
mov ecx, dword [ebp - 0x38]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008f662
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008f6d7
push edx
push ecx
call fcn.1026505f
mov edx, dword [ebp - 0x54]
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1008f695
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1008f691
cmp esi, dword [eax + 8]
jne 0x1008f691
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1008f681
mov esi, eax
jmp 0x1008f6ac
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1008f6ac
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1008f6a0
cmp esi, dword [ebp - 0x60]
jne 0x1008f4d0
mov ecx, dword [ebp - 0x64]
mov dword [ecx], edi
mov eax, ecx
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.102649e4
mov esp, ebp
pop ebp
ret
call fcn.10275373
int3