Function at 0x10046f60
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x1029eeef
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x1037c990]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
xor edi, edi
mov ecx, esi
mov dword [eax], edi
call fcn.100041b0
mov ecx, dword [ebx + 0x18]
cmp dword [ecx - 0xc], edi
je 0x10046fb8
mov ecx, ebx
call fcn.101dc6d0
test al, al
jne 0x10046fcd
push edi
push 0x8a
push str..CachePackages.cpp
push 0x80070057
call fcn.100048f0
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebp + 8]
push ebx
mov ecx, esi
mov dword [esp + 0x28], edi
call fcn.100465e0
mov eax, dword [esi]
push 0x97
push str..CachePackages.cpp
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x64]
push edx
push eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x94], edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push eax
call fcn.100556a0
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x2c]
imul esi, dword [esp + 0x5c]
mov ecx, 0x400
mul ecx
add esp, 0xc
push edi
push esi
push edx
push eax
mov dword [esp + 0x80], edi
call fcn.10234f30
mov dword [esp + 0x2c], ecx
mov ecx, ebx
mov dword [esp + 0x80], edx
mov ebx, eax
test ecx, ecx
ja 0x10047064
cmp dword [esp + 0x2c], edi
jbe 0x10047065
inc ebx
lea ecx, [esp + 0x34]
call fcn.10002d80
mov dword [esp + 0x100], 0
push edi
push esi
push 0
push ebx
call fcn.10233430
mov dword [esp + 0x24], eax
mov eax, edx
and edx, 0x7fffffff
mov dword [esp + 0x28], edx
fild qword [esp + 0x24]
and eax, 0x80000000
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
fild qword [esp + 0x24]
sub esp, 8
lea edx, [esp + 0x3c]
fchs
faddp st(1)
fmul qword [0x102e4358]
fstp qword [esp]
push str._.2f
push edx
call fcn.10055210
add esp, 0x10
call fcn.10045b90
cmp dword [eax + 0x1c], 6
jl 0x10047217
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x13
mov edi, 7
xor eax, eax
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], 0
push 0x102b5064
mov word [ecx + 4], ax
call fcn.10035ce0
mov byte [esp + 0x11c], 1
push 0x9e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x60], esp
push 0x33
xor edx, edx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], 0
push str.CNVInstaller::GetExtraSpaceRequiredForEngineCacheKB
mov word [ecx + 4], dx
call fcn.10035ce0
mov byte [esp + 0x13c], 2
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0xc8]
call fcn.10056360
mov byte [esp + 0x13c], 3
lea ecx, [esp + 0x5b]
mov dword [esp + 0xbc], ecx
lea edx, [esp + 0xb8]
lea ecx, [esp + 0x70]
mov dword [esp + 0x78], edx
mov dword [esp + 0x94], ecx
lea edx, [esp + 0x74]
lea ecx, [esp + 0x94]
mov dword [esp + 0x98], edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x7c], eax
lea edx, [esp + 0xa0]
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x84]
mov byte [esp + 0x5b], 0
mov dword [esp + 0x74], str.Require
mov dword [esp + 0xa0], str.kilobytes_of_space_to_cache_engine_files_on_drive_
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], 0x102b5204
mov dword [esp + 0x88], eax
mov dword [esp + 0x68], 0x102b6844
mov dword [esp + 0x6c], ecx
push 6
call fcn.10045b90
push eax
mov byte [esp + 0x144], 4
lea edi, [esp + 0x70]
call fcn.10002b50
mov byte [esp + 0x100], 0
lea ecx, [esp + 0x88]
call fcn.10056b10
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x54]
cmp ebx, eax
jbe 0x100473b5
push edi
push esi
sub ebx, eax
push 0
push ebx
call fcn.10233430
mov ecx, eax
shrd ecx, edx, 0xa
shr edx, 0xa
test edx, edx
ja 0x10047241
cmp ecx, 0xffffffff
jbe 0x10047257
push 0
push 0xa3
push str..CachePackages.cpp
push 0xe0e00000
call fcn.100048f0
mov edi, dword [ebp + 0x10]
and eax, 0x3ff
xor edx, edx
mov dword [edi], ecx
ja 0x10047269
test eax, eax
jbe 0x1004726c
inc ecx
mov dword [edi], ecx
call fcn.10045b90
cmp dword [eax + 0x1c], 3
jl 0x100473b5
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x102b5064
call fcn.10035dd0
mov byte [esp + 0x11c], 5
push 0xa9
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push str.CNVInstaller::GetExtraSpaceRequiredForEngineCacheKB
call fcn.10035dd0
mov byte [esp + 0x13c], 6
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esp + 0xc8]
call fcn.10056360
mov esi, eax
mov byte [esp + 0x13c], 7
mov eax, dword [edi]
push eax
lea ecx, [esp + 0xe4]
push ecx
call fcn.100550d0
add esp, 8
mov byte [esp + 0x13c], 8
lea edx, [esp + 0x5b]
mov dword [esp + 0xac], edx
mov dword [esp + 0x84], eax
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x68]
lea eax, [esp + 0x84]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x7c]
lea edx, [esp + 0xa0]
lea eax, [esp + 0x94]
mov byte [esp + 0x5b], 0
mov dword [esp + 0x68], str.Require__
mov dword [esp + 0x7c], str.__kilobytes_of_additional_space_on_drive_
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x94], 0x102b5204
mov dword [esp + 0x98], edx
mov dword [esp + 0x74], 0x102b6858
mov dword [esp + 0x78], eax
push 3
call fcn.10045b90
push eax
mov byte [esp + 0x144], 0xa
lea edi, [esp + 0x7c]
call fcn.10002b50
mov byte [esp + 0x100], 9
lea ecx, [esp + 0xa4]
call fcn.10002d20
mov byte [esp + 0x100], 0
lea ecx, [esp + 0x88]
call fcn.10056b10
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.10004720
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc