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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5651f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x950
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 + 0x210]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], esi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov eax, dword [edx]
mov dword [ebp - 4], 0
test eax, eax
je 0x4fe573
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp + 8]
push ecx
push 0x138b
push 0x111
push eax
call edi
jmp 0x4fe579
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x4fe5a8
mov edx, dword [esi + 0x290]
mov ecx, dword [ebx]
mov dword [ebp - 0x28], edx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 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 0x4fe5d7
mov ecx, dword [esi + 0x290]
mov edx, dword [ebx]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x20], edx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax]
push edx
push 0x1393
push 0x111
push eax
call edi
mov eax, dword [esi + 0x294]
test eax, eax
je 0x4fe5f4
push 8
push ebx
push 0
push 0
push str.FileSize
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esi + 0xc]
push 0
push 0
lea ecx, [ebp - 0x18]
mov eax, dword [edx + 0x30]
push 0
push ecx
push eax
call fcn.0052776a
add esp, 0x14
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edi, edi
cmp eax, edi
je 0x4fe63a
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [ebp - 0x3c], eax
je 0x4fe63d
mov dword [ebp - 0x38], 1
jmp 0x4fe640
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], edi
or ecx, 0xffffffff
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x38], edi
je 0x4fe672
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x58]
push ecx
push edx
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x18]
push ecx
push edx
call eax
cmp eax, edi
je 0x4fe6a1
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
jmp 0x4fe6a1
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x34]
push eax
lea edx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4fe6a1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edi
imul eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
push 0
push 0xa
push ebx
push edi
call fcn.00528840
mov ecx, dword [esi + 0x70]
sub eax, ecx
mov ecx, dword [esi + 0x74]
sbb edx, ecx
mov ecx, dword [ebp - 0x1c]
add eax, edi
adc edx, ebx
cmp ecx, edx
jg 0x4fe725
mov edx, dword [ebp - 0x20]
jl 0x4fe6cf
cmp edx, eax
ja 0x4fe725
and edx, ecx
cmp edx, 0xffffffff
je 0x4fe725
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x18]
mov dword [esi + 0x38], 1
push ecx
mov eax, dword [edx + 8]
mov ecx, dword [0x5c81b4]
push ebx
push edi
push eax
lea edx, [ebp - 0x458]
push ecx
push edx
call fcn.00527718
add esp, 0x18
lea eax, [ebp - 0x458]
push 0x50030
push str.Internet_Download_Manager
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.004fdb90
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x4fe84b
mov edx, dword [eax + 0x34]
push 0
push 0
lea ecx, [ebp - 0x14]
push 0
push ecx
push edx
call fcn.0052776a
add esp, 0x14
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x18]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x4fe777
test cl, cl
je 0x4fe773
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x4fe777
add eax, 2
add edi, 2
test cl, cl
jne 0x4fe74f
xor eax, eax
jmp 0x4fe77c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4fe84b
mov eax, dword [ebp - 0x38]
or edi, 0xffffffff
or ebx, 0xffffffff
test eax, eax
je 0x4fe7c3
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x58]
push eax
lea edx, [ebp - 0x44]
push ecx
lea eax, [ebp - 0x14]
push edx
push eax
call dword [ebp - 0x3c]
test eax, eax
je 0x4fe7ee
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
jmp 0x4fe7ee
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4fe7ee
mov edi, dword [ebp - 0x2c]
imul edi, dword [ebp - 0x30]
imul edi, dword [ebp - 0x34]
xor ebx, ebx
mov eax, dword [esi + 0x214]
mov ecx, dword [esi + 0x210]
cmp ebx, eax
jg 0x4fe84b
jl 0x4fe804
cmp edi, ecx
ja 0x4fe84b
and edi, ebx
cmp edi, 0xffffffff
je 0x4fe84b
mov esi, dword [esi + 0xc]
mov edx, dword [esi + 0x30]
push edx
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [0x5c837c]
push eax
lea edx, [ebp - 0x95c]
push ecx
push edx
call fcn.00527718
add esp, 0x1c
lea eax, [ebp - 0x95c]
push 0x50030
push str.Internet_Download_Manager
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8