Function at 0x408480
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542de1
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x5a674c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, 0xf
mov eax, 0x5a7c50
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 0xc8], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4084d2
sub eax, edx
push eax
push 0x5a7c50
lea ecx, [ebp - 0xc8]
call fcn.00408120
mov dword [ebp - 4], ebx
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
push 1
push ebx
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
mov byte [ebp - 0xe8], 0x5c
call fcn.00407790
cmp eax, 0xffffffff
jne 0x40853f
cmp dword [ebp - 0xb4], 0x10
jb 0x408537
mov esi, dword [ebp - 0xc8]
jmp 0x408597
lea esi, [ebp - 0xc8]
jmp 0x408597
push eax
push ebx
lea ecx, [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00408220
push eax
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 2
call fcn.00408400
mov esi, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0xd0], esi
jb 0x408583
mov edx, dword [ebp - 0xe4]
push edx
call fcn.00426031
add esp, 4
cmp dword [ebp - 0x98], esi
mov esi, dword [ebp - 0xac]
jae 0x408597
lea esi, [ebp - 0xac]
push str.GetDiskFreeSpaceExA
push 0x5562d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x408686
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x10c]
push ecx
push esi
call eax
mov esi, eax
mov dword [ebp - 0xec], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
je 0x40863c
mov edx, dword [ebp - 0xfc]
mov eax, dword [ebp - 0x100]
push edx
push eax
lea ecx, [ebp - 0x90]
push str.Total_free_bytes___I64d
push ecx
call fcn.00525601
lea eax, [ebp - 0x90]
add esp, 0x10
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x408610
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x408620
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xec]
mov edi, 0x10
cmp dword [ebp - 0x98], edi
jb 0x408658
mov edx, dword [ebp - 0xac]
push edx
call fcn.00426031
add esp, 4
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
cmp dword [ebp - 0xb4], edi
jb 0x408757
mov eax, dword [ebp - 0xc8]
push eax
jmp 0x40874f
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0xf0]
push edx
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0xf8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov esi, eax
mov dword [ebp - 0xec], esi
cmp esi, ebx
je 0x40870e
mov edx, dword [ebp - 0xf8]
imul edx, dword [ebp - 0xf4]
imul edx, dword [ebp - 0xf0]
push edx
lea eax, [ebp - 0x90]
push str.Total_free_bytes___I64d
push eax
call fcn.00526dbd
lea eax, [ebp - 0x90]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4086e6
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4086f2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xec]
mov edi, 0x10
cmp dword [ebp - 0x98], edi
jb 0x40872a
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.00426031
add esp, 4
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
cmp dword [ebp - 0xb4], edi
jb 0x408757
mov edx, dword [ebp - 0xc8]
push edx
call fcn.00426031
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525092
mov esp, ebp
pop ebp
ret