Function at 0x4708e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df821
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x50f52c]
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
xor edi, edi
mov dword [ebp - 0x44], ecx
mov ecx, dword [0x510a08]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], edi
mov esi, dword [ecx + 0x10]
sub esi, dword [ecx + 0xc]
mov eax, 0x8a42f871
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
je 0x4709f3
xor ebx, ebx
mov esi, ecx
cmp edi, eax
jb 0x470975
call fcn.004b32e0
mov ecx, dword [0x510a08]
mov eax, dword [esi + 0xc]
mov edx, dword [eax + ebx + 0x1ec]
mov esi, dword [ecx + 0x10]
shl edx, 0x14
add dword [ebp - 0x34], edx
lea eax, [ecx + 0xc]
mov dword [ebp - 0x38], eax
adc dword [ebp - 0x30], 0
sub esi, dword [eax]
mov eax, 0x8a42f871
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4709b6
call fcn.004b32e0
mov ecx, dword [0x510a08]
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov edx, dword [eax + ebx + 0x1ec]
add dword [ebp - 0x40], edx
mov esi, dword [ecx + 0x10]
mov eax, 0x8a42f871
adc dword [ebp - 0x3c], 0
sub esi, dword [ecx + 0xc]
inc edi
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
add ebx, 0x3b4
cmp edi, eax
jb 0x470964
xor edi, edi
push 2
push edi
lea eax, [ebp - 0x2c]
push eax
add ecx, 0x1b8
call fcn.00430a10
mov dword [ebp - 4], edi
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x470a17
mov eax, dword [eax + 4]
jmp 0x470a1a
add eax, 4
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
jb 0x470a4b
mov edx, dword [ebp - 0x28]
push edx
call fcn.004b29fa
add esp, 4
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
cmp ecx, dword [ebp - 0x30]
ja 0x470c12
jb 0x470a75
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x34]
jae 0x470c12
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00410110
mov esi, eax
mov dword [ebp - 4], 1
mov edx, dword [0x510a08]
push str._requires
add edx, 0x84
push edx
lea eax, [ebp - 0x84]
push eax
call fcn.00401b00
mov byte [ebp - 4], 2
push esi
push eax
lea ecx, [ebp - 0xb0]
push ecx
call fcn.0040a680
mov byte [ebp - 4], 3
push str.MB_of_free_space._n_n
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00401b00
add esp, 0x24
mov byte [ebp - 4], 5
cmp dword [ebp - 0x98], ebx
jb 0x470aec
mov eax, dword [ebp - 0xac]
push eax
call fcn.004b29fa
add esp, 4
mov esi, 7
xor ecx, ecx
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x9c], edi
mov word [ebp - 0xac], cx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x6c], ebx
jb 0x470b1b
mov edx, dword [ebp - 0x80]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], ax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x50], ebx
jb 0x470b3c
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b29fa
add esp, 4
push str.The_installation_location_you_selected_has_insufficient_disk_space._n
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x84]
xor edx, edx
push ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
call fcn.00401b00
mov byte [ebp - 4], bl
push str.Please_check_the_installation_location_and_try_again.
push eax
lea edx, [ebp - 0x68]
push edx
call fcn.00401b00
add esp, 0x18
mov byte [ebp - 4], 9
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401750
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], ebx
jb 0x470b96
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], cx
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6c], ebx
jb 0x470bb7
mov edx, dword [ebp - 0x80]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], edi
cmp dword [ebp - 0x14], ebx
jae 0x470bce
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
push 0x40010
push 0x4ed658
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
jb 0x470bfe
mov eax, dword [ebp - 0x28]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], cx
or eax, 0xffffffff
jmp 0x470cc7
mov eax, dword [0x510a08]
mov ebx, dword [eax + 0xc]
mov esi, eax
cmp ebx, dword [eax + 0x10]
jbe 0x470c2b
call fcn.004b32e0
mov eax, dword [0x510a08]
mov esi, dword [esi]
lea ecx, [ecx]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], ecx
cmp dword [eax + 0xc], ecx
jbe 0x470c43
call fcn.004b32e0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
cmp esi, edi
je 0x470c50
cmp esi, eax
je 0x470c55
call fcn.004b32e0
cmp ebx, dword [ebp - 0x30]
jae 0x470cc5
cmp esi, edi
jne 0x470cb9
call fcn.004b32e0
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x470c6f
call fcn.004b32e0
cmp esi, edi
jne 0x470cbd
call fcn.004b32e0
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x470c84
call fcn.004b32e0
mov ecx, dword [ebp - 0x44]
lea eax, [ebx + 0x39c]
push eax
push ebx
call fcn.004834a0
cmp esi, edi
jne 0x470cc1
call fcn.004b32e0
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x470ca9
call fcn.004b32e0
mov eax, dword [0x510a08]
add ebx, 0x3b4
jmp 0x470c30
mov eax, dword [esi]
jmp 0x470c65
mov eax, dword [esi]
jmp 0x470c7a
mov eax, dword [esi]
jmp 0x470c9f
xor eax, eax
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.004b3057
mov esp, ebp
pop ebp
ret