Function at 0x5808d0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x5808d8
xor eax, eax
push ebp
push 0x580bc1
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 [0x5ebca4]
mov eax, dword [eax]
call fcn.005cc730
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0041d8a0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0041ca10
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
call fcn.00406a38
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
jne 0x580995
push 0x580bd8
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 4
call fcn.0047a360
push dword [ebp - 0x2c]
push 0x580c34
lea edx, [ebp - 0x30]
mov eax, dword [0x5ebca4]
mov eax, dword [eax]
call fcn.005cc730
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.004074a8
mov edx, dword [ebp - 0x28]
mov eax, dword [0x5eba70]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f530
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x3fffffff
jmp 0x5809c3
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
mov edx, 0x580c60
call fcn.004073c8
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.00407230
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 + 0x84]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.0041d8a0
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0041ca10
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
call fcn.00406a38
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x580a61
push 0x580c70
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 4
call fcn.0047a360
push dword [ebp - 0x44]
push 0x580cd4
lea edx, [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0x84]
push dword [ebp - 0x48]
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.004074a8
mov edx, dword [ebp - 0x40]
mov eax, dword [0x5eba70]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f530
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x3fffffff
jmp 0x580a8f
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
mov edx, 0x580c60
call fcn.004073c8
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.00407230
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.004075b8
jne 0x580aed
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0xa0]
push edx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0xa4]
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 0x580b27
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0xa0]
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 + 0xa4]
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 0x580b38
cmp dword [eax - 0x18], 0
jbe 0x580ba6
jmp 0x580b3a
jle 0x580ba6
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.004280e0
test al, al
je 0x580ba6
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.005a12a0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x580b87
cmp dword [ebp - 0x18], 0x1000
jae 0x580b97
jmp 0x580b89
jge 0x580b97
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 0x580bc8
lea eax, [ebp - 0x50]
mov edx, 0xe
call fcn.0040668c
ret