Function at 0x446790
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x52de04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
xor ecx, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
movups xmmword [ebp - 0x1c], xmm0
mov word [ebp - 0x1c], cx
push esi
test eax, eax
je 0x44685b
push eax
lea eax, [ebp - 0x34]
push str._c:_
push eax
call fcn.004151e0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x1c]
cmp eax, esi
je 0x446851
mov ecx, dword [ebp - 8]
cmp ecx, 8
jb 0x44681f
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x446815
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x446a27
push ecx
push edx
call fcn.004b3acc
add esp, 8
mov dword [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x1c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0xc], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x34]
call fcn.00402610
jmp 0x44686a
push 1
push 0x502ab0
lea ecx, [ebp - 0x1c]
call fcn.0041b010
lea eax, [ebp - 0x148]
mov dword [ebp - 0x148], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x446944
cmp dword [ebp - 0x138], 1
jne 0x446944
cmp dword [ebp - 0x13c], 0x3e8
jbe 0x446944
push 0x502ab4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x446944
push str.GetDiskFreeSpaceExW
push eax
call fcn.00442ef0
add esp, 8
test eax, eax
je 0x446944
cmp dword [ebp - 8], 8
lea edx, [ebp - 0x170]
push edx
lea edx, [ebp - 0x168]
push edx
lea edx, [ebp - 0x160]
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
push edx
push ecx
call eax
test eax, eax
je 0x446937
mov eax, dword [ebp - 0x15c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x500f40]
mov eax, dword [ebp - 0x160]
mulsd xmm1, qword [0x502b18]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x500f40]
addsd xmm1, xmm0
jmp 0x4469c8
movsd xmm1, qword [ebp - 0x168]
jmp 0x4469c8
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x158]
push ecx
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x14c]
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [ebp - 0x14c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x500f40]
mov eax, dword [ebp - 0x150]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x500f40]
mov eax, dword [ebp - 0x154]
mulsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x500f40]
mulsd xmm1, xmm0
mulsd xmm1, qword [0x502b08]
mov ecx, dword [ebp - 8]
movsd xmm0, qword [0x502b10]
minsd xmm0, xmm1
cvttsd2si esi, xmm0
cmp ecx, 8
jb 0x446a16
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x446a0c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x446a2c
push ecx
push edx
call fcn.004b3acc
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b3f28
mov esp, ebp
pop ebp
ret
call fcn.004c342f
call fcn.004c342f
int3