Function at 0x40a570
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x51f9d1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c5c30]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov esi, 1
mov dword [esp + 0x48], esi
mov ecx, dword [esp + 0x50]
push 0x5aa768
call fcn.0040ac70
mov dword [esp + 0x18], esi
call fcn.00431fc0
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40a5f1
push str.__atl_condVal
push ebx
push 0xe2
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, esi
jne 0x40a5e7
int3
push 0x80004005
call fcn.004011e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x48], 2
mov esi, dword [esp + 0x54]
mov eax, dword [esi - 0xc]
cmp eax, ebx
jle 0x40a7a3
push 0x3a
push esi
call fcn.004d7020
add esp, 8
cmp eax, ebx
je 0x40a7a3
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40a7a3
add eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x5c]
call fcn.0040b040
mov byte [esp + 0x48], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x40a690
cmp dword [esi + 0xc], ebx
jl 0x40a67e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40a67e
push eax
call fcn.0040c900
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.00401380
lea ebp, [edi + 0x10]
mov dword [esp + 0x14], ebp
jmp 0x40a690
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040c800
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x48], 2
mov esi, dword [esp + 0x1c]
add esi, 0xfffffff0
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jne 0x40a6c1
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x40a6c1
int3
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40a6d7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40a7a3
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov edx, ecx
and edx, 0xc0000000
cmp eax, ebx
ja 0x40a711
cmp edx, 0x40000000
jb 0x40a758
mov dword [esp + 0x1c], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x20], eax
fild qword [esp + 0x1c]
and ecx, 0x80000000
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x1c], ebx
fild qword [esp + 0x1c]
sub esp, 8
fchs
faddp st(1)
fld qword [0x5aee70]
fmul st(1), st(0)
fmul st(1), st(0)
fmulp st(1)
fstp qword [esp]
push 0x5aa780
push ecx
jmp 0x40a79b
mov edx, dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x20], eax
fild qword [esp + 0x1c]
and ecx, 0x80000000
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebx
fild qword [esp + 0x1c]
sub esp, 8
fchs
faddp st(1)
fld qword [0x5aee70]
fmul st(1), st(0)
fmulp st(1)
fstp qword [esp]
push 0x5aa79c
push edx
call fcn.0040db10
add esp, 0x10
lea esi, [ebp - 0x10]
lea edi, [esi + 0xc]
mov byte [esp + 0x48], 1
cmp dword [edi], ebx
jne 0x40a7cf
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x40a7cf
int3
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40a7e5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x48], bl
mov esi, dword [esp + 0x54]
add esi, 0xfffffff0
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jne 0x40a815
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x40a815
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40a82b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8