Function at 0x4082d0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542ca1
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x5a574c]
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, 0x5a6c50
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 0x408322
sub eax, edx
push eax
push 0x5a6c50
lea ecx, [ebp - 0xc8]
call fcn.00407f40
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.004075b0
cmp eax, 0xffffffff
jne 0x40838f
cmp dword [ebp - 0xb4], 0x10
jb 0x408387
mov esi, dword [ebp - 0xc8]
jmp 0x4083e7
lea esi, [ebp - 0xc8]
jmp 0x4083e7
push eax
push ebx
lea ecx, [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00408040
push eax
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 2
call fcn.00408250
mov esi, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0xd0], esi
jb 0x4083d3
mov edx, dword [ebp - 0xe4]
push edx
call fcn.004261b3
add esp, 4
cmp dword [ebp - 0x98], esi
mov esi, dword [ebp - 0xac]
jae 0x4083e7
lea esi, [ebp - 0xac]
push str.GetDiskFreeSpaceExA
push 0x554ed4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4084d6
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 0x40848c
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.00525791
lea eax, [ebp - 0x90]
add esp, 0x10
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x408460
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x408470
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 0x4084a8
mov edx, dword [ebp - 0xac]
push edx
call fcn.004261b3
add esp, 4
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
cmp dword [ebp - 0xb4], edi
jb 0x4085a7
mov eax, dword [ebp - 0xc8]
push eax
jmp 0x40859f
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 0x40855e
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.00526f2d
lea eax, [ebp - 0x90]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x408536
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x408542
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 0x40857a
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.004261b3
add esp, 4
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
cmp dword [ebp - 0xb4], edi
jb 0x4085a7
mov edx, dword [ebp - 0xc8]
push edx
call fcn.004261b3
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.00525222
mov esp, ebp
pop ebp
ret