Function at 0x577230
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x577238
xor eax, eax
push ebp
push 0x577521
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 [0x5dcd54]
mov eax, dword [eax]
call fcn.005bf630
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0041da50
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0041ca70
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 0x5772f5
push 0x577538
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 4
call fcn.0047a260
push dword [ebp - 0x2c]
push 0x577594
lea edx, [ebp - 0x30]
mov eax, dword [0x5dcd54]
mov eax, dword [eax]
call fcn.005bf630
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.0040748c
mov edx, dword [ebp - 0x28]
mov eax, dword [0x5dcb2c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f790
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x3fffffff
jmp 0x577323
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
mov edx, 0x5775c0
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.0041da50
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0041ca70
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 0x5773c1
push 0x5775d0
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 4
call fcn.0047a260
push dword [ebp - 0x44]
push 0x577634
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 [0x5dcb2c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f790
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x3fffffff
jmp 0x5773ef
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
mov edx, 0x5775c0
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 0x57744d
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 0x577487
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 0x577498
cmp dword [eax - 0x18], 0
jbe 0x577506
jmp 0x57749a
jle 0x577506
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.00428470
test al, al
je 0x577506
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.005975a0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x5774e7
cmp dword [ebp - 0x18], 0x1000
jae 0x5774f7
jmp 0x5774e9
jge 0x5774f7
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 0x577528
lea eax, [ebp - 0x50]
mov edx, 0xe
call fcn.00406670
ret