Function at 0x536ae0
Capabilities:
Get disk size
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac6d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov edx, dword [esi + 0x10]
lea ebx, [esi + 0x140]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov eax, dword [edx]
mov dword [ebp - 4], 0
test eax, eax
je 0x536b40
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp + 8]
push ecx
push 0x138b
push 0x111
push eax
call edi
jmp 0x536b46
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x536b75
mov edx, dword [esi + 0x1c0]
mov ecx, dword [ebx]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], edx
mov edx, dword [eax]
push ecx
push 0x1393
push 0x111
push edx
call edi
mov eax, dword [esi + 0x18]
cmp dword [eax], 0
je 0x536ba4
mov ecx, dword [esi + 0x1c0]
mov edx, dword [ebx]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x30], ecx
mov eax, dword [eax]
push edx
push 0x1393
push 0x111
push eax
call edi
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x536bc1
push 8
push ebx
push 0
push 0
push str.FileSize
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov al, byte [ebp + 0x10]
test al, al
je 0x536e5e
mov edx, dword [esi + 0xc]
push 0
push 0
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 0x30]
push 0
push ecx
push eax
call fcn.0056b52c
add esp, 0x14
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edi, edi
cmp eax, edi
je 0x536c12
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [ebp - 0x24], eax
je 0x536c15
mov dword [ebp - 0x1c], 1
jmp 0x536c18
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp - 0x1c]
or esi, 0xffffffff
cmp ecx, edi
mov dword [ebp - 0x30], esi
je 0x536c46
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x54]
push ecx
push edx
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x14]
push ecx
push edx
call eax
cmp eax, edi
je 0x536c72
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
jmp 0x536c72
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x20]
push edx
lea ecx, [ebp + 0x10]
push eax
lea edx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x536c72
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x30], edi
imul esi, dword [ebp - 0x20]
imul esi, dword [ebp - 0x28]
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
push 0
push 0xa
push ebx
push edi
call fcn.0056c820
mov ecx, dword [ebp - 0x18]
sub eax, dword [ecx + 0x80]
sbb edx, dword [ecx + 0x84]
mov ecx, dword [ebp - 0x30]
add eax, edi
adc edx, ebx
cmp ecx, edx
jg 0x536d0f
jl 0x536ca2
cmp esi, eax
ja 0x536d0f
and esi, ecx
cmp esi, 0xffffffff
je 0x536d0f
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x38], 1
mov eax, dword [0x65ca8c]
mov dword [ebp + 0x10], eax
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [0x6623b0]
mov eax, dword [edx + 8]
push ebx
push edi
push eax
lea edx, [ebp + 0x10]
push ecx
push edx
mov byte [ebp - 4], 1
call fcn.0057f8fb
mov eax, dword [ebp + 0x10]
add esp, 0x18
push 0x50030
push 0x6370c0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.Not_enough_disk_space_to_store_files_chunks__canceling_download._n
mov ecx, esi
call fcn.00535f00
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00586b33
jmp 0x536d12
mov esi, dword [ebp - 0x18]
mov esi, dword [esi + 0xc]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x536e5e
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x536d2a
lea eax, [esi + 0x38]
push 0
push 0
lea ecx, [ebp - 0x34]
push 0
push ecx
push eax
call fcn.0056c696
add esp, 0x14
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x20]
push edx
call fcn.00586bf3
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 2
mov esi, edx
lea eax, [ebp - 0x14]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x536d79
test cl, cl
je 0x536d75
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x536d79
add eax, 2
add esi, 2
test cl, cl
jne 0x536d55
xor eax, eax
jmp 0x536d7e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x536e52
mov eax, dword [ebp - 0x1c]
or esi, 0xffffffff
or edi, 0xffffffff
test eax, eax
je 0x536daf
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push ecx
push eax
push edx
call dword [ebp - 0x24]
test eax, eax
je 0x536dd7
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
jmp 0x536dd7
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x28]
lea eax, [ebp + 0x10]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x536dd7
mov esi, dword [ebp + 0x10]
imul esi, dword [ebp - 0x28]
imul esi, dword [ebp - 0x24]
xor edi, edi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x140]
lea eax, [ecx + 0x140]
mov ecx, dword [ecx + 0x144]
cmp edi, ecx
jg 0x536e52
jl 0x536df6
cmp esi, edx
ja 0x536e52
and esi, edi
cmp esi, 0xffffffff
je 0x536e52
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 3
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x30]
push esi
mov esi, dword [ebp - 0x20]
push esi
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [0x662578]
push ecx
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.0057f8fb
mov ecx, dword [ebp - 0x1c]
add esp, 0x1c
push 0x50030
push 0x6370c0
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00586b33
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00586b33
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc