Function at 0x456a76
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a2d50
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push edi
mov eax, dword [0x4d5674]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor edi, edi
inc edi
push edi
mov ecx, esi
call fcn.0046a3b3
fld qword [0x4bc7e8]
xor ebx, ebx
fstp qword [esp + 0x2c]
push 3
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x94]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.004013d0
mov dword [esp + 0x58], ebx
push 0x4bb47c
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x456b71
push str.GetDiskFreeSpaceExA
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
je 0x456b64
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push dword [esp + 0x1c]
call eax
test eax, eax
je 0x456b64
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [esp + 0x30], eax
and eax, 0x7fffffff
and dword [esp + 0x30], 0x80000000
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], eax
fild qword [esp + 0x14]
mov dword [esp + 0x14], ebx
fild qword [esp + 0x2c]
fchs
faddp st(1)
fstp qword [esp + 0x2c]
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp dword [esp + 0x14], ebx
je 0x456bdd
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
test eax, eax
je 0x456bdd
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test eax, eax
jge 0x456ba5
fadd qword [0x4bc7e0]
mov eax, dword [esp + 0x20]
fild dword [esp + 0x20]
test eax, eax
jge 0x456bb7
fadd qword [0x4bc7e0]
fld qword [0x4bc7d0]
mov eax, dword [esp + 0x24]
test eax, eax
fmul st(1), st(0)
fxch st(1)
fmulp st(2)
fild dword [esp + 0x24]
jge 0x456bd5
fadd qword [0x4bc7e0]
fmulp st(2)
fmulp st(1)
fstp qword [esp + 0x2c]
fld qword [0x4bc7e8]
mov edi, str._.1fMB
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 0x44
jp 0x456c05
lea ecx, [esi + 0xf0]
push str.___._MB
call fcn.00403366
jmp 0x456c1e
fld qword [esp + 0x2c]
push ecx
push ecx
fstp qword [esp]
lea eax, [esi + 0xf0]
push edi
push eax
call fcn.00401a35
add esp, 0x10
lea eax, [esp + 0x14]
push 0x78
push eax
call fcn.00460bbf
pop ecx
pop ecx
lea ecx, [esi + 0xec]
push eax
mov byte [esp + 0x5c], 1
call fcn.004018c1
mov byte [esp + 0x58], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040174a
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x84]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x456cbd
or eax, ecx
je 0x456cbd
lea eax, [esp + 0x14]
push 0x7b
push eax
call fcn.00460bbf
pop ecx
pop ecx
lea ecx, [esi + 0xf4]
push eax
mov byte [esp + 0x5c], 2
call fcn.004018c1
mov byte [esp + 0x58], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040174a
fild qword [esi + 0x80]
push ecx
push ecx
fmul qword [0x4bc7c8]
lea eax, [esi + 0xf8]
fstp qword [esp]
push edi
push eax
call fcn.00401a35
add esp, 0x10
mov edi, 0x4b478c
jmp 0x456cda
mov edi, 0x4b478c
lea ecx, [esi + 0xf4]
push edi
call fcn.00403366
lea ecx, [esi + 0xf8]
push edi
call fcn.00403366
mov eax, dword [esi + 0x84]
cmp eax, ebx
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jl 0x456d3c
jg 0x456cf8
cmp ecx, ebx
jbe 0x456d3c
fild qword [esp + 0x14]
fmul qword [0x4bc7c8]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x456d3c
lea eax, [esp + 0x14]
push 0x7c
push eax
call fcn.00460bbf
pop ecx
pop ecx
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 3
call fcn.004018c1
mov byte [esp + 0x58], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040174a
jmp 0x456d46
push edi
lea ecx, [esp + 0x14]
call fcn.00403366
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x264]
call fcn.004018c1
push ebx
mov ecx, esi
call fcn.0046a3b3
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040174a
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret