Function at 0x52ebb9
Capabilities:
Get disk size
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c0
mov dword [ebp - 0x6c0], ecx
mov eax, dword [ebp - 0x6c0]
mov ecx, dword [eax + 0x15368]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
imul edx, edx, 0x124
mov dword [edx + 0x5db8b4], 0
cmp dword [0x5be754], 0
jne 0x52ec17
cmp dword [0x5be618], 0
je 0x52ef83
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x6c0]
cmp dword [ecx + eax*4 + 0x195c0], 0
jne 0x52ef83
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xff
push 0
lea edx, [ebp - 0x210]
push edx
call fcn.0054bfb0
add esp, 0xc
push 0xff
push 0
lea eax, [ebp - 0x310]
push eax
call fcn.0054bfb0
add esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x6bc], 0
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x42c
mov edx, dword [ebp - 0x6c0]
movsx eax, byte [edx + ecx + 0x163c]
push eax
push 0x5b7914
lea ecx, [ebp - 0x6ac]
push ecx
call fcn.0054c45b
add esp, 0xc
lea edx, [ebp - 0x624]
push edx
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x6b4]
push ecx
lea edx, [ebp - 0x6ac]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov dword [ebp - 0x6bc], eax
cmp dword [ebp - 0x6bc], 0
jne 0x52ed09
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x6c0]
mov edx, dword [ecx + eax*4 + 0x10f30]
and dh, 0xfe
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x6c0]
mov dword [ecx + eax*4 + 0x10f30], edx
mov dword [ebp - 0x318], 0
jmp 0x52ed37
push 0
push 0x400
mov edx, dword [ebp - 0x628]
push edx
mov eax, dword [ebp - 0x62c]
push eax
call fcn.0054e710
push 0
push 0x400
push edx
push eax
call fcn.0054e710
mov dword [ebp - 0x318], eax
lea ecx, [ebp - 0x31c]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x6b8]
push ecx
lea edx, [ebp - 0x6ac]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
cmp dword [ebp - 0x31c], 0
jbe 0x52ed85
mov eax, dword [ebp - 0xc]
add eax, 1
cmp eax, dword [ebp - 0x31c]
jne 0x52ed85
push 0x5b791c
lea ecx, [ebp - 0x210]
push ecx
call fcn.0054bec0
add esp, 8
mov edx, dword [ebp - 0xc]
add edx, 1
cmp edx, dword [ebp - 0x31c]
jae 0x52eda7
push 0x5b7920
lea eax, [ebp - 0x210]
push eax
call fcn.0054bec0
add esp, 8
mov ecx, dword [ebp - 0x31c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push str.lpNumberOfFreeClusters___X_lpTotalNumberOfClusters___X
lea eax, [ebp - 0x61c]
push eax
call fcn.0054c45b
add esp, 0x10
lea ecx, [ebp - 0x61c]
push ecx
call fcn.00536ebf
add esp, 4
cmp dword [0x5be754], 0
jne 0x52ee1e
push 0x5b7960
lea edx, [ebp - 0x210]
push edx
call fcn.0054ccc0
add esp, 8
test eax, eax
je 0x52ee1e
cmp dword [ebp - 0x314], 3
jge 0x52ee1e
mov eax, dword [ebp - 0x314]
add eax, 1
mov dword [ebp - 0x314], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x52eca9
push 0x5b7964
lea ecx, [ebp - 0x210]
push ecx
call fcn.0054ccc0
add esp, 8
test eax, eax
je 0x52ef5c
mov edx, dword [ebp - 4]
imul edx, edx, 0x124
mov dword [edx + 0x5db8b4], 1
mov eax, dword [ebp - 4]
imul eax, eax, 0x42c
mov ecx, dword [ebp - 0x6c0]
movsx edx, byte [ecx + eax + 0x163c]
test edx, edx
je 0x52ef5a
push 0x5dccb8
lea eax, [ebp - 0x41c]
push eax
call fcn.0054bec0
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x6c0]
mov eax, dword [edx + 0x4b4]
push eax
call fcn.004016bb
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
push 0xff
lea edx, [ebp - 0x41c]
push edx
push 0x5dccbc
push 0x5b7968
push 0x5b7978
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x41c]
push eax
call fcn.0054c3e0
add esp, 4
test eax, eax
jne 0x52eeeb
push 0x5b7988
lea ecx, [ebp - 0x41c]
push ecx
call fcn.0054bec0
add esp, 8
lea edx, [ebp - 0x41c]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x3c
mov ecx, dword [ebp - 0x6c0]
lea ecx, [ecx + eax + 0x14280]
call fcn.0056432f
cmp dword [0x5be754], 0
je 0x52ef5a
push str.Format_Fail_
mov edx, dword [ebp - 4]
imul edx, edx, 0x3c
mov eax, dword [ebp - 0x6c0]
lea ecx, [eax + edx + 0xaec]
call fcn.0056432f
push 0x5dccc0
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x3c
mov edx, dword [ebp - 0x6c0]
lea ecx, [edx + ecx + 0x14280]
call fcn.0056432f
push 1
mov ecx, dword [ebp - 0x6c0]
call fcn.004089e0
jmp 0x52ef83
mov eax, dword [ebp - 4]
imul eax, eax, 0x124
add eax, 0x5db8c4
push eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x3c
mov edx, dword [ebp - 0x6c0]
lea ecx, [edx + ecx + 0x14280]
call fcn.0056432f
mov esp, ebp
pop ebp
ret