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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ddc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
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 + 0x1c8]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x4c], ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, dword [edx + 0x2e8]
mov dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 0x48], esi
jne 0x58b3e8
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x58b367
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp + 8]
push ecx
push 0x1473
push 0x111
push eax
call edi
jmp 0x58b36d
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x14]
cmp dword [eax], 0
je 0x58b39c
mov edx, dword [ebx + 0x248]
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 0x58b3cb
mov ecx, dword [ebx + 0x248]
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 + 0x24c]
test eax, eax
je 0x58b3e8
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 0x58b565
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.005c8048
add esp, 0x14
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x58b432
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x58b435
mov ecx, 1
jmp 0x58b437
mov eax, dword [ebp + 0x10]
xor ecx, ecx
or edi, 0xffffffff
test ecx, ecx
mov dword [ebp - 0x3c], edi
je 0x58b462
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 0x64]
push ecx
push edx
lea ecx, [ebp - 0x54]
lea edx, [ebp - 0x34]
push ecx
push edx
call eax
test eax, eax
je 0x58b492
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
jmp 0x58b492
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x44]
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 0x58b492
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x3c], 0
imul edi, dword [ebp - 0x44]
imul edi, dword [ebp - 0x38]
mov eax, dword [esi]
mov esi, dword [esi + 4]
push 0
push 0xa
push esi
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
call fcn.005c91b0
mov ecx, dword [ebx + 0xe8]
sub eax, ecx
mov ecx, dword [ebx + 0xec]
sbb edx, ecx
mov ecx, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [ebp - 0x3c]
adc edx, esi
cmp ecx, edx
jg 0x58b578
jl 0x58b4d4
cmp edi, eax
ja 0x58b578
and edi, ecx
cmp edi, 0xffffffff
je 0x58b578
mov dword [ebx + 0x38], 1
mov eax, dword [0x6cc564]
mov dword [ebp + 0x10], eax
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
push ecx
mov ecx, dword [eax + 8]
push esi
push edx
mov edx, dword [0x6d21b4]
push ecx
lea eax, [ebp + 0x10]
push edx
push eax
call fcn.005dc6eb
mov ecx, dword [ebp + 0x10]
add esp, 0x18
push 0x50030
push 0x6a1f84
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, ebx
call fcn.0058a680
mov edx, dword [ebx + 0x1d0]
mov eax, dword [ebx + 0x1d4]
or edx, eax
jne 0x58b559
mov ecx, dword [ebx + 0x3c]
call fcn.0053e310
mov eax, dword [ebx + 0xc]
mov byte [eax + 0x153], 1
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.005e38b9
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 - 0x18]
cmp esi, 1
mov byte [ebp + 0x13], 0
fmul qword [0x63e5f0]
fstp qword [ebp - 0x40]
jl 0x58b59e
jg 0x58b596
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x58b59e
mov byte [ebp + 0x13], 1
xor edi, edi
jmp 0x58b5b7
xor edi, edi
cmp esi, edi
jl 0x58b7c9
jg 0x58b5b7
cmp dword [ebp - 0x18], 0x80000000
jbe 0x58b7c9
lea ecx, [ebp - 0x34]
push 0x6a2080
push ecx
call fcn.005c7400
add esp, 8
lea edx, [ebp - 0x26c]
lea eax, [ebp - 0x34]
push 0x104
push edx
push edi
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x58b7c9
lea ecx, [ebp - 0x26c]
push 0x6c402c
push ecx
call fcn.005c996c
add esp, 8
test eax, eax
je 0x58b62a
mov al, byte [ebp + 0x13]
test al, al
je 0x58b7c9
lea edx, [ebp - 0x26c]
push str.FAT32
push edx
call fcn.005c996c
add esp, 8
test eax, eax
jne 0x58b7c9
mov dword [ebx + 0x38], 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x24], di
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x28]
push 1
push eax
mov byte [ebp - 4], 2
call fcn.00565f30
mov eax, dword [ebp - 0x28]
cmp eax, edi
jne 0x58b657
lea eax, [ebp - 0x24]
push eax
call fcn.005c7292
mov edi, dword [0x6d171c]
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 - 0x38], eax
add eax, eax
push eax
call fcn.005dfcbc
mov edi, eax
xor eax, eax
add esp, 8
cmp edi, eax
mov dword [ebp + 0x10], edi
je 0x58b78d
mov esi, dword [0x6d171c]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x18], ax
call fcn.00401070
test esi, esi
je 0x58b7c1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x58b7be
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push eax
call edi
test eax, eax
mov dword [ebp - 0x14], eax
je 0x58b7be
lea ecx, [eax + eax + 2]
push ecx
call fcn.005dfcbc
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x58b704
mov edx, dword [ebp - 0x14]
push edx
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 3
test ecx, ecx
jne 0x58b715
lea ecx, [ebp - 0x24]
test eax, eax
mov dword [ebp + 0x10], ecx
mov esi, eax
jne 0x58b721
lea esi, [ebp - 0x18]
lea edx, [ebp - 0x26c]
push 0x6c402c
push edx
call fcn.005c996c
add esp, 8
mov edx, dword [ebp - 0x3c]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x34]
and eax, 2
add eax, 2
push eax
lea eax, [ebp - 0x26c]
push eax
mov eax, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 0x38]
push eax
push ecx
push esi
push edx
push edi
call fcn.005c7222
add esp, 0x24
push 0x50030
push 0x6c3fec
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call fcn.005dfce5
add esp, 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00401070
mov ecx, dword [ebx + 0x3c]
call fcn.0053e310
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
mov byte [eax + 0x153], 1
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 edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
jmp 0x58b707
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x3c], edi
je 0x58b565
mov ecx, dword [eax + 0x34]
cmp ecx, edi
jne 0x58b7df
lea ecx, [eax + 0x38]
push edi
push edi
lea edx, [ebp - 0x18]
push edi
push edx
push ecx
call fcn.005c8048
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x34]
push eax
push ecx
call fcn.005c779f
add esp, 0x1c
test eax, eax
je 0x58b565
mov ebx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x34]
cmp eax, edi
jne 0x58b811
lea eax, [ebx + 0x38]
push eax
mov eax, dword [ebp - 0x48]
mov ecx, ebx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
call fcn.005a1d10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc