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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c83c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
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 + 0x150]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov eax, dword [edx]
mov dword [ebp - 4], 0
test eax, eax
je 0x54e1a0
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp + 8]
push ecx
push 0x1473
push 0x111
push eax
call edi
jmp 0x54e1a6
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x54e1d5
mov edx, dword [esi + 0x1d0]
mov ecx, dword [ebx]
mov dword [ebp - 0x44], edx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], 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 0x54e204
mov ecx, dword [esi + 0x1d0]
mov edx, dword [ebx]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x44]
mov dword [ebp - 0x38], ecx
mov eax, dword [eax]
push edx
push 0x1393
push 0x111
push eax
call edi
mov eax, dword [esi + 0x1d4]
test eax, eax
je 0x54e221
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 0x54e4b7
mov edx, dword [esi + 0xc]
push 0
push 0
lea ecx, [ebp - 0x34]
mov eax, dword [edx + 0x30]
push 0
push ecx
push eax
call fcn.005855aa
add esp, 0x14
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x54e270
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x54e273
mov dword [ebp - 0x14], 1
jmp 0x54e27a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
or edi, 0xffffffff
test ecx, ecx
mov dword [ebp - 0x38], edi
je 0x54e2a8
lea ecx, [ebp - 0x54]
lea edx, [ebp - 0x5c]
push ecx
push edx
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x34]
push ecx
push edx
call eax
test eax, eax
je 0x54e2d8
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x38], eax
jmp 0x54e2d8
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x1c]
push edx
lea ecx, [ebp + 0x10]
push eax
lea edx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x54e2d8
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x38], 0
imul edi, dword [ebp - 0x1c]
imul edi, dword [ebp - 0x20]
mov eax, dword [esi + 0x154]
mov ebx, dword [ebx]
push 0
push 0xa
push eax
push ebx
mov dword [ebp - 0x28], eax
call fcn.00586630
mov ecx, dword [esi + 0x80]
sub eax, ecx
mov ecx, dword [esi + 0x84]
sbb edx, ecx
mov ecx, dword [ebp - 0x28]
add eax, ebx
adc edx, ecx
mov ecx, dword [ebp - 0x38]
cmp ecx, edx
jg 0x54e37d
jl 0x54e312
cmp edi, eax
ja 0x54e37d
and edi, ecx
cmp edi, 0xffffffff
je 0x54e37d
mov dword [esi + 0x38], 1
mov eax, dword [0x67da2c]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [0x6834f0]
push ebx
push ecx
lea eax, [ebp + 0x10]
push edx
push eax
call fcn.00599a28
mov ecx, dword [ebp + 0x10]
add esp, 0x18
push 0x50030
push 0x65707c
push ecx
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.0054d550
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.005a0c5d
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x54e4b7
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x54e396
mov eax, ecx
jmp 0x54e399
add eax, 0x38
push 0
push 0
lea edx, [ebp - 0x3c]
push 0
push edx
push eax
call fcn.005855aa
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x34]
push eax
push ecx
call fcn.00584d2f
add esp, 0x1c
test eax, eax
je 0x54e4b7
mov eax, dword [ebp - 0x14]
or edi, 0xffffffff
or ebx, 0xffffffff
test eax, eax
je 0x54e3ed
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x3c]
push ecx
push edx
call dword [ebp - 0x18]
test eax, eax
je 0x54e418
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
jmp 0x54e418
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
push ecx
lea eax, [ebp + 0x10]
push edx
lea ecx, [ebp - 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x54e418
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp - 0x20]
imul edi, dword [ebp - 0x1c]
xor ebx, ebx
cmp ebx, dword [esi + 0x154]
jg 0x54e4b7
jl 0x54e432
cmp edi, dword [esi + 0x150]
ja 0x54e4b7
and edi, ebx
cmp edi, 0xffffffff
je 0x54e4b7
mov edx, dword [0x67da2c]
mov dword [ebp - 0x14], edx
mov eax, dword [esi + 0xc]
mov bl, 2
mov byte [ebp - 4], bl
mov ecx, dword [eax + 0x30]
push ecx
lea ecx, [ebp - 0x18]
call fcn.005a0d1d
mov edx, dword [ebp - 0x18]
mov ecx, dword [esi + 0x154]
lea eax, [ebp - 0x3c]
push edx
mov edx, dword [esi + 0x150]
push eax
mov eax, dword [esi + 0xc]
push ecx
push edx
mov edx, dword [0x6836b8]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x14]
push ecx
push edx
push eax
mov byte [ebp - 4], 3
call fcn.00599a28
mov ecx, dword [ebp - 0x14]
add esp, 0x1c
push 0x50030
push 0x65707c
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.005a0c5d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005a0c5d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc