Function at 0x577840
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x577848
xor eax, eax
push ebp
push 0x577b31
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 [0x5ddd78]
mov eax, dword [eax]
call fcn.005bfce0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0041d9e0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0041ca00
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 0x577905
push 0x577b48
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 4
call fcn.0047a2f0
push dword [ebp - 0x2c]
push 0x577ba4
lea edx, [ebp - 0x30]
mov eax, dword [0x5ddd78]
mov eax, dword [eax]
call fcn.005bfce0
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.0040748c
mov edx, dword [ebp - 0x28]
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f720
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x3fffffff
jmp 0x577933
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
mov edx, 0x577bd0
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.0041d9e0
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0041ca00
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 0x5779d1
push 0x577be0
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 4
call fcn.0047a2f0
push dword [ebp - 0x44]
push 0x577c44
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 [0x5ddb4c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f720
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x3fffffff
jmp 0x5779ff
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
mov edx, 0x577bd0
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 0x577a5d
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 0x577a97
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 0x577aa8
cmp dword [eax - 0x18], 0
jbe 0x577b16
jmp 0x577aaa
jle 0x577b16
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.00428400
test al, al
je 0x577b16
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.00597bf0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x577af7
cmp dword [ebp - 0x18], 0x1000
jae 0x577b07
jmp 0x577af9
jge 0x577b07
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 0x577b38
lea eax, [ebp - 0x50]
mov edx, 0xe
call fcn.00406670
ret