Function at 0x40a315
Capabilities:
Get disk size

Disassembly:
push 0xd4
mov eax, 0x47f50f
call fcn.0046435b
mov edi, ecx
push 0xffffffffffffffff
lea eax, [edi + 0x154]
mov esi, edx
push eax
xor ebx, ebx
mov eax, esi
mov dword [ebp - 0xb4], edi
call fcn.00404c2a
cmp dword [esi + 0x18], 8
jb 0x40a34b
mov eax, dword [esi + 4]
jmp 0x40a34e
lea eax, [esi + 4]
push eax
call fcn.0040a16b
test eax, eax
pop ecx
jne 0x40a3e2
mov eax, 0x488b7c
lea ecx, [ebp - 0x88]
call fcn.00404670
and dword [ebp - 4], 0
lea eax, [edi + 0x7a8]
push eax
lea eax, [ebp - 0x88]
call fcn.00458d6d
or dword [ebp - 4], 0xffffffff
xor ebx, ebx
push 0
inc ebx
push ebx
lea esi, [ebp - 0x88]
call fcn.004049f4
mov byte [edi + 0x7e0], bl
mov dword [edi + 0x304], 3
mov eax, 0x488ba0
lea ecx, [ebp - 0x88]
mov dword [edi + 0x33c], 0x988b74
call fcn.00404670
add edi, 0x76c
push edi
lea eax, [ebp - 0x88]
mov dword [ebp - 4], ebx
call fcn.00458d6d
lea esi, [ebp - 0x88]
jmp 0x40a736
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0xd8], ecx
lea edi, [ebp - 0xd4]
stosd dword es:[edi], eax
mov dword [ebp - 0xe0], ecx
lea edi, [ebp - 0xdc]
stosd dword es:[edi], eax
push 3
push esi
mov dword [ebp - 0xb0], ecx
lea edi, [ebp - 0xac]
xor ebx, ebx
lea esi, [ebp - 0xa4]
stosd dword es:[edi], eax
call fcn.0040b076
mov dword [ebp - 4], 2
cmp dword [ebp - 0x8c], 8
mov eax, dword [ebp - 0xa0]
jae 0x40a439
lea eax, [ebp - 0xa0]
lea ecx, [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0xd8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40a6a1
mov ebx, 0x486cac
mov eax, ebx
lea ecx, [ebp - 0x6c]
call fcn.00404670
xor edi, edi
push 0x3e
lea eax, [ebp - 0x4e]
push edi
mov byte [ebp - 4], 3
push eax
mov word [ebp - 0x50], di
call fcn.0045c910
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb0]
add esp, 0xc
cmp eax, edi
ja 0x40a536
jb 0x40a4a3
cmp ecx, 0x400
jae 0x40a4c8
push 0xa
lea edx, [ebp - 0x50]
push edx
push eax
push ecx
call fcn.0045f50f
add esp, 0x10
lea eax, [ebp - 0x50]
lea esi, [ebp - 0x6c]
call fcn.00404988
push 0x4851c0
jmp 0x40a55d
cmp eax, edi
ja 0x40a536
jb 0x40a4d6
cmp ecx, 0x100000
jae 0x40a4ff
push 0xa
lea edx, [ebp - 0x50]
shrd ecx, eax, 0xa
push edx
shr eax, 0xa
push eax
push ecx
call fcn.0045f50f
add esp, 0x10
lea eax, [ebp - 0x50]
lea esi, [ebp - 0x6c]
call fcn.00404988
push 0x488bd0
jmp 0x40a55d
cmp eax, edi
ja 0x40a536
jb 0x40a50d
cmp ecx, 0x40000000
jae 0x40a536
push 0xa
lea edx, [ebp - 0x50]
shrd ecx, eax, 0x14
push edx
shr eax, 0x14
push eax
push ecx
call fcn.0045f50f
add esp, 0x10
lea eax, [ebp - 0x50]
lea esi, [ebp - 0x6c]
call fcn.00404988
push 0x488bd8
jmp 0x40a55d
push 0xa
lea edx, [ebp - 0x50]
shrd ecx, eax, 0x1e
push edx
shr eax, 0x1e
push eax
push ecx
call fcn.0045f50f
add esp, 0x10
lea eax, [ebp - 0x50]
lea esi, [ebp - 0x6c]
call fcn.00404988
push 0x488be0
lea eax, [ebp - 0x6c]
push eax
call fcn.00405073
mov eax, 0x488ba0
lea ecx, [ebp - 0x88]
call fcn.00404670
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x6c]
lea esi, [ebp - 0x88]
mov byte [ebp - 4], 4
call fcn.00405091
mov edi, dword [ebp - 0xb4]
lea eax, [edi + 0x76c]
push eax
mov eax, esi
call fcn.00458d6d
xor esi, esi
cmp dword [ebp - 0xac], esi
mov dword [edi + 0x304], esi
mov dword [edi + 0x33c], 0xffffff
ja 0x40a5c5
cmp dword [ebp - 0xb0], 0x12c00000
jbe 0x40a62c
mov eax, ebx
lea ecx, [ebp - 0xd0]
call fcn.00404670
lea eax, [edi + 0x7a8]
push eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 5
call fcn.00458d6d
push esi
xor ebx, ebx
inc ebx
push ebx
lea esi, [ebp - 0xd0]
call fcn.004049f4
mov byte [edi + 0x7e0], 0
xor edi, edi
push edi
push ebx
lea esi, [ebp - 0x88]
call fcn.004049f4
push edi
push ebx
lea esi, [ebp - 0x6c]
call fcn.004049f4
push edi
push ebx
lea esi, [ebp - 0xa4]
call fcn.004049f4
mov al, bl
jmp 0x40a740
mov eax, str.bRb9
lea ecx, [ebp - 0xd0]
call fcn.00404670
lea eax, [edi + 0x7a8]
push eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 6
call fcn.00458d6d
push esi
xor ebx, ebx
inc ebx
push ebx
lea esi, [ebp - 0xd0]
call fcn.004049f4
mov byte [edi + 0x7e0], bl
mov dword [edi + 0x304], 3
mov dword [edi + 0x33c], 0x988b74
xor edi, edi
push edi
push ebx
lea esi, [ebp - 0x88]
call fcn.004049f4
push edi
push ebx
lea esi, [ebp - 0x6c]
call fcn.004049f4
push edi
lea esi, [ebp - 0xa4]
jmp 0x40a738
mov eax, 0x488b7c
lea ecx, [ebp - 0xd0]
call fcn.00404670
mov edi, dword [ebp - 0xb4]
lea eax, [edi + 0x7a8]
push eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 7
call fcn.00458d6d
xor ebx, ebx
push 0
inc ebx
push ebx
lea esi, [ebp - 0xd0]
mov byte [ebp - 4], 2
call fcn.004049f4
mov byte [edi + 0x7e0], bl
mov dword [edi + 0x304], 3
mov eax, 0x488ba0
lea ecx, [ebp - 0xd0]
mov dword [edi + 0x33c], 0x988b74
call fcn.00404670
add edi, 0x76c
push edi
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 8
call fcn.00458d6d
push 0
push ebx
lea esi, [ebp - 0xd0]
call fcn.004049f4
lea esi, [ebp - 0xa4]
push 0
push ebx
call fcn.004049f4
xor al, al
call fcn.004643de
ret