Function at 0x5c5470
Capabilities:
Get disk information
Get disk size
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
mov ecx, dword [ebp + 0xc]
push edi
mov edx, dword [ebx + 0xc]
lea esi, [ebx + 0x1b8]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x48], ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, dword [edx + 0x2fc]
mov dword [ebp - 4], 0
test eax, eax
jne 0x5c5565
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x5c54e4
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp + 8]
push ecx
push 0x1473
push 0x111
push eax
call edi
jmp 0x5c54ea
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x14]
cmp dword [eax], 0
je 0x5c5519
mov edx, dword [ebx + 0x238]
mov ecx, dword [esi]
mov dword [ebp - 0x2c], edx
mov edx, dword [esi + 4]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], edx
mov edx, dword [eax]
push ecx
push 0x1393
push 0x111
push edx
call edi
mov eax, dword [ebx + 0x18]
cmp dword [eax], 0
je 0x5c5548
mov ecx, dword [ebx + 0x238]
mov edx, dword [esi]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax]
push edx
push 0x1393
push 0x111
push eax
call edi
mov eax, dword [ebx + 0x23c]
test eax, eax
je 0x5c5565
push 8
push esi
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 0x5c56df
mov edx, dword [ebx + 0xc]
push 0
push 0
lea ecx, [ebp - 0x34]
mov eax, dword [edx + 0x30]
push 0
push ecx
push eax
call fcn.0060a943
add esp, 0x14
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x5c55af
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5c55b2
mov ecx, 1
jmp 0x5c55b4
mov eax, dword [ebp + 0x10]
xor ecx, ecx
or esi, 0xffffffff
test ecx, ecx
mov dword [ebp - 0x40], esi
je 0x5c55df
lea ecx, [ebp - 0x60]
lea edx, [ebp - 0x58]
push ecx
push edx
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x34]
push ecx
push edx
call eax
test eax, eax
je 0x5c560f
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
jmp 0x5c560f
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x3c]
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 0x5c560f
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], 0
imul esi, dword [ebp - 0x3c]
imul esi, dword [ebp - 0x38]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push 0xa
push edi
push eax
call fcn.0060bae0
mov ecx, dword [ebx + 0xc8]
sub eax, ecx
mov ecx, dword [ebx + 0xcc]
sbb edx, ecx
mov ecx, dword [ebp + 8]
add eax, ecx
mov ecx, dword [ebp - 0x40]
adc edx, edi
cmp ecx, edx
jg 0x5c56f2
jl 0x5c564c
cmp esi, eax
ja 0x5c56f2
and esi, ecx
cmp esi, 0xffffffff
je 0x5c56f2
mov dword [ebx + 0x1c], 1
mov ecx, dword [0x6f7b78]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 1
push edx
mov edx, dword [ecx + 8]
push edi
push eax
mov eax, dword [0x6fdd6c]
push edx
lea ecx, [ebp + 0x10]
push eax
push ecx
call fcn.0061fae1
mov edx, dword [ebp + 0x10]
add esp, 0x18
push 0x50030
push 0x6c9094
push edx
push 0
call fcn.00457010
add esp, 0x10
mov ecx, ebx
push str.Not_enough_disk_space_to_store_files_chunks__canceling_download._n
call fcn.005c4640
mov eax, dword [ebx + 0x1c0]
mov ecx, dword [ebx + 0x1c4]
or eax, ecx
jne 0x5c56d3
mov ecx, dword [ebx + 0x20]
call fcn.00570250
mov ecx, dword [ebx + 0xc]
mov byte [ecx + 0x162], 1
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00622d8a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
fild qword [ebp + 8]
cmp edi, 1
mov byte [ebp + 0x13], 0
fmul qword [0x664158]
fstp qword [ebp - 0x44]
jl 0x5c5718
jg 0x5c5710
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x5c5718
mov byte [ebp + 0x13], 1
xor esi, esi
jmp 0x5c5731
xor esi, esi
cmp edi, esi
jl 0x5c5945
jg 0x5c5731
cmp dword [ebp + 8], 0x80000000
jbe 0x5c5945
lea edx, [ebp - 0x34]
push 0x6c91c0
push edx
call fcn.00609a6b
add esp, 8
lea eax, [ebp - 0x268]
lea ecx, [ebp - 0x34]
push 0x104
push eax
push esi
push esi
push esi
push esi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x5c5945
lea edx, [ebp - 0x268]
push 0x6ef148
push edx
call fcn.0060c3d3
add esp, 8
test eax, eax
je 0x5c57a4
mov al, byte [ebp + 0x13]
test al, al
je 0x5c5945
lea eax, [ebp - 0x268]
push str.FAT32
push eax
call fcn.0060c3d3
add esp, 8
test eax, eax
jne 0x5c5945
mov dword [ebx + 0x1c], 1
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x24], si
lea ecx, [ebp - 0x28]
push 1
push ecx
mov ecx, dword [ebx + 0xc]
mov byte [ebp - 4], 2
call fcn.0059d840
mov eax, dword [ebp - 0x28]
cmp eax, esi
jne 0x5c57d1
lea eax, [ebp - 0x24]
push eax
call fcn.00609a4e
mov edi, dword [0x6fd2c8]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0x40]
mov dword [ebp - 0x3c], eax
add eax, eax
push eax
call fcn.00622acb
mov edi, eax
xor eax, eax
add esp, 8
cmp edi, eax
mov dword [ebp + 0x10], edi
je 0x5c5914
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x18], ax
mov ecx, dword [0x6fca90]
mov esi, dword [0x6fd2c8]
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00401070
test esi, esi
je 0x5c5895
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5c5892
mov edi, dword [ebp - 0x38]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x5c5892
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x5c5883
mov ecx, dword [ebp - 0x14]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x5c589a
mov dword [ebp + 0x10], ecx
jmp 0x5c58a0
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
jmp 0x5c5886
lea edx, [ebp - 0x24]
mov dword [ebp + 0x10], edx
test eax, eax
mov esi, eax
jne 0x5c58a9
lea esi, [ebp - 0x18]
lea eax, [ebp - 0x268]
push 0x6ef148
push eax
call fcn.0060c3d3
add esp, 8
lea ecx, [ebp - 0x268]
neg eax
sbb eax, eax
lea edx, [ebp - 0x34]
and eax, 2
add eax, 2
push eax
mov eax, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x44]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push ecx
push edx
push esi
push eax
push edi
call fcn.006099de
push 0x50030
push 0x6c9094
push edi
push 0
call fcn.00457200
add esp, 0x34
push edi
call fcn.00622af4
add esp, 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00401070
mov ecx, dword [ebx + 0x20]
call fcn.00570250
mov ecx, dword [ebx + 0xc]
mov byte [ebp - 4], 0
mov byte [ecx + 0x162], 1
lea ecx, [ebp - 0x28]
call fcn.00401070
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x3c], esi
je 0x5c56df
mov ecx, dword [eax + 0x34]
cmp ecx, esi
jne 0x5c595b
lea ecx, [eax + 0x38]
push esi
push esi
lea edx, [ebp - 0x18]
push esi
push edx
push ecx
call fcn.0060a943
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x34]
push eax
push ecx
call fcn.0060a1a4
add esp, 0x1c
test eax, eax
je 0x5c56df
mov ebx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x34]
cmp eax, esi
jne 0x5c598d
lea eax, [ebx + 0x38]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
mov ecx, ebx
call fcn.005e0d90
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc