Function at 0x57a430
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x57a438
xor eax, eax
push ebp
push 0x57a721
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x24]
mov eax, dword [0x5dfc78]
mov eax, dword [eax]
call fcn.005c18b0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0041d9c0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0041c9e0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
call fcn.00406a1c
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
jne 0x57a4f5
push 0x57a738
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 4
call fcn.0047a100
push dword [ebp - 0x2c]
push 0x57a794
lea edx, [ebp - 0x30]
mov eax, dword [0x5dfc78]
mov eax, dword [eax]
call fcn.005c18b0
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.0040748c
mov edx, dword [ebp - 0x28]
mov eax, dword [0x5dfa4c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f350
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x3fffffff
jmp 0x57a523
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
mov edx, 0x57a7c0
call fcn.004073ac
mov eax, dword [ebp + 8]
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00407214
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExW
lea edx, [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.0041d9c0
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0041c9e0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
call fcn.00406a1c
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x57a5c1
push 0x57a7d0
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 4
call fcn.0047a100
push dword [ebp - 0x44]
push 0x57a834
lea edx, [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0x98]
push dword [ebp - 0x48]
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.0040748c
mov edx, dword [ebp - 0x40]
mov eax, dword [0x5dfa4c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f350
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x3fffffff
jmp 0x57a5ef
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
mov edx, 0x57a7c0
call fcn.004073ac
mov eax, dword [ebp + 8]
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00407214
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExW
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
call fcn.0040759c
jne 0x57a64d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0xb0]
push edx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0xb4]
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
sub eax, dword [ebp - 8]
sbb edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx - 0x18], eax
mov dword [ecx - 0x14], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 0x18]
mov dword [eax - 0x20], ecx
mov ecx, dword [edx - 0x14]
mov dword [eax - 0x1c], ecx
jmp 0x57a687
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0xb0]
sub eax, dword [ebp - 8]
sbb edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx - 0x18], eax
mov dword [ecx - 0x14], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0xb4]
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx - 0x20], eax
mov dword [ecx - 0x1c], edx
mov eax, dword [ebp + 8]
cmp dword [eax - 0x14], 0
jne 0x57a698
cmp dword [eax - 0x18], 0
jbe 0x57a706
jmp 0x57a69a
jle 0x57a706
lea edx, [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x4c]
call fcn.004283d0
test al, al
je 0x57a706
lea edx, [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 0x50]
call fcn.005994e0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x57a6e7
cmp dword [ebp - 0x18], 0x1000
jae 0x57a6f7
jmp 0x57a6e9
jge 0x57a6f7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
sub dword [ecx - 0x18], eax
sbb dword [ecx - 0x14], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57a728
lea eax, [ebp - 0x50]
mov edx, 0xe
call fcn.00406670
ret